IPSEC with snat



  • Hi. I have an iptables with ipsec client and it's ok. I want to change iptables with pfsense. I have this settings for ipsec:
    my lan 10.4.17.0/24
    ipsec site: local 172.15.22.0/24, remote 10.173.0.0/21.
    In iptables i have this rule of snat for change my local ip 10.4.17.103 in 172.15.22.254:
    -A POSTROUTING -s 10.0.3.103 -d 10.173.0.0/21 -j SNAT --to-source 172.15.22.254
    -A POSTROUTING -s 172.15.22.0/24 -o eth1 -m policy --dir out --pol ipsec -j ACCEPT.
    How can i make this settings in pfsense?