<?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 behind reverse proxy in Security</title>
    <link>https://community.splunk.com/t5/Security/Splunk-behind-reverse-proxy/m-p/16743#M520</link>
    <description>&lt;P&gt;Greetings,&lt;/P&gt;

&lt;P&gt;We're using Splunk 4 (4.1.6 build 89596) and wanted to setup forward proxy, where the proxy is on a separate machine.  Most of the other examples I found assumed the proxy and splunk run on the same server.&lt;/P&gt;

&lt;P&gt;The main issue with doing this is that Splunk really wants to redirect the user directly to itself.  The worst bit is that does the redirect using HTML, not any HTTP headers.  (If it used HTTP headers, then Apache's mod_proxy could do the rewrite (Possibly the module mod_proxy_html can rewrite the HTML for you, but I haven't tried this).  Dear splunk developers, it would be cool if you could fix the redirection method &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;  ).&lt;/P&gt;

&lt;P&gt;I found that when you set 'tools.proxy.on = True' then Splunk assumes that the Web/Proxy server is running locally on the same server as the Splunk.  In this case, it keeps redirecting to 127.0.0.1.  Therefore, if you are running a separate Web/Proxy server, then you do NOT want to set this (leave it blank, or set 'tools.proxy.on = false').&lt;/P&gt;

&lt;P&gt;Our solution was to set /opt/splunk/etc/system/local/web.conf like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[settings]
root_endpoint = /splunk
httpport = 80
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then on the separate machine running Apache (we actually are using Apache with SSL) the lines we added to the existing mod_proxy configuration were:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ProxyPass /splunk &lt;A href="http://10.0.0.10/splunk" target="test_blank"&gt;http://10.0.0.10/splunk&lt;/A&gt;
ProxyPassReverse /splunk &lt;A href="http://10.0.0.10/splunk" target="test_blank"&gt;http://10.0.0.10/splunk&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Enjoy!&lt;/P&gt;

&lt;P&gt;Kind regards,&lt;/P&gt;

&lt;P&gt;Dave Seddon&lt;/P&gt;

&lt;P&gt;dave at seddon ca&lt;/P&gt;</description>
    <pubDate>Tue, 07 Dec 2010 11:40:34 GMT</pubDate>
    <dc:creator>dave_at_seddon_</dc:creator>
    <dc:date>2010-12-07T11:40:34Z</dc:date>
    <item>
      <title>Splunk behind reverse proxy</title>
      <link>https://community.splunk.com/t5/Security/Splunk-behind-reverse-proxy/m-p/16741#M518</link>
      <description>&lt;P&gt;I have tried to configure a reverse proxy (using nginx) to Splunk but not work correctly. Splunk and proxy server are in the same machine. When accessing to Splunk by proxy the browser is redirectet to localhost:8000 and not work. Using the same proxy server to access other web services work fine.
I have also setting the parameter tools.proxy.on to True but behavior not change. The problem was found on Linux and also Windows.&lt;/P&gt;

&lt;P&gt;My Splunk version is the latest (4.1.3).&lt;/P&gt;

&lt;P&gt;This is my web.conf (in etc/system/local)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [settings]                                                            
    root_endpoint = /splunk                                               
    tools.proxy.on = True                                                 
    server.socket_host = 127.0.0.1    
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What's wrong?
Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jul 2010 16:08:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-behind-reverse-proxy/m-p/16741#M518</guid>
      <dc:creator>abradanini</dc:creator>
      <dc:date>2010-07-02T16:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk behind reverse proxy</title>
      <link>https://community.splunk.com/t5/Security/Splunk-behind-reverse-proxy/m-p/16742#M519</link>
      <description>&lt;P&gt;I would suspect that you want tools.proxy.on = False&lt;/P&gt;

&lt;P&gt;Also, the root_endpoint says that splunk will be served from :8000/splunk.  Exclude that parameter if that's not what you want.&lt;/P&gt;

