[Users] Using NAT for VE with private IPs

Lloyd R. Prentice lloyd at paisite.com
Sun Feb 25 15:14:27 EST 2007


Hi,

I'm closing in on my first successful install of a VE on openVZ but, 
having trouble with network configuration.

My hardware NODE is behind a firewall connected to a dsl modem. DNSmasq 
on the firewall supplies a static IP  to the hardware NODE.  Let's call 
it <hardwareNODE>.

Following the instructions in:

http://wiki.openvz.org/Using_NAT_for_VE_with_private_IPs

...I issued the following command to the hardware NODE:

iptables -t nat -A POSTROUTING -s 172.16.0.0/255/255/255/0 -o eth0 -j 
SNAT --to <hardwareNODE>

Then I entered:

iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to <hardwareNODE>

Finally, since my system didn't hve the file /etc/modprobe.conf, I 
issued the following at the commandline:

modprobe ip_conntrack ip_conntrack_enable_ve0=1

Then I rebooted, entered a VE and tested by issuing:

apt-get update.

The system failed resolve the addresses in sources.list.

I double checked that I had entered:

vzctl set 777 --ipadd 172.16.0.1 --save

...which I had.

Any ideas, please, of what I'm doing wrong, or need to do to 
diagnose and solve the problem?


Many thanks,

Lloyd R. Prentice






More information about the Users mailing list