- Add NAT rules to allow WPA clients to use the IP address assigned to the VPN concentrator so that traffic can route through the VPC.
- Replace interface below with the interface name you found with
ip ain a previous step. This will beenX0,eth0,eth0,ens1or another similar value.sudo iptables -t nat -A POSTROUTING -s 192.168.253.0/24 -o interface -m policy --dir out --pol ipsec -j ACCEPTsudo iptables -t nat -A POSTROUTING -s 192.168.253.0/24 -o interface -j MASQUERADE - Enter the following commands to ensure the IP tables configuration persists:
sudo apt-get install iptables-persistent sudo systemctl enable netfilter-persistent.service sudo netfilter-persistent save