<?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: API - Add nat rule with Hide and Static method in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Add-nat-rule-with-Hide-and-Static-method/m-p/8931#M727</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me explain it with an example :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Orginal source : 10.0.0.0/24&lt;/P&gt;&lt;P&gt;Original destination : 10.100.1.1/32&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;translated source : 10.200.1.1/32&lt;/P&gt;&lt;P&gt;translated destination : 8.8.8.8/32&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my opinion, you are doing HIDE NAT for the source and STATIC NAT for the destination.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have run a few a test with the API and although you can only define on method ( Hide or Static ) and seems R80.10 is somehow intelligent to know that this is for the source only. Translated Source is Hide in my policy, Translated Destination is Static in my policy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I've been looking for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Nov 2018 14:43:14 GMT</pubDate>
    <dc:creator>Kristof_Vermael</dc:creator>
    <dc:date>2018-11-26T14:43:14Z</dc:date>
    <item>
      <title>API - Add nat rule with Hide and Static method</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Add-nat-rule-with-Hide-and-Static-method/m-p/8929#M725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to find out if it is possible to add a NAT rule with the API with Hide NAT for the source address, and a Static NAT for the destination. In the documentation, it is only possible to add one method, Hide, or static.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The use case : I have a group that needs to connect to a single IP, I need to Hide the source after 1 single IP and I need to translate the destination to 1 single IP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is possible in the GUI, but for my automation, I would need to create these rules with the API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2018 09:36:25 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Add-nat-rule-with-Hide-and-Static-method/m-p/8929#M725</guid>
      <dc:creator>Kristof_Vermael</dc:creator>
      <dc:date>2018-11-26T09:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: API - Add nat rule with Hide and Static method</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Add-nat-rule-with-Hide-and-Static-method/m-p/8930#M726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've not completely understood your question, but I'll try to give you some information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hide NAT translates multiple source addresses to a one public address.&lt;/P&gt;&lt;P&gt;The destination adress always will be the one, because You connect to a public IP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even when you have 2 different LANs, which are connected with each other through the Internet. The destination adress will be permanent, because your IP packet has that destination.&lt;/P&gt;&lt;P&gt;Static NAT &lt;SPAN&gt;translates&amp;nbsp;&lt;/SPAN&gt;1 to 1 (source to public) address.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case you definetely should use Hide NAT.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2018 14:16:55 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Add-nat-rule-with-Hide-and-Static-method/m-p/8930#M726</guid>
      <dc:creator>Egor_Cherkasov</dc:creator>
      <dc:date>2018-11-26T14:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: API - Add nat rule with Hide and Static method</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Add-nat-rule-with-Hide-and-Static-method/m-p/8931#M727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me explain it with an example :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Orginal source : 10.0.0.0/24&lt;/P&gt;&lt;P&gt;Original destination : 10.100.1.1/32&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;translated source : 10.200.1.1/32&lt;/P&gt;&lt;P&gt;translated destination : 8.8.8.8/32&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my opinion, you are doing HIDE NAT for the source and STATIC NAT for the destination.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have run a few a test with the API and although you can only define on method ( Hide or Static ) and seems R80.10 is somehow intelligent to know that this is for the source only. Translated Source is Hide in my policy, Translated Destination is Static in my policy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I've been looking for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2018 14:43:14 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Add-nat-rule-with-Hide-and-Static-method/m-p/8931#M727</guid>
      <dc:creator>Kristof_Vermael</dc:creator>
      <dc:date>2018-11-26T14:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: API - Add nat rule with Hide and Static method</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Add-nat-rule-with-Hide-and-Static-method/m-p/8932#M728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kristof/Egor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just used the line below in my lab, source of translated packet is a HIDE and destination of translated is a STATIC.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please keep in mind this is through SmartConsole CLI, but you can modify to work with mgmt_cli as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note, in bold below you would replace with what your object names are.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;# add NAT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;add nat-rule original-source &lt;EM&gt;&lt;STRONG&gt;net_10.0.0.0_b24&lt;/STRONG&gt;&lt;/EM&gt; original-destination &lt;EM&gt;&lt;STRONG&gt;srv_10.100.1.1&lt;/STRONG&gt;&lt;/EM&gt; translated-source &lt;EM&gt;&lt;STRONG&gt;srv_10.200.1.1&lt;/STRONG&gt; &lt;/EM&gt;method &lt;EM&gt;&lt;STRONG&gt;hide&lt;/STRONG&gt;&lt;/EM&gt; translated-destination &lt;EM&gt;&lt;STRONG&gt;srv_8.8.8.8&lt;/STRONG&gt;&lt;/EM&gt; package &lt;EM&gt;&lt;STRONG&gt;Mike&lt;/STRONG&gt;&lt;/EM&gt; position bottom&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;# screen shot&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.checkpoint.com/legacyfs/online/checkpoint/75025_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2018 15:36:24 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Add-nat-rule-with-Hide-and-Static-method/m-p/8932#M728</guid>
      <dc:creator>Mike_A</dc:creator>
      <dc:date>2018-11-26T15:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: API - Add nat rule with Hide and Static method</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Add-nat-rule-with-Hide-and-Static-method/m-p/8933#M729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to clarify the method option in add nat-rule refers to what happens to the source address (hide or static).&lt;/P&gt;&lt;P&gt;If you specify a translated-destination, the only supported method is static and it should be the same size (host, network, or range) as the original- destination.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2018 21:42:59 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Add-nat-rule-with-Hide-and-Static-method/m-p/8933#M729</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2018-11-26T21:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: API - Add nat rule with Hide and Static method</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Add-nat-rule-with-Hide-and-Static-method/m-p/8934#M730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Dameon,&lt;/P&gt;&lt;P&gt;In R77.30, it was however possible to see hide nat for destination nat when you change the NAT method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.checkpoint.com/legacyfs/online/checkpoint/75155_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was a bit confused about this, but in R80.10, it all seems to work !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2018 08:19:53 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Add-nat-rule-with-Hide-and-Static-method/m-p/8934#M730</guid>
      <dc:creator>Kristof_Vermael</dc:creator>
      <dc:date>2018-11-27T08:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: API - Add nat rule with Hide and Static method</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Add-nat-rule-with-Hide-and-Static-method/m-p/8935#M731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pretty sure that was a bug &lt;SPAN style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"&gt;it even allowed that. &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://community.checkpoint.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2018 14:36:26 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Add-nat-rule-with-Hide-and-Static-method/m-p/8935#M731</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2018-11-27T14:36:26Z</dc:date>
    </item>
  </channel>
</rss>

