<?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 Trouble with NAT and VPN in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/trouble-with-nat-and-vpn/m-p/363293#M88350</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;i want to finish an easy setup which needs a simple DNAT and forwarding into a VPN tunnel on my PA5020.&lt;/P&gt;&lt;P&gt;I've created a working VPN tunnel which is the destination for my traffic. And this works fine if i'm using the tunnel ip to reach targets inside the vpn destination network (192.168.5.0/24). To use this setup it is necessary to hide the destination network (192.168.5.0/24) behind free public NAT (1.1.1.0/24) adresses which we're using inside intranet. So i have a public space /24 to mask the private adresse space /24.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;There are three zones configured: &lt;EM&gt;untrust&lt;/EM&gt; ("internet" via ae2.400), &lt;EM&gt;VPN&lt;/EM&gt; and &lt;EM&gt;trust&lt;/EM&gt; ("intranet" via ae1.305). To prevent double use of private adresses i've created a second VR for the customer destination network and added the tunnel interface from zone VPN. And finally i have created a NAT policy which should map 1:1 the outgoing packets directioned to the public adresses (1.1.1.0/24) and change the destination to the private network (192.168.5.0/24), so these packets should routed inside vpn. But it's not.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I've tried a lot of different configurations with routing and NAT but finally i have no clue whats going wrong. The security policies don't block any traffic and the NAT policy counter counts my connection tries. Everything looks fine. But no way to get a working connection from intranet to the vpn.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;How to set the routes properly to get my packets NATted and routed into the correct VR and finally inside the VPN?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Configuration ahead. I've changed the config a lot of times, so i'm sure everything looks now completely senseless &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;P&gt;&lt;STRONG&gt;show routing route&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;VIRTUAL ROUTER: default (id 1)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;==========&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;destination nexthop metric flags age interface next-AS&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;0.0.0.0/0 3.3.3.1 10 A S ae2.400 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;10.0.0.0/8 172.30.224.129 10 A S ae1.305 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;1.1.1.0/24 0.0.0.0 10 A S ae1.305 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;172.16.0.0/12 172.30.224.129 10 A S ae1.305 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;172.30.224.128/27 172.30.224.133 0 A C ae1.305 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;172.30.224.133/32 0.0.0.0 0 A H &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;3.3.3.0/24 3.3.3.5 0 A C ae2.400 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;3.3.3.5/32 0.0.0.0 0 A H &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;192.168.0.0/16 172.30.224.129 10 A S ae1.305 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;total routes shown: 12&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;VIRTUAL ROUTER: CUSTOMER (id 2)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;==========&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;destination nexthop metric flags age interface next-AS&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;3.3.3.99/32 0.0.0.0 0 A H &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;192.168.5.0/24 0.0.0.0 10 A S tunnel.99&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;show running nat-policy&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"NAT-S2S-CUSTOMER; index: 2" {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;nat-type ipv4;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;from trust;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;source any;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;to trust;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;to-interface;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;destination 1.1.1.0/24;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;service 0:any/any/any;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;translate-to "dst: 192.168.5.0-192.168.5.255";&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;terminal no;&lt;/FONT&gt;&lt;/P&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Nov 2020 13:26:43 GMT</pubDate>
    <dc:creator>lonzonline</dc:creator>
    <dc:date>2020-11-16T13:26:43Z</dc:date>
    <item>
      <title>Trouble with NAT and VPN</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/trouble-with-nat-and-vpn/m-p/363293#M88350</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;i want to finish an easy setup which needs a simple DNAT and forwarding into a VPN tunnel on my PA5020.&lt;/P&gt;&lt;P&gt;I've created a working VPN tunnel which is the destination for my traffic. And this works fine if i'm using the tunnel ip to reach targets inside the vpn destination network (192.168.5.0/24). To use this setup it is necessary to hide the destination network (192.168.5.0/24) behind free public NAT (1.1.1.0/24) adresses which we're using inside intranet. So i have a public space /24 to mask the private adresse space /24.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;There are three zones configured: &lt;EM&gt;untrust&lt;/EM&gt; ("internet" via ae2.400), &lt;EM&gt;VPN&lt;/EM&gt; and &lt;EM&gt;trust&lt;/EM&gt; ("intranet" via ae1.305). To prevent double use of private adresses i've created a second VR for the customer destination network and added the tunnel interface from zone VPN. And finally i have created a NAT policy which should map 1:1 the outgoing packets directioned to the public adresses (1.1.1.0/24) and change the destination to the private network (192.168.5.0/24), so these packets should routed inside vpn. But it's not.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I've tried a lot of different configurations with routing and NAT but finally i have no clue whats going wrong. The security policies don't block any traffic and the NAT policy counter counts my connection tries. Everything looks fine. But no way to get a working connection from intranet to the vpn.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;How to set the routes properly to get my packets NATted and routed into the correct VR and finally inside the VPN?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Configuration ahead. I've changed the config a lot of times, so i'm sure everything looks now completely senseless &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;P&gt;&lt;STRONG&gt;show routing route&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;VIRTUAL ROUTER: default (id 1)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;==========&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;destination nexthop metric flags age interface next-AS&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;0.0.0.0/0 3.3.3.1 10 A S ae2.400 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;10.0.0.0/8 172.30.224.129 10 A S ae1.305 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;1.1.1.0/24 0.0.0.0 10 A S ae1.305 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;172.16.0.0/12 172.30.224.129 10 A S ae1.305 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;172.30.224.128/27 172.30.224.133 0 A C ae1.305 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;172.30.224.133/32 0.0.0.0 0 A H &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;3.3.3.0/24 3.3.3.5 0 A C ae2.400 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;3.3.3.5/32 0.0.0.0 0 A H &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;192.168.0.0/16 172.30.224.129 10 A S ae1.305 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;total routes shown: 12&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;VIRTUAL ROUTER: CUSTOMER (id 2)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;==========&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;destination nexthop metric flags age interface next-AS&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;3.3.3.99/32 0.0.0.0 0 A H &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;192.168.5.0/24 0.0.0.0 10 A S tunnel.99&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;show running nat-policy&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"NAT-S2S-CUSTOMER; index: 2" {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;nat-type ipv4;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;from trust;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;source any;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;to trust;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;to-interface;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;destination 1.1.1.0/24;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;service 0:any/any/any;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;translate-to "dst: 192.168.5.0-192.168.5.255";&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;terminal no;&lt;/FONT&gt;&lt;/P&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2020 13:26:43 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/trouble-with-nat-and-vpn/m-p/363293#M88350</guid>
      <dc:creator>lonzonline</dc:creator>
      <dc:date>2020-11-16T13:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with NAT and VPN</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/trouble-with-nat-and-vpn/m-p/365914#M88629</link>
      <description>&lt;P&gt;set the 1.1.1.0/24 subnet on the tunnel interface&lt;/P&gt;&lt;P&gt;add a route for the default VR to the customer VR for 1.1.1.0/24 (next hop VR)&lt;/P&gt;&lt;P&gt;and add your internal subnets on the customer VR as a next hop to default VR&lt;/P&gt;&lt;P&gt;then set the NAT rule from trust to vpn with 1.1.1.0/24 original&amp;nbsp; , and 192.168.5.0/24/24 static destination NAT&lt;/P&gt;&lt;P&gt;and set the security rule from trust to vpn destination 1.1.1.0/24 (security uses pre-nat IPs)&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 10:05:26 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/trouble-with-nat-and-vpn/m-p/365914#M88629</guid>
      <dc:creator>reaper</dc:creator>
      <dc:date>2020-11-27T10:05:26Z</dc:date>
    </item>
  </channel>
</rss>

