[lug] iptables

j davis davis_compz at hotmail.com
Tue May 21 20:55:33 MDT 2002


Hi,
so if a request is made to the public interface of my firewall is
the request processed as the public IP or the private IP for the firewall.

example :

I want to block telnet access to my firewall from the internet. I write 
rules
in the INPUT chain to do this.Would i write the rule blocking telnet using
the public or private interface

/sbin/iptables -A INPUT -i eth0 -d 10.0.0.1 -p tcp --dport 23 -j DROP

                      or

/sbin/iptables -A INPUT -i eth0 -d $MY_PUB_IP -p tcp --dport 23 -j DROP

Thanks
jd



_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com




More information about the LUG mailing list