&lt;P&gt;I'd try hitting the URL  &lt;A href="http://myserver:8000/splunk" rel="nofollow"&gt;http://myserver:8000/splunk&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2010 22:40:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-behind-reverse-proxy/m-p/16742#M519</guid>
      <dc:creator>cfergus</dc:creator>
      <dc:date>2010-07-08T22:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk behind reverse proxy</title>
      <link>https://community.splunk.com/t5/Security/Splunk-behind-reverse-proxy/m-p/16743#M520</link>
      <description>&lt;P&gt;Greetings,&lt;/P&gt;

&lt;P&gt;We're using Splunk 4 (4.1.6 build 89596) and wanted to setup forward proxy, where the proxy is on a separate machine.  Most of the other examples I found assumed the proxy and splunk run on the same server.&lt;/P&gt;

&lt;P&gt;The main issue with doing this is that Splunk really wants to redirect the user directly to itself.  The worst bit is that does the redirect using HTML, not any HTTP headers.  (If it used HTTP headers, then Apache's mod_proxy could do the rewrite (Possibly the module mod_proxy_html can rewrite the HTML for you, but I haven't tried this).  Dear splunk developers, it would be cool if you could fix the redirection method &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;  ).&lt;/P&gt;

&lt;P&gt;I found that when you set 'tools.proxy.on = True' then Splunk assumes that the Web/Proxy server is running locally on the same server as the Splunk.  In this case, it keeps redirecting to 127.0.0.1.  Therefore, if you are running a separate Web/Proxy server, then you do NOT want to set this (leave it blank, or set 'tools.proxy.on = false').&lt;/P&gt;

&lt;P&gt;Our solution was to set /opt/splunk/etc/system/local/web.conf like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[settings]
root_endpoint = /splunk
httpport = 80
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then on the separate machine running Apache (we actually are using Apache with SSL) the lines we added to the existing mod_proxy configuration were:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ProxyPass /splunk &lt;A href="http://10.0.0.10/splunk" target="test_blank"&gt;http://10.0.0.10/splunk&lt;/A&gt;
ProxyPassReverse /splunk &lt;A href="http://10.0.0.10/splunk" target="test_blank"&gt;http://10.0.0.10/splunk&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Enjoy!&lt;/P&gt;

&lt;P&gt;Kind regards,&lt;/P&gt;

&lt;P&gt;Dave Seddon&lt;/P&gt;

&lt;P&gt;dave at seddon ca&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2010 11:40:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-behind-reverse-proxy/m-p/16743#M520</guid>
      <dc:creator>dave_at_seddon_</dc:creator>
      <dc:date>2010-12-07T11:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk behind reverse proxy</title>
      <link>https://community.splunk.com/t5/Security/Splunk-behind-reverse-proxy/m-p/16744#M521</link>
      <description>&lt;P&gt;Have you tried using a Juniper SA device or a MAG as the reverse proxy? I am having a similar issue. Could someone assist with using the Juniper devices as the reverse proxy?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2013 17:51:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-behind-reverse-proxy/m-p/16744#M521</guid>
      <dc:creator>tskinnerivsec</dc:creator>
      <dc:date>2013-06-21T17:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk behind reverse proxy</title>
      <link>https://community.splunk.com/t5/Security/Splunk-behind-reverse-proxy/m-p/16745#M522</link>
      <description>&lt;P&gt;I did just figure out how to use the Juniper Device as a reverse proxy. In addition to configuring the reverse proxy, I also had to create a custom headers rewriting policy that allowed custom headers to be written. If anyone else needs help with this configuration, give me a shout.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2013 18:16:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-behind-reverse-proxy/m-p/16745#M522</guid>
      <dc:creator>tskinnerivsec</dc:creator>
      <dc:date>2013-06-21T18:16:37Z</dc:date>
    </item>
  </channel>
</rss>

