Configuring two-way NAT with iptables

view full story

http://serverfault.com – I am trying to configure NAT for my VPN connection. I have one NIC with 5 configured public IP addresses and I want to use one specific IP address for this NAT config. I have enabled the ipv4 forwarding and successfully configured SNAT, but the internet connection still doesn't work. I am not sure how to configure prerouting. This is the setup: IP addresses - 244 are used for the IP address pool for my VPN connection. I want to use the IP address 46.xxx.xxx.18 as the VPN address. This IP address is configured on eth0 as eth0:4 and the other IP addresses on eth0 can't be used for (HowTos)