<?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: How to access splunk web interface behind Nginx in Security</title>
    <link>https://community.splunk.com/t5/Security/How-to-access-splunk-web-interface-behind-Nginx/m-p/28411#M941</link>
    <description>&lt;P&gt;There are 2 parts to this.  Let's say you want to proxy a Splunk instance at:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&lt;A href="http://www.example.com/splunkserver" target="test_blank"&gt;http://www.example.com/splunkserver&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;1) Configure Splunk's root endpoint&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Splunkweb must be configured to use the same root endpoint as the fronting endpoint, which is &lt;CODE&gt;/splunkserver&lt;/CODE&gt; in this example.  Edit the web config (or create if it doesn't exist):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$SPLUNK_HOME/etc/system/local/web.conf
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and add the following to the &lt;CODE&gt;[settings]&lt;/CODE&gt; stanza:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;root_endpoint = /splunkserver
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Depending on how you configure your proxy server, you may also have to add:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;tools.proxy.on = True
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This setting is described in detail in the &lt;A href="http://tools.cherrypy.org/wiki/BehindApache" rel="nofollow"&gt;CherryPy docs&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;Restart your Splunk server.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;2)  Setup your web/proxy server&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;You must configure your fronting proxy server to forward requests to a specific endpoint over to the Splunk server.&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Apache:
&lt;A href="http://www.askapache.com/htaccess/reverse-proxy-apache.html" rel="nofollow"&gt;http://www.askapache.com/htaccess/reverse-proxy-apache.html&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;Nginx:
&lt;A href="https://help.ubuntu.com/community/Nginx/ReverseProxy" rel="nofollow"&gt;https://help.ubuntu.com/community/Nginx/ReverseProxy&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;Lighttpd:
&lt;A href="http://thuannvn.blogspot.com/2009/07/lighttpd-as-reverse-proxy-frontend-for.html" rel="nofollow"&gt;http://thuannvn.blogspot.com/2009/07/lighttpd-as-reverse-proxy-frontend-for.html&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Thu, 12 Aug 2010 00:46:47 GMT</pubDate>
    <dc:creator>Johnvey</dc:creator>
    <dc:date>2010-08-12T00:46:47Z</dc:date>
    <item>
      <title>How to access splunk web interface behind Nginx</title>
      <link>https://community.splunk.com/t5/Security/How-to-access-splunk-web-interface-behind-Nginx/m-p/28410#M940</link>
      <description>&lt;P&gt;Hi,
I am new to both Nginx and Splunk.
I am trying to setup splunk runing on a linux machine with Nginx. 
I tried multiple setup options for setting up a proxy_pass/upstream - but none seem to work.&lt;/P&gt;

