The pfSense Store

Author Topic: Need to NAT between two IPSEC tunnels  (Read 108 times)

0 Members and 1 Guest are viewing this topic.

Offline MarioG

  • Newbie
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Need to NAT between two IPSEC tunnels
« on: November 09, 2017, 03:28:31 pm »
I had this working on an the old router using SNAT to translate an IPSEC A range to a pool of lan addresses only when connecting to IPSEC B. I read the book (gold) and still cannot get this to work:

Lan access to both IPSEC A and B are via WAN:
Remote IPSEC A connects as 10.10.2.x to lan 10.10.1.x - All this works fine. These are smartphones.
Remote IPSEC B is 10.100.200.0, connected from lan 10.10.1.x - Also works fine, this is a site to site.

I need to get the IPSEC A 10.10.2.x to connect to IPSEC B and appear as the lan 10.10.1.200-203 range without changing anything on the remote site.

I tried: Adding a phase 2 to IPSEC B and using binat; 1:1; virtual IPs, and many other things I found on the web that I probably setup wrong. I am on pfsense 2.4.1. Can someone please point me in the right direction?
« Last Edit: November 09, 2017, 04:04:10 pm by MarioG »

Offline MarioG

  • Newbie
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Re: Need to NAT between two IPSEC tunnels
« Reply #1 on: November 13, 2017, 05:31:39 pm »
For future folks that make the same mistake I found the problem: When trying manual outbound NAT I had setup a virtual IP of 10.10.1.200 but had the interface set to LAN instead of localhost. Once I changed the VIP interface to localhost it worked fine. Hope this helps someone in the future.