<?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 Re: Splunk URL redirect in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk-URL-redirect/m-p/102011#M3775</link>
    <description>&lt;P&gt;Is port 443 already bound? Long shot if you are running on Linux and Splunk is not running as root, ports under 1024 are restricted.&lt;/P&gt;</description>
    <pubDate>Wed, 24 Oct 2012 20:30:20 GMT</pubDate>
    <dc:creator>bmacias84</dc:creator>
    <dc:date>2012-10-24T20:30:20Z</dc:date>
    <item>
      <title>Splunk URL redirect</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk-URL-redirect/m-p/102007#M3771</link>
      <description>&lt;P&gt;I know this question appears to have been answered in here  before but I'd like to know if this type of functionality will be available with the splunk 5.0 version.&lt;/P&gt;

&lt;P&gt;My main search head is mybox1.domain.com:8000.  I can access it by &lt;A href="https://mybox1.domain.com:8000"&gt;https://mybox1.domain.com:8000&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I can also get here by typing in &lt;A href="https://splunk.domain.com:8000"&gt;https://splunk.domain.com:8000&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I'd like to have it where mybox1 or splunk.domain.com will always just show up as &lt;A href="https://splunk.domain.com"&gt;https://splunk.domain.com&lt;/A&gt; in a browser.  This is only internal.&lt;/P&gt;

&lt;P&gt;I know you can install a 3rd party webserver like apache, but is there any other way to do this OR is this possibly a new feature on 5.0?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2012 19:45:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Splunk-URL-redirect/m-p/102007#M3771</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2012-10-24T19:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk URL redirect</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk-URL-redirect/m-p/102008#M3772</link>
      <description>&lt;P&gt;Just change the splunkweb port to 443.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0/Admin/Changedefaultvalues#Change_network_ports"&gt;http://docs.splunk.com/Documentation/Splunk/5.0/Admin/Changedefaultvalues#Change_network_ports&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2012 19:58:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Splunk-URL-redirect/m-p/102008#M3772</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-10-24T19:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk URL redirect</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk-URL-redirect/m-p/102009#M3773</link>
      <description>&lt;P&gt;Encountered the following error while trying to update: In handler 'server-settings': Parameter httpport: TCP port 443 is not available&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2012 20:01:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Splunk-URL-redirect/m-p/102009#M3773</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2012-10-24T20:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk URL redirect</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk-URL-redirect/m-p/102010#M3774</link>
      <description>&lt;P&gt;https in splunkweb is enabled too....&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2012 20:02:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Splunk-URL-redirect/m-p/102010#M3774</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2012-10-24T20:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk URL redirect</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk-URL-redirect/m-p/102011#M3775</link>
      <description>&lt;P&gt;Is port 443 already bound? Long shot if you are running on Linux and Splunk is not running as root, ports under 1024 are restricted.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2012 20:30:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Splunk-URL-redirect/m-p/102011#M3775</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2012-10-24T20:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk URL redirect</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk-URL-redirect/m-p/102012#M3776</link>
      <description>&lt;P&gt;not running as root and i don't believe it's bound.  So users should only have to type in splunk.domain.com and it will automatically go to https and they won't see the port it's using either...I believe I"ll have to redirect port 80 to 8000 as well?  not sure never did this before...&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2012 21:50:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Splunk-URL-redirect/m-p/102012#M3776</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2012-10-24T21:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk URL redirect</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk-URL-redirect/m-p/102013#M3777</link>
      <description>&lt;P&gt;am looking at apache as well for this....didn't know if this was something being built into newer version...&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2012 21:50:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Splunk-URL-redirect/m-p/102013#M3777</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2012-10-24T21:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk URL redirect</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk-URL-redirect/m-p/102014#M3778</link>
      <description>&lt;P&gt;The thing about showing "no port number" in the browser is a notational convenience which gets rid of those ports for standard HTTP (80) and standard HTTPS (443). You can provide them in either case, but if you don't provide a port, it'll pick one of the defaults depending upon which protocol you've specified. You're going through a lot of hoops just to avoid showing a port number in the browser's location bar. Considering that users will likely just bookmark this anyway, is it worth the effort?&lt;/P&gt;

