OpenVZ Forum


Home » General » Support » Problem with NAT
Problem with NAT [message #1002] Wed, 25 January 2006 10:38 Go to next message
shufla is currently offline  shufla
Messages: 1
Registered: January 2006
Junior Member
Hello,

There's my situation:

system: clean CentOS release 4.2 (Final)
Network:
eth0: 192.168.2.1/24
eth1: 192.168.0.65/24 gw 192.168.0.1

With standard CentOS kernel I'm able to do nat with:

iptables -t nat -A POSTROUTING -s 192.168.2.0/24 \! -d 192.168.2.0/24 -j SNAT --to 192.168.0.65


For example:
mtr -n --address 192.168.2.1 192.168.0.1
works fine, and while I watch iptables with
watch -n1 iptables -t nat -vnL POSTROUTING
I see counters incerasing (of course net.ipv4.ip_forward = 1).

While using ovzkernel-2.6.8-022stab061.1 kernel that rule do not apply. And while watching iptables I do not see any counters activity. I assume that's connected with networking issues in OpenVZ, but I've seen some topics here, which covers NAT...

Well, I missed something... But what?!


Best Regards,
Luke

Re: Problem with NAT [message #1004 is a reply to message #1002] Wed, 25 January 2006 12:11 Go to previous message
dim is currently offline  dim
Messages: 344
Registered: August 2005
Senior Member
We have disabled conntracks on hardware node by default. See http://openvz.org/documentation/faq/en#14 for details.

http://static.openvz.org/openvz_userbar_en.gif
Previous Topic: More on memory limits
Next Topic: Ensim
Goto Forum:
  


Current Time: Sat Aug 17 02:53:42 GMT 2024

Total time taken to generate the page: 0.02906 seconds