OpenVZ Forum


Home » General » Support » Vps with VPN
Re: Vps with VPN [message #50877 is a reply to message #50874] Tue, 19 November 2013 12:31 Go to previous messageGo to previous message
silence is currently offline  silence
Messages: 12
Registered: November 2013
Location: Portugal - Lisbon
Junior Member
still no internet :\


[root@vpn /]# iptables -t nat -A POSTROUTING -j MASQUERADE
[root@vpn /]# iptables -t nat -L
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
DNAT all -- anywhere anywhere to:IP

Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
SNAT all -- anywhere anywhere to:IP.40
SNAT all -- IP/24 anywhere to:IP.40
SNAT all -- 10.8.0.0/24 anywhere to:127.0.0.1
SNAT all -- IP.0/24 anywhere to:127.0.0.1
SNAT all -- anywhere anywhere to:IP of VPN
SNAT all -- anywhere anywhere to:123.123.123.123
SNAT all -- anywhere anywhere to:IP.40
SNAT all -- 10.8.0.0/24 anywhere to:123.123.123.12
SNAT all -- 10.8.0.0/24 anywhere to:IP.40
SNAT all -- 10.8.0.0/24 anywhere to:IP.40
SNAT all -- anywhere anywhere to:IP.40
MASQUERADE all -- anywhere anywhere

Chain OUTPUT (policy ACCEPT)
target prot opt source destination


i've restarted container
 
Read Message icon4.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Cant block DDoS to a VPS? How to do it?
Next Topic: tc RTNETLINK answers: Invalid argument / We have an error talking to the kernel
Goto Forum:
  


Current Time: Sun Sep 01 19:01:25 GMT 2024

Total time taken to generate the page: 0.05755 seconds