Hello, 

I would like to forward some traffic(23) from the special 
place(10.0.0.1/24).
to 192.168.1.2. then which rule is right of the two?

1. PREROUTING chain

iptables -A PREROUTING -p tcp -s 10.0.0.1/24 --sport 1024:65535 -d 
211.1.1.1 --dport 23 -j DNAT --to 192.168.1.2:23

2. FORWARD chain 

iptables -A FORWARD -p TCP -s 10.0.0.1/24 --sport 1024:65535 -d 211.1.1.1 
--dport 23 -m state --state NEW,ESTABLISHED -j ACCEPT


Which is right? or both are right?

Thanks a lot.



_________________________________________________________________
http://messenger.msn.co.kr¿¡¼­ MSN Messenger¸¦ ´Ù¿î·ÎµåÇÏ¿© ¿Â¶óÀÎ »ó¿¡ ÀÖ´Â
 Ä£±¸¿Í ´ëÈ­¸¦ ³ª´©¼¼¿ä.


Reply via email to