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 18.104.22.168
Warning: wierd character in interface `venet0:0' (No aliases, :, ! or *).
Bad argument `22.214.171.124'
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