Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Leonardo Rodrigues Magalhães" <leolistas@solutti.com.br>
To: netfilter@lists.netfilter.org
Subject: Re: tarpit before or after adding chain?
Date: Sun, 18 Dec 2005 03:44:58 -0300	[thread overview]
Message-ID: <43A5056A.1090200@solutti.com.br> (raw)
In-Reply-To: <43A3D6BB.4010709@gmail.com>



>> I'm a little confused about when to add the TARPIT trap.
>>
>> iptables -N SPECIAL # add special chain for tarpit usage
>>
>> *HERE*?
>> iptables -A SPECIAL -p tcp -j TARPIT
>>
>> #
>> # the following string match rules screen out nimda and other crap
>> #
>> iptables -A INPUT -i eth0 -p tcp  --dport 80 -m string --algo bm 
>> --string "/default.ida?"     -j SPECIAL
>> iptables -A INPUT -i eth0 -p tcp  --dport 80 -m string --algo bm 
>> --string ".exe?/c+dir"       -j SPECIAL
>> iptables -A INPUT -i eth0 -p tcp  --dport 80 -m string --algo bm 
>> --string ".exe?/c+tftp"      -j SPECIAL
>> iptables -A INPUT -i eth0 -p tcp  --dport 80 -m string --algo bm 
>> --string "cmd.exe"           -j SPECIAL
>> iptables -A INPUT -i eth0 -p tcp  --dport 80 -m string --algo bm 
>> --string "vti_bin"           -j SPECIAL
>> iptables -A INPUT -i eth0 -p tcp  --dport 80 -m string --algo bm 
>> --string "nsiislog.dll"      -j SPECIAL
>> iptables -A INPUT -i eth0 -p tcp  --dport 80 -m string --algo bm 
>> --string "click-network.com" -j SPECIAL
>>
>> *OR HERE?*
>> iptables -A SPECIAL -p tcp -j TARPIT
>>


   Im looking at all these string rules and trying to imagine how your 
CPU usage will get high, as it seems you have a not-very-low traffic 
network ......  nobody with a /21 network will have low traffic, 
specially tcp/80 traffic !!!!

   I havent used string for a while now. In fact i have never used it 
since I moved to 2.6 kernel. I know it has been ported recently, but I 
have never used it yet. But I remember ... it's not that long ago ...... 
the 2.4 kernel time ....... all the headaches of CPU usage getting at 
astronomic levels because of 20-30 string rules on a busy network ..... 
i will never forget that ... :)

   Take it easy with string module, that's my advice ....

-- 


	Atenciosamente / Sincerily,
	Leonardo Rodrigues
	Solutti Tecnologia
	http://www.solutti.com.br

	Minha armadilha de SPAM, NÃO mandem email
	gertrudes@solutti.com.br
	My SPAMTRAP, do not email it






  reply	other threads:[~2005-12-18  6:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-17  6:19 tarpit before or after adding chain? Eric
2005-12-17  9:13 ` Georgi Alexandrov
2005-12-18  6:44   ` Leonardo Rodrigues Magalhães [this message]
2006-01-03  7:24   ` Jan Engelhardt
  -- strict thread matches above, loose matches on Subject: below --
2005-12-17  7:25 Gary W. Smith
2005-12-17  9:17 ` Georgi Alexandrov
2005-12-17 17:27 Gary W. Smith

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=43A5056A.1090200@solutti.com.br \
    --to=leolistas@solutti.com.br \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox