<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: ListenSyslog won't listen on port 514 because it's a privileged port. Is there a workaround? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ListenSyslog-won-t-listen-on-port-514-because-it-s-a/m-p/170048#M57759</link>
    <description>&lt;P&gt;Thank you, &lt;A rel="user" href="https://community.cloudera.com/users/2956/jfrazee.html" nodeid="2956"&gt;@jfrazee&lt;/A&gt;. Per your suggestion (#2), I used HAproxy and it's working perfectly.&lt;/P&gt;</description>
    <pubDate>Wed, 22 Mar 2017 22:46:59 GMT</pubDate>
    <dc:creator>awoolford</dc:creator>
    <dc:date>2017-03-22T22:46:59Z</dc:date>
    <item>
      <title>ListenSyslog won't listen on port 514 because it's a privileged port. Is there a workaround?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ListenSyslog-won-t-listen-on-port-514-because-it-s-a/m-p/170046#M57757</link>
      <description>&lt;P&gt;By convention, &lt;A target="_blank" href="https://en.wikipedia.org/wiki/Syslog" rel="nofollow noopener noreferrer"&gt;syslog&lt;/A&gt; listens on port 514, which is a privileged port (i.e. &amp;lt; 1024) meaning that only processes running as root can access them. For security reasons, Nifi runs as a non-root user and so the &lt;A target="_blank" href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.standard.ListenSyslog/" rel="nofollow noopener noreferrer"&gt;ListenSyslog processor&lt;/A&gt; can't listen on port 514.&lt;/P&gt;&lt;P&gt;Because port 514 is a standard for syslog, devices don't always have the option to output to different port, e.g. here's a screenshot from a firewall UI:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="13909-syslog-screenshot.png" style="width: 460px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/20116iAF1DB3981A3905A4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="13909-syslog-screenshot.png" alt="13909-syslog-screenshot.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If port 514 is used for the `ListenSyslog` processor, the processor is unable to bind the port and error messages containing `Caused by: java.net.SocketException: Permission denied` show up in /var/log/nifi-app.log.&lt;/P&gt;&lt;P&gt;Is there an easy way to configure Nifi so that only ListenSyslog runs with root permissions? Or perhaps a workaround in Linux where messages destined for port 514 are forwarded to port 1514 so they can be picked up by the processor?&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 10:46:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ListenSyslog-won-t-listen-on-port-514-because-it-s-a/m-p/170046#M57757</guid>
      <dc:creator>awoolford</dc:creator>
      <dc:date>2019-08-18T10:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: ListenSyslog won't listen on port 514 because it's a privileged port. Is there a workaround?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ListenSyslog-won-t-listen-on-port-514-because-it-s-a/m-p/170047#M57758</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11639/awoolford.html" nodeid="11639"&gt;@Alex Woolford&lt;/A&gt; There are a few things you can try (none of which are really NiFi concerns):&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;iptables port redirection&lt;/LI&gt;&lt;LI&gt;Run something like HAproxy to forward tcp traffic from 514 to the selected port in NiFi&lt;/LI&gt;&lt;LI&gt;Use the cap_net_bind_service available in more recent linux kernels to allow the JVM to bind to privileged ports without running as root&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Wed, 22 Mar 2017 21:20:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ListenSyslog-won-t-listen-on-port-514-because-it-s-a/m-p/170047#M57758</guid>
      <dc:creator>jfrazee</dc:creator>
      <dc:date>2017-03-22T21:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: ListenSyslog won't listen on port 514 because it's a privileged port. Is there a workaround?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ListenSyslog-won-t-listen-on-port-514-because-it-s-a/m-p/170048#M57759</link>
      <description>&lt;P&gt;Thank you, &lt;A rel="user" href="https://community.cloudera.com/users/2956/jfrazee.html" nodeid="2956"&gt;@jfrazee&lt;/A&gt;. Per your suggestion (#2), I used HAproxy and it's working perfectly.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2017 22:46:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ListenSyslog-won-t-listen-on-port-514-because-it-s-a/m-p/170048#M57759</guid>
      <dc:creator>awoolford</dc:creator>
      <dc:date>2017-03-22T22:46:59Z</dc:date>
    </item>
  </channel>
</rss>

