Using NAT for VE with private IPs [message #10653] |
Sun, 25 February 2007 20:14 |
lloyd
Messages: 3 Registered: February 2007
|
Junior Member |
|
|
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
|
|
|