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