&lt;P&gt;(And if this effort is just to teach yourself a few things about Splunk and HTTP, etc, go for it!)&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2012 22:10:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Splunk-URL-redirect/m-p/102014#M3778</guid>
      <dc:creator>sowings</dc:creator>
      <dc:date>2012-10-24T22:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk URL redirect</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk-URL-redirect/m-p/102015#M3779</link>
      <description>&lt;P&gt;@gnovak, If I read your response Splunk is running as a &lt;EM&gt;non-root&lt;/EM&gt; user, correct? I am no Linux expert (only enough to be dangerous), but ports 443 and 80 are under 1024 which are &lt;STRONG&gt;restricted ports&lt;/STRONG&gt; can only be used by root unless specifly granted.  Since you are &lt;STRONG&gt;not&lt;/STRONG&gt; using root you will not be able blind/listen on those ports. Ignore this if you are not running Linux or your Splunk user started Splunk using &lt;STRONG&gt;su&lt;/STRONG&gt;. &lt;/P&gt;

&lt;P&gt;For this problem: &lt;BR /&gt;
&lt;CODE&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;BR /&gt;
setcap 'cap_net_bind_service=+ep' $SPLUNK_HOME/bin/splunk&lt;BR /&gt;
or&lt;BR /&gt;
authbind # not sure of the syntax &lt;BR /&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;Once the non-root user has been granted rights it should be as simple as Ayn post.&lt;/P&gt;

&lt;P&gt;Other options:  use netcat, xinetd or iptables port forwarding.  Device level if are using a loadbalancer between your Splunk Search Heads and users have your LB do the translation for you.&lt;/P&gt;

&lt;P&gt;Additional Reading:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://unix.stackexchange.com/questions/16564/why-are-the-first-1024-ports-restricted-to-the-root-user-only"&gt;why-are-the-first-1024-ports-restricted-to-the-root-user-only&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://www.kernel.org/doc/man-pages/online/pages/man7/capabilities.7.html"&gt;pages-man7-capabilities&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2012 23:59:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Splunk-URL-redirect/m-p/102015#M3779</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2012-10-24T23:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk URL redirect</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk-URL-redirect/m-p/102016#M3780</link>
      <description>&lt;P&gt;you are correct.  Splunk is running as the Splunk user...&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2012 15:28:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Splunk-URL-redirect/m-p/102016#M3780</guid>
      <dc:creator>gnovak</dc:creator>
      <dc:date>2012-10-25T15:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk URL redirect</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk-URL-redirect/m-p/102017#M3781</link>
      <description>&lt;P&gt;Use iptables to redirect the port&lt;/P&gt;

&lt;P&gt;iptables -t nat -A PREROUTING ! -i lo -p tcp -m tcp --dport 443 -j REDIRECT --to-ports 8000&lt;/P&gt;

&lt;P&gt;You probably want to save your iptables rules afterwards (which is OS dependent)&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2015 23:15:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Splunk-URL-redirect/m-p/102017#M3781</guid>
      <dc:creator>tmcneely</dc:creator>
      <dc:date>2015-11-04T23:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk URL redirect</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk-URL-redirect/m-p/102018#M3782</link>
      <description>&lt;P&gt;As per this post (&lt;A href="https://answers.splunk.com/answers/5037/using-setcap-to-allow-non-root-splunk-user-to-start-splunkweb-on-port-443.html"&gt;https://answers.splunk.com/answers/5037/using-setcap-to-allow-non-root-splunk-user-to-start-splunkweb-on-port-443.html&lt;/A&gt;) I could not get setcap to work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;setcap 'cap_net_bind_service=+ep' $SPLUNK_HOME/bin/splunk
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Still wouldnt let me use 443 and when I manually changed it Splunk would not start.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;setcap 'cap_net_bind_service=+ep' $SPLUNK_HOME/bin/splunkd
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;caused &lt;CODE&gt;LD_LIBRARY_PATH&lt;/CODE&gt; to not work giving&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/opt/splunk/bin/splunkd: error while loading shared libraries: libjemalloc.so.2: cannot open shared object file: No such file or directory
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So if you are &lt;STRONG&gt;not&lt;/STRONG&gt; running as root (which I am not) then I don't think setcap will help.&lt;/P&gt;

&lt;P&gt;I have had to use iptables redirection in the end, which on Ubuntu meant added the following to &lt;CODE&gt;/etc/ufw/.before.rules&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;*nat
:PREROUTING ACCEPT [0:0]
-A PREROUTING -i eth0 -p tcp --dport 443 -j REDIRECT --to-ports 8443
-A PREROUTING -i eth0 -p tcp --dport 514 -j REDIRECT --to-ports 5514
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and then allow the actual listening port through the firewall:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ufw allow from any to any port 8443
ufw allow from any to any port 5514
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 Oct 2018 07:22:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Splunk-URL-redirect/m-p/102018#M3782</guid>
      <dc:creator>thewer</dc:creator>
      <dc:date>2018-10-11T07:22:32Z</dc:date>
    </item>
  </channel>
</rss>

