Networking Forums

Networking Forums > Computer Networking > Linux Networking > he hammer mine ftp-server how can i block that ip

Reply
Thread Tools Display Modes

he hammer mine ftp-server how can i block that ip

 
 
volkman
Guest
Posts: n/a

 
      11-22-2003, 07:22 PM
hi

I use proftpd for mine ftp-server.
but there is a lot of users that hammer mine server so
i will that iptable automatic block that ip
example: have he 3 time login in about 30 sec than drop iptable that ip
is there someone where i can find info about that?
or know how to do that?

thnks anyway
volkman


 
Reply With Quote
 
 
 
 
David
Guest
Posts: n/a

 
      11-22-2003, 08:49 PM
volkman wrote:
>
> I use proftpd for mine ftp-server.
> but there is a lot of users that hammer mine server so
> i will that iptable automatic block that ip
> example: have he 3 time login in about 30 sec than drop iptable that ip
> is there someone where i can find info about that?
> or know how to do that?


Some of it may be the same host connecting multiple times. If
that is what is happening you can limit them to just one
connection by adding the lines below to /etc/profile.conf and
restarting proftpd.

# Limit number of logins by host.
MaxClientsPerHost 1

With this set it will "refuse" multiple connections from the same
host but still allow a single connection from the host.

--
Confucius: He who play in root, eventually kill tree.
Registered with The Linux Counter. http://counter.li.org/
Slackware 9.1.0 Kernel 2.4.22 SMP i686 (GCC) 3.3.2
Uptime: 14:54, 1 user, load average: 0.69, 0.40, 0.43
 
Reply With Quote
 
David
Guest
Posts: n/a

 
      11-22-2003, 09:36 PM
David wrote:
>
> Some of it may be the same host connecting multiple times. If that is
> what is happening you can limit them to just one connection by adding
> the lines below to /etc/profile.conf and restarting proftpd.


Ooops!! That should be /etc/proftpd.conf NOT /etc/profile.conf
had my mind on the right file but my fingers on something else.

--
Confucius: He who play in root, eventually kill tree.
Registered with The Linux Counter. http://counter.li.org/
Slackware 9.1.0 Kernel 2.4.22 SMP i686 (GCC) 3.3.2
Uptime: 15:54, 2 users, load average: 0.09, 0.08, 0.07
 
Reply With Quote
 
baskitcaise
Guest
Posts: n/a

 
      11-22-2003, 10:34 PM
David wrote:

> David wrote:
>>
>> Some of it may be the same host connecting multiple times. If that is
>> what is happening you can limit them to just one connection by adding
>> the lines below to /etc/profile.conf and restarting proftpd.

>
> Ooops!! That should be /etc/proftpd.conf NOT /etc/profile.conf
> had my mind on the right file but my fingers on something else.
>


That came make you blind you know

--
Mark
Twixt hill and high water.
N.Wales, UK.
Email is spam trap try baskitcaise at gmx dot co dot uk
 
Reply With Quote
 
volkman
Guest
Posts: n/a

 
      11-23-2003, 10:33 AM

"David" <(E-Mail Removed)> schreef in bericht
news:FRQvb.210560$ao4.749617@attbi_s51...
> volkman wrote:
> >
> > I use proftpd for mine ftp-server.
> > but there is a lot of users that hammer mine server so
> > i will that iptable automatic block that ip
> > example: have he 3 time login in about 30 sec than drop iptable that ip
> > is there someone where i can find info about that?
> > or know how to do that?

>
> Some of it may be the same host connecting multiple times. If
> that is what is happening you can limit them to just one
> connection by adding the lines below to /etc/profile.conf and
> restarting proftpd.
>
> # Limit number of logins by host.
> MaxClientsPerHost 1
>
> With this set it will "refuse" multiple connections from the same
> host but still allow a single connection from the host.
>
> --
> Confucius: He who play in root, eventually kill tree.
> Registered with The Linux Counter. http://counter.li.org/
> Slackware 9.1.0 Kernel 2.4.22 SMP i686 (GCC) 3.3.2
> Uptime: 14:54, 1 user, load average: 0.69, 0.40, 0.43



yea, i know that command
but when the server is full than try the users login
sometime 120 times in 10 sec
that do slow me bandwitch a lot
so is there other way do block that ip?

vw


 
Reply With Quote
 
David
Guest
Posts: n/a

 
      11-23-2003, 01:55 PM
volkman wrote:
>
> yea, i know that command
> but when the server is full than try the users login
> sometime 120 times in 10 sec
> that do slow me bandwitch a lot
> so is there other way do block that ip?


I had the same thing happening so I set MaxClientsPerHost so that
only one connection is allowed. The connections are probably from
an FTP client like Gozilla or one of the other windows clients.

If you want to block them permanently just setup a BLOCKED_HOSTS
rule in your firewall and add the IP to the BLOCKED_HOSTS file.
But that may not do much good if they get a new IP every time
they connect to their ISP.

--
Confucius: He who play in root, eventually kill tree.
Registered with The Linux Counter. http://counter.li.org/
Slackware 9.1.0 Kernel 2.4.22 SMP i686 (GCC) 3.3.2
Uptime: 1 day, 7:54, 1 user, load average: 0.01, 0.04, 0.11
 
Reply With Quote
 
Slardy Bart Fast
Guest
Posts: n/a

 
      11-27-2003, 08:40 PM
volkman wrote:

>
> "David" <(E-Mail Removed)> schreef in bericht
> news:FRQvb.210560$ao4.749617@attbi_s51...
>> volkman wrote:
>> >
>> > I use proftpd for mine ftp-server.
>> > but there is a lot of users that hammer mine server so
>> > i will that iptable automatic block that ip
>> > example: have he 3 time login in about 30 sec than drop iptable that ip
>> > is there someone where i can find info about that?
>> > or know how to do that?

>>
>> Some of it may be the same host connecting multiple times. If
>> that is what is happening you can limit them to just one
>> connection by adding the lines below to /etc/profile.conf and
>> restarting proftpd.
>>
>> # Limit number of logins by host.
>> MaxClientsPerHost 1
>>
>> With this set it will "refuse" multiple connections from the same
>> host but still allow a single connection from the host.
>>
>> --
>> Confucius: He who play in root, eventually kill tree.
>> Registered with The Linux Counter. http://counter.li.org/
>> Slackware 9.1.0 Kernel 2.4.22 SMP i686 (GCC) 3.3.2
>> Uptime: 14:54, 1 user, load average: 0.69, 0.40, 0.43

>
>
> yea, i know that command
> but when the server is full than try the users login
> sometime 120 times in 10 sec
> that do slow me bandwitch a lot
> so is there other way do block that ip?
>
> vw


I've found that shorewall is a lot easier to set up
than the suse firewall, and one of the things it has
is blacklists, including dynamic blacklist so that
you can add IPs or IP ranges. www.shorewall.net
Its easy to install too. Don't know if there is
a german web site for it.


--
Slardy Bart Fast
 
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 one ip to my ftp server Simon Lee Linux Networking 3 06-24-2004 08:08 PM
How to block server access using TCP/IP filter Nagaraj Windows Networking 1 02-26-2004 01:35 PM



1 2 3 4 5 6 7 8 9 10 11