NAT for IpSec VPN



  • Hi,
    I'm trying to nat my OPT1 Lan to a IPsec Tunnel. Also maybe the OVPN Network. But it isn't working. The tunnel in working perfectly both networks are reachable from both sites. I Can't enter static routes to the Fritz.box for the othler netwoks that thing doesn't allow this. So the Idea with the NAT Rules. Any Suggestions?

    PFsense is the newest Version. 2.4.3-RELEASE-p1 (amd64)

    0_1531522407282_4b0fc396-7970-4d09-9d52-12f17b3f76fd-image.png

    +------------------------------------------+
    |                                          |                      +--------------------------------+
    |                  Site A  PfSense         |     IpSec VPN        |         Site B Fritz.Box       |
    |             +--->LAN: 192.168.221.1/24   | <------------------> |         192.168.222.0/24       |
    |             |                            |                      |                                |
    |             |NAT                         |                      |                                |
    |             +                            |                      |                                |
    |OPT1: 192.168.144.1/24                    |                      +--------------------------------+
    |OpenVPN: 192.168.123.0/24                 |
    |                                          |
    |                                          |
    +------------------------------------------+
    

  • Netgate

    I Can't enter static routes to the Fritz.box for the othler netwoks that thing doesn't allow this.

    Will it do multiple "Phase 2" networks or is that what you are saying it does not allow?

    The other side will have to be able to do something so the pfSense side will know what network they are trying to make a connection to.

    You cannot do IPsec NAT using Outbound NAT. The NAT goes in the IPsec Phase 2 definition.