Re: [CentOS] iptables details

2008-04-22 Thread gopinath
Both the command works as same. what you need in iptables - Original Message - From: "Christopher Chan" <[EMAIL PROTECTED]> To: "CentOS mailing list" Sent: Tuesday, April 22, 2008 1:49 PM Subject: Re: [CentOS] iptables details > Fajar Priyanto wrote: >

Re: [CentOS] iptables details

2008-04-22 Thread Christopher Chan
Fajar Priyanto wrote: 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

[CentOS] iptables details

2008-04-21 Thread Fajar Priyanto
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 f