&lt;P&gt;I would like to set it so that mydomain.com/splunk would reach the splunk web management page. &lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2010 21:46:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-access-splunk-web-interface-behind-Nginx/m-p/28410#M940</guid>
      <dc:creator>barryv</dc:creator>
      <dc:date>2010-08-11T21:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to access splunk web interface behind Nginx</title>
      <link>https://community.splunk.com/t5/Security/How-to-access-splunk-web-interface-behind-Nginx/m-p/28411#M941</link>
      <description>&lt;P&gt;There are 2 parts to this.  Let's say you want to proxy a Splunk instance at:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&lt;A href="http://www.example.com/splunkserver" target="test_blank"&gt;http://www.example.com/splunkserver&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;1) Configure Splunk's root endpoint&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Splunkweb must be configured to use the same root endpoint as the fronting endpoint, which is &lt;CODE&gt;/splunkserver&lt;/CODE&gt; in this example.  Edit the web config (or create if it doesn't exist):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$SPLUNK_HOME/etc/system/local/web.conf
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and add the following to the &lt;CODE&gt;[settings]&lt;/CODE&gt; stanza:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;root_endpoint = /splunkserver
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Depending on how you configure your proxy server, you may also have to add:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;tools.proxy.on = True
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This setting is described in detail in the &lt;A href="http://tools.cherrypy.org/wiki/BehindApache" rel="nofollow"&gt;CherryPy docs&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;Restart your Splunk server.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;2)  Setup your web/proxy server&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;You must configure your fronting proxy server to forward requests to a specific endpoint over to the Splunk server.&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Apache:
&lt;A href="http://www.askapache.com/htaccess/reverse-proxy-apache.html" rel="nofollow"&gt;http://www.askapache.com/htaccess/reverse-proxy-apache.html&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;Nginx:
&lt;A href="https://help.ubuntu.com/community/Nginx/ReverseProxy" rel="nofollow"&gt;https://help.ubuntu.com/community/Nginx/ReverseProxy&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;Lighttpd:
&lt;A href="http://thuannvn.blogspot.com/2009/07/lighttpd-as-reverse-proxy-frontend-for.html" rel="nofollow"&gt;http://thuannvn.blogspot.com/2009/07/lighttpd-as-reverse-proxy-frontend-for.html&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Thu, 12 Aug 2010 00:46:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-access-splunk-web-interface-behind-Nginx/m-p/28411#M941</guid>
      <dc:creator>Johnvey</dc:creator>
      <dc:date>2010-08-12T00:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to access splunk web interface behind Nginx</title>
      <link>https://community.splunk.com/t5/Security/How-to-access-splunk-web-interface-behind-Nginx/m-p/28412#M942</link>
      <description>&lt;P&gt;The above information is, helpful, but is not specific to NGINX. I spent a few hours on this and got this working. I wanted to share as I'm both a fan of NGINX and Splunk. I am using NGINX v1.6.2 and Splunk (on Windows) v6.2.2&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Your Site .conf file referenced in nginx.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;server {
        listen &amp;lt;IP-Address-of-NGINX-For-Splunk&amp;gt;:80;
        server_name &amp;lt;URL-You-Set-In-DNS-For-Splunk&amp;gt;;
        location / {
        # Redirect to HTTPS
        return 301 &lt;A href="https://$server_name$request_uri" target="test_blank"&gt;https://$server_name$request_uri&lt;/A&gt;;
        }
}

server {
        listen &amp;lt;IP-Address-of-NGINX-For-Splunk&amp;gt;:443 ssl;
        server_name &amp;lt;URL-You-Set-In-DNS-For-Splunk&amp;gt;;
     #Resolve HTTP Error 414 Request-URI-Too-Large
        large_client_header_buffers 6 16k;
     #Certificate &amp;amp; Key .PEM Format
        ssl_certificate /etc/ssl/&amp;lt;name-of-cert&amp;gt;.crt;
        ssl_certificate_key /etc/ssl/&amp;lt;name-of-key&amp;gt;.key;
     #PFS
        ssl_dhparam /etc/ssl/&amp;lt;name-of-DH-key&amp;gt;.dh;
     #HSTS
        add_header Strict-Transport-Security "max-age=63072000; includeSubdomains; preload";
     #OSCP
        ssl_stapling on;
        ssl_stapling_verify on;
        ssl_trusted_certificate /etc/ssl/alk-splunk02.oscp;
     #CIPHERS
        include sites.common;
        location / {
            proxy_pass_request_headers on;
            proxy_set_header x-real-IP $remote_addr;
            proxy_set_header x-forwarded-for $proxy_add_x_forwarded_for;
            proxy_set_header host $host;
            proxy_pass &lt;A href="https://&amp;lt;IP-Address-of-Your-Splunk-Server&amp;gt;:8000" target="test_blank"&gt;https://&amp;lt;IP-Address-of-Your-Splunk-Server&amp;gt;:8000&lt;/A&gt;;
        }
}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;A+ Rating on SSL Labs provided you have a SHA256 Cert from trusted CA and intermediates provided inside .crt file&lt;/STRONG&gt;&lt;BR /&gt;
This is sites.common:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;     #OSCP Stapling
        resolver &amp;lt;DNS-Server-IP-1-You-Want&amp;gt; &amp;lt;DNS-Server-IP-2-You-Want&amp;gt; valid=300s;
        resolver_timeout 5s;

     #Cipher Specification and Session Cache
        ssl_prefer_server_ciphers on;
        ssl_session_cache shared:SSL:10m;
        ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
        ssl_ciphers 'ECDH+AESGCM:DH+AESGCM:AES256+EECDH:AES256+EDH:!aNULL';
        proxy_ssl_session_reuse off;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Apr 2015 15:55:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-access-splunk-web-interface-behind-Nginx/m-p/28412#M942</guid>
      <dc:creator>alkamiadmin</dc:creator>
      <dc:date>2015-04-22T15:55:40Z</dc:date>
    </item>
  </channel>
</rss>

