<?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 Using iptables PREROUTING NAT Instead of HTTP Proxy for Redirecting Port 443 to 8443 in ArcGIS Enterprise in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/using-iptables-prerouting-nat-instead-of-http/m-p/1526870#M40407</link>
    <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I’m currently configuring an ArcGIS Enterprise environment on an Oracle Linux server with a single-machine deployment where both the Portal and Server are deployed on the same Tomcat instance. By default, Tomcat handles HTTPS traffic on port 8443. However, to simplify access, I want to redirect HTTPS traffic from the standard port 443 to Tomcat’s 8443.&lt;/P&gt;&lt;P&gt;Instead of using a traditional HTTP proxy (like Apache or Nginx) as suggested in the documentation, I'm considering using iptables with a PREROUTING NAT rule to achieve this port redirection.&lt;/P&gt;&lt;P&gt;My current iptables configuration is as follows:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;iptables -t nat -A PREROUTING -p tcp --dport 443 -j REDIRECT --to-port 8443&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;P&gt;&lt;BR /&gt;This approach seems to work for redirecting traffic, but I'm curious about the potential implications or limitations compared to using an HTTP proxy. Specifically:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Are there any known issues or performance considerations when using iptables NAT for port redirection in an ArcGIS Enterprise setup?&lt;/LI&gt;&lt;LI&gt;What advantages might I be missing by not using a dedicated HTTP proxy for this purpose?&lt;/LI&gt;&lt;LI&gt;Could this approach affect SSL/TLS management or impact other ArcGIS Enterprise components?&lt;P&gt;Given that this is a single-machine deployment on Oracle Linux with both Portal and Server on the same Tomcat server, I would appreciate any insights or experiences that others have had with similar setups.&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Sun, 25 Aug 2024 17:34:36 GMT</pubDate>
    <dc:creator>JPBogado</dc:creator>
    <dc:date>2024-08-25T17:34:36Z</dc:date>
    <item>
      <title>Using iptables PREROUTING NAT Instead of HTTP Proxy for Redirecting Port 443 to 8443 in ArcGIS Enterprise</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/using-iptables-prerouting-nat-instead-of-http/m-p/1526870#M40407</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I’m currently configuring an ArcGIS Enterprise environment on an Oracle Linux server with a single-machine deployment where both the Portal and Server are deployed on the same Tomcat instance. By default, Tomcat handles HTTPS traffic on port 8443. However, to simplify access, I want to redirect HTTPS traffic from the standard port 443 to Tomcat’s 8443.&lt;/P&gt;&lt;P&gt;Instead of using a traditional HTTP proxy (like Apache or Nginx) as suggested in the documentation, I'm considering using iptables with a PREROUTING NAT rule to achieve this port redirection.&lt;/P&gt;&lt;P&gt;My current iptables configuration is as follows:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;iptables -t nat -A PREROUTING -p tcp --dport 443 -j REDIRECT --to-port 8443&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;P&gt;&lt;BR /&gt;This approach seems to work for redirecting traffic, but I'm curious about the potential implications or limitations compared to using an HTTP proxy. Specifically:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Are there any known issues or performance considerations when using iptables NAT for port redirection in an ArcGIS Enterprise setup?&lt;/LI&gt;&lt;LI&gt;What advantages might I be missing by not using a dedicated HTTP proxy for this purpose?&lt;/LI&gt;&lt;LI&gt;Could this approach affect SSL/TLS management or impact other ArcGIS Enterprise components?&lt;P&gt;Given that this is a single-machine deployment on Oracle Linux with both Portal and Server on the same Tomcat server, I would appreciate any insights or experiences that others have had with similar setups.&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 25 Aug 2024 17:34:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/using-iptables-prerouting-nat-instead-of-http/m-p/1526870#M40407</guid>
      <dc:creator>JPBogado</dc:creator>
      <dc:date>2024-08-25T17:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: Using iptables PREROUTING NAT Instead of HTTP Proxy for Redirecting Port 443 to 8443 in ArcGIS Enterprise</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/using-iptables-prerouting-nat-instead-of-http/m-p/1527228#M40410</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/781708"&gt;@JPBogado&lt;/a&gt;&amp;nbsp;I urge you (for reasons having little to do with Esri, but only as a modern best-practice) to avoid iptables and instead use a firewalld-based solution such as Esri uses in their cookbooks.&amp;nbsp; &amp;nbsp;See:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-cookbook/tree/main/cookbooks/esri-tomcat" target="_blank"&gt;https://github.com/Esri/arcgis-cookbook/tree/main/cookbooks/esri-tomcat&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and drilling down, use the port-forwarding shown at&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-cookbook/blob/main/cookbooks/esri-tomcat/recipes/firewalld.rb#L46" target="_blank"&gt;https://github.com/Esri/arcgis-cookbook/blob/main/cookbooks/esri-tomcat/recipes/firewalld.rb#L46&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My team has wrapped Ansible playbooks around these Chef cookbooks, and it works very well for us.&amp;nbsp; &amp;nbsp;Unfortunately we have too many custom and proprietary bits to share these Ansible playbooks anytime soon.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2024 15:25:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/using-iptables-prerouting-nat-instead-of-http/m-p/1527228#M40410</guid>
      <dc:creator>JonathanEpstein</dc:creator>
      <dc:date>2024-08-26T15:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using iptables PREROUTING NAT Instead of HTTP Proxy for Redirecting Port 443 to 8443 in ArcGIS Enterprise</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/using-iptables-prerouting-nat-instead-of-http/m-p/1527350#M40415</link>
      <description>&lt;P&gt;Thank you for the recommendation! I’ve followed your advice and implemented the firewalld-based solution as suggested in the Esri cookbooks. The configuration was straightforward and fits our needs perfectly. I really appreciate your help and the reference to the GitHub resource—it has been incredibly useful.&lt;/P&gt;&lt;P&gt;Thanks again for the valuable guidance!&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2024 18:37:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/using-iptables-prerouting-nat-instead-of-http/m-p/1527350#M40415</guid>
      <dc:creator>JPBogado</dc:creator>
      <dc:date>2024-08-26T18:37:03Z</dc:date>
    </item>
  </channel>
</rss>

