Use ipchains. ftp is port 21. Example:

/sbin/ipchains -I input -p tcp -s 0.0.0.0/0 \
        -d your.ip.add.ress 21 -j REJECT
/sbin/ipchains -I input -p tcp -s ok.ip.add.ress \
         -d your.ip.add.ress 21 -j ACCEPT

0.0.0.0/0 is the entire world. For more info; man ipchains.

For a great site to start out at try:

http://www.linux-firewall-tools.com/linux/firewall/index.html

Kirk


>On Sat, 24 Mar 2001, Hector M Banda wrote:


> Hi all,
> I need a firewall for my Linux server where I can telnet and ftp securely. Or 
>better, is any way I can restrict the telnet or the ftp to my server to specific 
>domains or addresses?
>
> Thanks.
>

-- 
     Kirk Whiting <[EMAIL PROTECTED]>
     *** Gothic Unix Freak, Windoze hater ***
         http://www.prince-of-darkness.cc



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to