OpenVZ Forum


Home » Mailing lists » Users » Using NAT for VE with private IPs
Using NAT for VE with private IPs [message #10653] Sun, 25 February 2007 20:14 Go to previous message
lloyd is currently offline  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
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Asterisk
Next Topic: creating partition for VE and networking
Goto Forum:
  


Current Time: Thu Jul 18 15:18:53 GMT 2024

Total time taken to generate the page: 0.02643 seconds