View Full Version : [ubuntu] help with dmz

September 1st, 2010, 02:36 PM
I'm trying to use iptables so that all traffic in on eth0 goes to Like a true DMZ.

the 192.168.x.x network is on a virtual nic eth0:1
eth0 is my out side nic.

Tried something like this no luck.

iptables -t nat -A PREROUTING -p tcp -i eth0 -j DNAT --to-destination

--maybe I can do this but how can I do this with dhcp

iptables -t nat -A PREROUTING -d -i eth0 -j DNAT --to-destination