<?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>topic Why Splunk started as non-root cannot bind ports? in Security</title>
    <link>https://community.splunk.com/t5/Security/Why-Splunk-started-as-non-root-cannot-bind-ports/m-p/265923#M7272</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;12-07-2015 15:08:37.498 -0500 INFO  TcpInputConfig - IPv4 port 550 is reserved for splunk 2 splunk
12-07-2015 15:08:37.498 -0500 INFO  TcpInputConfig - IPv4 port 550 will negotiate new-s2s protocol
12-07-2015 15:08:37.498 -0500 ERROR TcpInputProc - Could not bind to port IPv4 port 550
12-07-2015 15:08:37.498 -0500 ERROR TcpInputProc - Could not bind to port IPv4 port 550
12-07-2015 15:08:37.502 -0500 ERROR UDPInputProcessor - Error binding to socket in UDPInputProcessor: Permission denied
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any idea of what could be causing this? Nothing is using port 550. If I start Splunk as root it binds port 550 without an issue.&lt;/P&gt;</description>
    <pubDate>Mon, 07 Dec 2015 20:16:20 GMT</pubDate>
    <dc:creator>ralphw_SAIC</dc:creator>
    <dc:date>2015-12-07T20:16:20Z</dc:date>
    <item>
      <title>Why Splunk started as non-root cannot bind ports?</title>
      <link>https://community.splunk.com/t5/Security/Why-Splunk-started-as-non-root-cannot-bind-ports/m-p/265923#M7272</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;12-07-2015 15:08:37.498 -0500 INFO  TcpInputConfig - IPv4 port 550 is reserved for splunk 2 splunk
12-07-2015 15:08:37.498 -0500 INFO  TcpInputConfig - IPv4 port 550 will negotiate new-s2s protocol
12-07-2015 15:08:37.498 -0500 ERROR TcpInputProc - Could not bind to port IPv4 port 550
12-07-2015 15:08:37.498 -0500 ERROR TcpInputProc - Could not bind to port IPv4 port 550
12-07-2015 15:08:37.502 -0500 ERROR UDPInputProcessor - Error binding to socket in UDPInputProcessor: Permission denied
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any idea of what could be causing this? Nothing is using port 550. If I start Splunk as root it binds port 550 without an issue.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2015 20:16:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Why-Splunk-started-as-non-root-cannot-bind-ports/m-p/265923#M7272</guid>
      <dc:creator>ralphw_SAIC</dc:creator>
      <dc:date>2015-12-07T20:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: Why Splunk started as non-root cannot bind ports?</title>
      <link>https://community.splunk.com/t5/Security/Why-Splunk-started-as-non-root-cannot-bind-ports/m-p/265924#M7273</link>
      <description>&lt;P&gt;Hi ralph_SAIC,&lt;/P&gt;

&lt;P&gt;this is not a Splunk problem, this is based on the so called &lt;CODE&gt;privileged ports&lt;/CODE&gt;. The TCP/IP port numbers below 1024 are special in that normal users are not allowed to run servers on them. This is a security feature of your OS, in that if you connect to a service on one of these ports you can be fairly sure that you have the real thing, and not a fake which some hacker has put up for you.&lt;/P&gt;

&lt;P&gt;If you want to use the port 550 with Splunk, create a new Splunk tcp input on port 1550 and use a &lt;CODE&gt;iptables&lt;/CODE&gt; rule to route input for port 550 to the Splunk port 1550:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; /usr/sbin/iptables -t nat -A PREROUTING -m tcp -p tcp --dport 550 -j REDIRECT --to-ports 1550
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Your Sysadmin can do this for you.&lt;/P&gt;

&lt;P&gt;Hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2015 20:42:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Why-Splunk-started-as-non-root-cannot-bind-ports/m-p/265924#M7273</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-12-07T20:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Why Splunk started as non-root cannot bind ports?</title>
      <link>https://community.splunk.com/t5/Security/Why-Splunk-started-as-non-root-cannot-bind-ports/m-p/265925#M7274</link>
      <description>&lt;P&gt;we don't use iptables. i did find one thing about setcap, but still trying to figure it out as it does not seem to work.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2015 13:08:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Why-Splunk-started-as-non-root-cannot-bind-ports/m-p/265925#M7274</guid>
      <dc:creator>ralphw_SAIC</dc:creator>
      <dc:date>2015-12-08T13:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: Why Splunk started as non-root cannot bind ports?</title>
      <link>https://community.splunk.com/t5/Security/Why-Splunk-started-as-non-root-cannot-bind-ports/m-p/265926#M7275</link>
      <description>&lt;P&gt;Hi ralphw_SAIC,&lt;/P&gt;

&lt;P&gt;I found these two links:&lt;BR /&gt;
&lt;A href="https://lists.linuxcontainers.org/pipermail/lxc-users/2014-July/007455.html"&gt;https://lists.linuxcontainers.org/pipermail/lxc-users/2014-July/007455.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://wiki.apache.org/httpd/NonRootPortBinding"&gt;https://wiki.apache.org/httpd/NonRootPortBinding&lt;/A&gt;&lt;BR /&gt;
The first is about &lt;CODE&gt;setcap&lt;/CODE&gt; for Splunk, the second a generic from Apache but does also apply to Splunk.&lt;/P&gt;

&lt;P&gt;Please mark this as answered, because your initial question is answered - thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2015 19:44:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Why-Splunk-started-as-non-root-cannot-bind-ports/m-p/265926#M7275</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-12-08T19:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: Why Splunk started as non-root cannot bind ports?</title>
      <link>https://community.splunk.com/t5/Security/Why-Splunk-started-as-non-root-cannot-bind-ports/m-p/265927#M7276</link>
      <description>&lt;P&gt;Unfortunately I have not found a workaround for the shared libraries issue. Guess this will have to be a one off machine till I get this worked out.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2015 14:52:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Why-Splunk-started-as-non-root-cannot-bind-ports/m-p/265927#M7276</guid>
      <dc:creator>ralphw_SAIC</dc:creator>
      <dc:date>2015-12-09T14:52:51Z</dc:date>
    </item>
  </channel>
</rss>

