OpenVZ Forum


Home » General » Support » Problem with NAT
Problem with NAT [message #1002] Wed, 25 January 2006 10:38 Go to previous 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

 
Read Message
Read Message
Previous Topic: More on memory limits
Next Topic: Ensim
Goto Forum:
  


Current Time: Mon Jul 22 08:23:01 GMT 2024

Total time taken to generate the page: 0.02422 seconds