OpenVZ Forum


Home » General » Support » Networking? (NAT)
Re: Networking? (NAT) [message #23331 is a reply to message #23309] Thu, 15 November 2007 14:48 Go to previous messageGo to previous message
RobinVossen is currently offline  RobinVossen
Messages: 36
Registered: November 2007
Member
THanks for your support. But I think I am thick or something...
I did run the following commands:
vzctl start 1
iptables -t nat -A POSTROUTING -s 192.168.1.1 -o eth0 -j SNAT --to 192.168.42.112
After that I did run vzlist output:
VPSID 1 NPROC 1 STATUS running IP_ADDR 192.168.1.1 HOSTNAME 1
Then I did vzctl enter 1
Now ping google.com (Error, unknown host google.com)
Exit (to get to my main system) ping google.com (Success)
ifconfig afterwards to check if I really aws 192.168.42.112.
Output:
eth0 inet addr:192.168.42.112

Bad Luck..

Were do I go wrong? Sad
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: compiling kernel 2.6.8.1, net/ipv6/route.c: Error: request for member `lock' in something
Next Topic: Help with port to ARM architecture
Goto Forum:
  


Current Time: Sat Jul 20 05:26:07 GMT 2024

Total time taken to generate the page: 0.02253 seconds