OpenVZ Forum


Home » Mailing lists » Users » Using NAT for VE with private IPs
Re: Using NAT for VE with private IPs [message #10655 is a reply to message #10653] Mon, 26 February 2007 06:44 Go to previous messageGo to previous message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

Lloyd R. Prentice wrote:
> 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
Oops. Why a reboot?

All the iptables commands, and modprobe as well, are not taking effect
after the reboot. In order to make them persistent, you have to put
those in some startup script.
> , 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 19:37:08 GMT 2024

Total time taken to generate the page: 0.03264 seconds