Originally Posted by mboncalo
I made some modifications in openvpn config files and remade iptables rules and now works.
Can you please share how did you modify to make iptables NAT working on OpenVZ?
I meet the same problem while using postrouting
iptables -t nat -A POSTROUTING -o venet0:0 -j SNAT -to 184.108.40.206
Warning: wierd character in interface `venet0:0' (No aliases, :, ! or *).
Bad argument `220.127.116.11'
Try `iptables -h' or 'iptables --help' for more information.
iptables -t nat -A POSTROUTING -o venet0 -j MASQUERADE
iptables -t nat -A POSTROUTING -o venet0:0 -j MASQUERADE
I'm using Openvz centos5 to establish a l2tp vpn by softehter, which works fine in when debian is installed.However, under centos,I can reach the point get connection, but client can not get IP address.
Please give advises if you can.
Thank you very much