OpenVZ Forum

Home » General » Support » Firewall and NAT (Problem enabling NAT)
Firewall and NAT [message #38416] Fri, 18 December 2009 03:49 Go to previous message
foxb is currently offline  foxb
Messages: 12
Registered: December 2009
Junior Member

I followed the tutorial: ng_up_a_HN-based_firewall

But Now I want to enable NAT (CT to be with Private IP)

As described here:

iptables -t nat -A POSTROUTING -s -o eth0 -j SNAT --to xx.xx.xx.xx
iptables -t nat -A PREROUTING -p tcp -d xx.xx.xx.xx --dport 888 -i eth0 -j DNAT --to-destination

But nothing happens?

No error, but when I issue iptables -L -n noting appears?!

Host is CentOS 5

It should be obvious mistake, but cannot figure it...

Any suggestions?

If additional information is needed, please let me know.
Read Message
Read Message
Read Message
Previous Topic: Configure virtualized /proc
Next Topic: centos4 didn't find ovzkernel-devel, maybe give a try for el5 kernel flavor?
Goto Forum:

Current Time: Wed Feb 28 02:08:38 GMT 2024

Total time taken to generate the page: 0.02416 seconds