I've a dedicated server on LA, and I want to connect to this server via VPN ( poptop server ) to keep my static ip when I'm on trip and to keep my wireless packets safe.
but my dedicated server has 4 ips ( one on eth0 and others virtually on eth0:0 eth0:1 eth0:2 ), I want to connect to vpn with each one when I need to one of theme.
so the problem is this iptables rule:
iptables --table nat --append POSTROUTING \
--out-interface eth0 --jump MASQUERADE
this rule will forward all of my packets ( independent of which ip I've connected to ) from eth0, so in websites my ip always is the ip of eth0 but I need to some times it be eth0:0 's ip and so on....
I need better iptables rules...