All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Gale <michael.gale@utilitran.com>
To: Feizhou <feizhou@linuxmail.org>, netfilter@lists.netfilter.org
Subject: Re: over a 1,000,000,000 individual ips to block
Date: Mon, 28 Jun 2004 10:31:10 -0600	[thread overview]
Message-ID: <20040628103110.4acb1485@mgalepc.utilitran.com> (raw)
In-Reply-To: <40E01B10.6000202@linuxmail.org>

Hello,

	If you allow a simple IP to make a 100 smtp connections to your mail server
then you have other problems. Why you would allow any IP to make more then 10-15
connections is beyond me. Also .. if you set a error limit (example mine is 5)
when that limit is reached the smtp and tcp connection are dropped. 

There are also other SMTP server restrictions you can take place. How do you
think mail appliances that are designed to be placed on the outside of a network
to filter traffic between the outside world and exchange work ??? Do you think
they rely solely on some other firewall to handle DOS's ??? I can tell you that
they don't. 

I am not saying that you should not block abusive IP's or network's at the
firewall. But to rely only on the firewall to solve this problem. Plus using 1
million rules ... how long would your load time be ? What about changes and
administration ? 

Also what about ESTABLISHED connections ??? If you do not use a ESTABLISHED
state -j ACCEPT at the top ... then each IP would then in theory have to match 1
million rules every time it came in.

I am sure there is a better answer then to create 1 million iptable rules. 

Michael. 


On Mon, 28 Jun 2004 21:20:16 +0800
Feizhou <feizhou@linuxmail.org> wrote:

> Michael Gale wrote:
> > Hello,
> > 
> > 	Why don't you block networks ??
> > 
> > Firewall - SYN Cookie enabling ? 
> 
> What good is syn cookies against traffic that conform to tcp rules but 
> are just too abusive?
> > 
> > Mail servers - use RBL list - this list will contain networks of IP's that
> > belong to home users. So they do not need to connect directly to your mail
> > server.
> 
> RBL does nothing against spammers who open 100 connections to each of 
> your MXs and who run malware that do not understand,respect smtp 5xx. 
> Dropping the connection means they keep coming at you. For these, there 
> is nothing but a firewall that will keep them off your MXs.
> > 
> > Web servers -- rate limiting ? block networks ? Better web server ?
> > 
> > If you blocked networks ? The estimated max number of rules a packet might
> > have to match would be 254 ... plus the rest of your filtering for ports and
> > other needs. This could slow down network access because of all the rules to
> > check for each packet.
> > 
> > If you are not using network addresses the list would become to long.
> 
> I am sure CIDRs were part of the OP's mind since iptables takes both 
> individial ips and CIDRs. He probably does have a mixture of over a 
> million ips/cidrs he wants to block.
> 
> 
> 
> 


-- 
Michael Gale
Network Administrator
Utilitran Corporation


  reply	other threads:[~2004-06-28 16:31 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-24 14:57 over a 1,000,000,000 individual ips to block Timothy Webster
2004-06-28 12:45 ` Michael Gale
2004-06-28 13:04   ` Alex Sirbu
2004-06-28 13:36     ` Feizhou
2004-06-28 13:52       ` Alex Sirbu
2004-06-28 14:14         ` Feizhou
2004-06-28 13:20   ` Feizhou
2004-06-28 16:31     ` Michael Gale [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-06-29 11:04 Timothy Webster
2004-06-29 11:43 ` Feizhou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040628103110.4acb1485@mgalepc.utilitran.com \
    --to=michael.gale@utilitran.com \
    --cc=feizhou@linuxmail.org \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.