[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Web openvpn.net

[Openvpn-users] change outgoing nat interface

I have an openvpn server running with the redirect gateway option. I issued this command so that all data flows out of eth1:
iptables -t nat -A POSTROUTING -s -o eth1 -j MASQUERADE

when I do the above I can go to ipchicken.com and get see that I have the external ip of eth1, but I would instead like to have the external nat'd ip of eth1:7, but the nat command will not take an ethernet alias. So badically, how to I set the out going nat'd interface to be eth1:7, so that when I go to ipchicken.com I get the ip of eth1:7? Hope that wasn't too confusing!