Assuming there is no path between your internal and external networks:

iptables -A INPUT -i eth0 -p tcp --dport 23 -j DROP
iptables -A INPUT -i eth0 -p tcp --dport 21 -j DROP

On Fri, 2002-10-25 at 10:38, arvinboy wrote:
> hi guys,
>             i had a simple inquiry for iptables:(eth0-outgoing and eth1-
> my internal network)
> 1. how could i block telnet and ftp from outside and accept telnet and
> ftp from my internal network.
> 
> godbless
>   rvin

-- 
Stephen Paul E Florentino [ All your base are belong to us. ]

_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

Fully Searchable Archives With Friendly Web Interface at http://marc.free.net.ph

To subscribe to the Linux Newbies' List: send "subscribe" in the body to 
[EMAIL PROTECTED]

Reply via email to