Re: Vps with VPN [message #50885 is a reply to message #50884] |
Wed, 20 November 2013 12:48 ![Go to previous message Go to previous message](/theme/ovz3/images/up.png) ![Go to next message Go to previous message](/theme/ovz3/images/down.png) |
silence
Messages: 12 Registered: November 2013 Location: Portugal - Lisbon
|
Junior Member |
|
|
grep wrote on Wed, 20 November 2013 12:43Hello,
dont add your internet IP to the rules. I was thinking you use openvpn.
Please make:
iptables -t nat -A POSTROUTING -j SNAT --to-source SERVERIP
Serverip is the IP of your server, not of your internet. Insert the IP of your openvz container.
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
SNAT all -- anywhere anywhere to:IP_of_VPN
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
still not going
[Updated on: Wed, 20 November 2013 12:51] Report message to a moderator
|
|
|