OpenVZ Forum


Home » General » Support » Networking with OpenVz on Debian (My CT do not have internet access)
Re: Networking with OpenVz on Debian [Solved] [message #36718 is a reply to message #36716] Mon, 13 July 2009 14:38 Go 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
Previous Topic: Arbitrary File Creation under /proc from VE
Next Topic: VE mounted with NFS ?
Goto Forum:
  


Current Time: Fri Aug 01 02:34:08 GMT 2025

Total time taken to generate the page: 0.49407 seconds