over a 1,000,000,000 individual ips to block
Hi,
1 million (ips and subnets) we are looking is actually the top 1 million spammers and open relays used. This list is automatically generated and currently stored in cdb files.
Limited maximum connections and a simple accept established help, but we need more. Currently looking into modify the set patch to handle this large number.
If not iptables then openbsd pf.
We do get up to 100 smtp connections from a simple ip during peak times.
Quoted 1 line
If you allow a simple IP to make a 100 smtp connections to your
mail server
Quoted 1 line
then you have other problems. Why you would allow any IP to make more
then 10-15
Quoted 1 line
connections is beyond me. Also .. if you set a error limit (example
mine is 5)
Quoted 3 lines
when that limit is reached the smtp and tcp connection are dropped.
I am not saying that you should not block abusive IP's or network's at
the
Quoted 2 lines
Also what about ESTABLISHED connections ??? If you do not use a
ESTABLISHED
Quoted 1 line
state -j ACCEPT at the top ... then each IP would then in theory have
to match 1
Quoted 3 lines
million rules every time it came in.
I am sure there is a better answer then to create 1 million iptable
rules.
Quoted 15 lines
Michael.
Quoted 8 lines · On Mon, 28 Jun 2004 21:20:16 +0800 Feizhou <[email protected]> wrote:
Quoted 5 lines · Michael Gale
Hello,
Why don't you block networks ??
Firewall - SYN Cookie enabling ?
What good is syn cookies against traffic that conform to tcp rules
but
Quoted 3 lines
Quoted 3 lines
are just too abusive?
Quoted 2 lines
Mail servers - use RBL list - this list will contain networks of
IP's that
Quoted 1 line
Quoted 1 line
Quoted 1 line
belong to home users. So they do not need to connect directly to
your mail
Quoted 5 lines
Quoted 5 lines
Quoted 1 line
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
Quoted 5 lines
Quoted 5 lines
is nothing but a firewall that will keep them off your MXs.
Quoted 4 lines
Web servers -- rate limiting ? block networks ? Better web server ?
If you blocked networks ? The estimated max number of rules a
packet might
Quoted 1 line
Quoted 1 line
Quoted 1 line
have to match would be 254 ... plus the rest of your filtering for
ports and
Quoted 1 line
Quoted 1 line
Quoted 1 line
other needs. This could slow down network access because of all the
rules to
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
check for each packet.
If you are not using network addresses the list would become to
long.
Quoted 15 lines
Quoted 8 lines
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.
Signature · 3 lines
Michael Gale Network Administrator Utilitran Corporation
Quoted 3 lines
Limited maximum connections and a simple accept established help, but we need more. Currently looking into modify the set patch to handle this large number. If not iptables then openbsd pf.
that's why you are looking into ipset....i asked a similar question a while ago...need to check to see if there is a 2.6.x version out now.
Quoted 9 lines
We do get up to 100 smtp connections from a simple ip during peak times.
Quoted 1 line
If you allow a simple IP to make a 100 smtp connections to your
mail server
Quoted 9 lines
Quoted 1 line
then you have other problems. Why you would allow any IP to make more
then 10-15
Quoted 1 line
connections is beyond me. Also .. if you set a error limit (example
mine is 5)
Quoted 1 line
when that limit is reached the smtp and tcp connection are dropped.
postfix does not have per ip connection limiting and this goes for sendmail (if you've got a ruleset for that please post) and for tcpserver (qmail-smtpd)
Quoted 15 lines
Quoted 4 lines
I am not saying that you should not block abusive IP's or network's at
the
Quoted 2 lines
Also what about ESTABLISHED connections ??? If you do not use a
ESTABLISHED
Quoted 1 line
state -j ACCEPT at the top ... then each IP would then in theory have
Quoted 8 lines
to match 1
Quoted 3 lines
million rules every time it came in.
I am sure there is a better answer then to create 1 million iptable
rules.
Which is why Timothy is asking about ipset/ippool functionality.