OpenVZ Forum


Home » General » Discussions » Networking with OpenVz on Debian (My CT do not have internet access)
Re: Networking with OpenVz on Debian [message #36719 is a reply to message #36691] Mon, 13 July 2009 14:40 Go to previous messageGo to previous message
ceduardo is currently offline  ceduardo
Messages: 5
Registered: July 2009
Junior Member
Hi thansk for you answer,

I have this line for the redirection from internal LAN to eth2
# Al firewall tenemos acceso desde la red local
iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o eth2 -j MASQUERADE


But this line have a problem, because my internal LAN is 192.168.2.0/24 and not 192.168.0.0/24

I can solve this problem making this change on the same line. Where be 192.168.0.0/24 change to 192.168.2.0/24
# Al firewall tenemos acceso desde la red local
iptables -t nat -A POSTROUTING -s 192.168.2.0/24 -o eth2 -j MASQUERADE

Thanks every body!!!
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Any Idea why I cant post a question in Support?
Next Topic: VirtualComplete - new openvz panel
Goto Forum:
  


Current Time: Tue Sep 17 00:53:35 GMT 2024

Total time taken to generate the page: 0.04821 seconds