mirostz
6th March 2009, 21:16
Hello guys,
I am running openvpn and when i nat via eth0 it is working good.
But when i try to change the outgoing ip which is at my second interface eth0:1 i get this error:
# iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0:1 -j MASQUERADE
Warning: wierd character in interface `eth0:1' (No aliases, :, ! or *).
How can i make an alias or something to make it work. Please help
I am running openvpn and when i nat via eth0 it is working good.
But when i try to change the outgoing ip which is at my second interface eth0:1 i get this error:
# iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0:1 -j MASQUERADE
Warning: wierd character in interface `eth0:1' (No aliases, :, ! or *).
How can i make an alias or something to make it work. Please help