[CentOS] iptables details

Tue Apr 22 01:10:45 UTC 2008
Fajar Priyanto <fajarpri at cbn.net.id>

Hi all,
I'm a bit confused reading the RHEL System-Administrator-Guide regarding this:
(1) iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j DNAT --to 
10.1.2.253:80
(2) iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j 
DNAT --to-destination 10.1.2.253:80

The first is for port forwarding, the second is said to be used for DMZ. But I 
tried both and the result is the same. Is there any difference between the 
two?

Thank you,
-- 
Fajar Priyanto | Reg'd Linux User #327841 | Linux tutorial 
http://linux2.arinet.org
08:09:27 up 1:01, 2.6.22-14-generic GNU/Linux 
Let's use OpenOffice. http://www.openoffice.org
The real challenge of teaching is getting your students motivated to learn.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.centos.org/pipermail/centos/attachments/20080422/df883dd5/attachment-0003.sig>