<?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 [Docker] Splunk Proxy issues in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Docker-Splunk-Proxy-issues/m-p/595296#M12375</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have setup Splunk behind a reverse proxy and all works fine when the port used by the proxy to receive traffic is 443, however when the host port in docker-compose is changed and a root_endpoint is being used Splunk returns "404 page not found".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example 1 -&amp;nbsp;&lt;SPAN&gt;Splunk-Traefik-without-Root-Endpoint&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://gist.github.com/lluked/771a1f7f9bbd8ef2581e8828f3b25f9e" target="_blank"&gt;https://gist.github.com/lluked/771a1f7f9bbd8ef2581e8828f3b25f9e&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;When the proxy (Traefik) host port is mapped to 443, Splunk is accessible at &lt;A href="https://localhost:443/splunk" target="_blank"&gt;https://localhost:443&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    ports:
      - "80:80"
      - "443:443"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the proxy (Traefik) host port is mapped to 8443, Splunk is accessible at &lt;A href="https://localhost:443/splunk" target="_blank"&gt;https://localhost:8443&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    ports:
      - "80:80"
      - "8443:443"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both of these scenarios work as expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example 2 -&amp;nbsp;&lt;SPAN&gt;Splunk-Traefik-with-Root-Endpoint&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://gist.github.com/lluked/438b10a6321ff50feb8d704690a0cafc" target="_blank"&gt;https://gist.github.com/lluked/438b10a6321ff50feb8d704690a0cafc&lt;/A&gt;&lt;/P&gt;&lt;P&gt;When the proxy (Traefik) host port is mapped to 443, Splunk is accessible at &lt;A href="https://localhost:443/splunk" target="_blank"&gt;https://localhost:443/splunk&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    ports:
      - "80:80"
      - "443:443"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the proxy (Traefik) host port is mapped to 8443, Splunk returns error 404 at &lt;A href="https://localhost:443/splunk" target="_self"&gt;https://localhost:8443/splunk&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    ports:
      - "80:80"
      - "8443:443"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;When the proxy (Traefik) host port is mapped to 443, but this is on a vm and a port on the host &amp;nbsp;is mapped to 443&amp;nbsp;Splunk returns error 404 again (For example using Vagrant and mapping 8443 on the host to 443 on the vm and visiting&amp;nbsp;&lt;A href="https://localhost:8443/splunk" target="_blank"&gt;https://localhost:8443/splunk&amp;nbsp;&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    ports:
      - "80:80"
      - "443:443"&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;  config.vm.network "forwarded_port", id: "traefik_websecure", host: 8443, guest: 443&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's like Splunk is detecting requests are coming from a different port and throwing a 404 but only when &amp;nbsp;root_endpoint is being used, and I cannot find any documentation relating to this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please can anyone help?&lt;/P&gt;</description>
    <pubDate>Mon, 25 Apr 2022 20:43:04 GMT</pubDate>
    <dc:creator>lluke</dc:creator>
    <dc:date>2022-04-25T20:43:04Z</dc:date>
    <item>
      <title>[Docker] Splunk Proxy issues</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Docker-Splunk-Proxy-issues/m-p/595296#M12375</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have setup Splunk behind a reverse proxy and all works fine when the port used by the proxy to receive traffic is 443, however when the host port in docker-compose is changed and a root_endpoint is being used Splunk returns "404 page not found".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example 1 -&amp;nbsp;&lt;SPAN&gt;Splunk-Traefik-without-Root-Endpoint&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://gist.github.com/lluked/771a1f7f9bbd8ef2581e8828f3b25f9e" target="_blank"&gt;https://gist.github.com/lluked/771a1f7f9bbd8ef2581e8828f3b25f9e&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;When the proxy (Traefik) host port is mapped to 443, Splunk is accessible at &lt;A href="https://localhost:443/splunk" target="_blank"&gt;https://localhost:443&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    ports:
      - "80:80"
      - "443:443"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the proxy (Traefik) host port is mapped to 8443, Splunk is accessible at &lt;A href="https://localhost:443/splunk" target="_blank"&gt;https://localhost:8443&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    ports:
      - "80:80"
      - "8443:443"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both of these scenarios work as expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example 2 -&amp;nbsp;&lt;SPAN&gt;Splunk-Traefik-with-Root-Endpoint&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://gist.github.com/lluked/438b10a6321ff50feb8d704690a0cafc" target="_blank"&gt;https://gist.github.com/lluked/438b10a6321ff50feb8d704690a0cafc&lt;/A&gt;&lt;/P&gt;&lt;P&gt;When the proxy (Traefik) host port is mapped to 443, Splunk is accessible at &lt;A href="https://localhost:443/splunk" target="_blank"&gt;https://localhost:443/splunk&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    ports:
      - "80:80"
      - "443:443"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the proxy (Traefik) host port is mapped to 8443, Splunk returns error 404 at &lt;A href="https://localhost:443/splunk" target="_self"&gt;https://localhost:8443/splunk&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    ports:
      - "80:80"
      - "8443:443"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;When the proxy (Traefik) host port is mapped to 443, but this is on a vm and a port on the host &amp;nbsp;is mapped to 443&amp;nbsp;Splunk returns error 404 again (For example using Vagrant and mapping 8443 on the host to 443 on the vm and visiting&amp;nbsp;&lt;A href="https://localhost:8443/splunk" target="_blank"&gt;https://localhost:8443/splunk&amp;nbsp;&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    ports:
      - "80:80"
      - "443:443"&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;  config.vm.network "forwarded_port", id: "traefik_websecure", host: 8443, guest: 443&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's like Splunk is detecting requests are coming from a different port and throwing a 404 but only when &amp;nbsp;root_endpoint is being used, and I cannot find any documentation relating to this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please can anyone help?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 20:43:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Docker-Splunk-Proxy-issues/m-p/595296#M12375</guid>
      <dc:creator>lluke</dc:creator>
      <dc:date>2022-04-25T20:43:04Z</dc:date>
    </item>
  </channel>
</rss>

