Networking Forums

Networking Forums > Computer Networking > Linux Networking > how to block one ip to my ftp server

Reply
Thread Tools Display Modes

how to block one ip to my ftp server

 
 
Simon Lee
Guest
Posts: n/a

 
      06-24-2004, 01:04 AM
Dear all,

Recently, I found that one ip enter to my ftp server, and want to block it.
How do I do? thanks

Simon


 
Reply With Quote
 
 
 
 
James T
Guest
Posts: n/a

 
      06-24-2004, 01:44 AM
On Thu, 24 Jun 2004 09:04:33 +0800, Simon Lee wrote:

> Dear all,
>
> Recently, I found that one ip enter to my ftp server, and want to block it.
> How do I do? thanks
>
> Simon


I believe the most straight forward approach is to drop all packets sent
to port 21 from the offending IP address in your system's
firewall. This will leave everything else exactly as it was and will
only block FTP connections from that IP address.
 
Reply With Quote
 
Dako Oten
Guest
Posts: n/a

 
      06-24-2004, 12:32 PM
On Thu, 24 Jun 2004 09:04:33 +0800, Simon Lee wrote:

> Dear all,
>
> Recently, I found that one ip enter to my ftp server, and want to block
> it. How do I do? thanks
>


You could specify any particular hosts in you
access control files, /etc/hosts.deny . or just
drop the ftp packets coming from that ip in your
firewall.


--
Pat S. Tongco
stderr(Cagayan de Oro)

 
Reply With Quote
 
Andrei Ivanov
Guest
Posts: n/a

 
      06-24-2004, 08:08 PM
Dako Oten <Dako_Oten@filipines_islands.org> wrote:
> On Thu, 24 Jun 2004 09:04:33 +0800, Simon Lee wrote:
>> Recently, I found that one ip enter to my ftp server, and want to block
>> it. How do I do? thanks

>
> You could specify any particular hosts in you
> access control files, /etc/hosts.deny . or just
> drop the ftp packets coming from that ip in your
> firewall.


A bit of clarification about /etc/hosts.deny: this file is part
of TCP_Wrappers setup. On RHL6.2, for example, you should have
inetd-0.16-4 and tcp_wrappers-7.6-10 packages installed, and also
have smth like this in your /etc/inetd.conf file (notice reference
to "/usr/sbin/tcpd"):

ftp stream tcp nowait root /usr/sbin/tcpd in.ftpd -Idvl -a

If you're using newer distro, which has "xinetd" instead of older
"inetd", then you should edit /etc/xinetd.d/ftpd (or similar) file.

--
andrei
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to block a pc from DHCP server Cheongseo Ku Windows Networking 2 02-23-2008 02:48 PM
Traffic block by server Nuno Gomex Windows Networking 9 10-03-2006 12:43 AM
URGENT: Need to block x_forwarded_for IP at server level Raven Linux Networking 0 03-29-2005 08:42 PM
How to block server access using TCP/IP filter Nagaraj Windows Networking 1 02-26-2004 01:35 PM
he hammer mine ftp-server how can i block that ip volkman Linux Networking 6 11-27-2003 08:40 PM



1 2 3 4 5 6 7 8 9 10 11