Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
iptables 1.2.7a TARPIT target problems
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
elfarto
n00b
n00b


Joined: 27 Feb 2003
Posts: 26
Location: Argentina

PostPosted: Wed Mar 12, 2003 5:06 am    Post subject: iptables 1.2.7a TARPIT target problems Reply with quote

Suppose you want to use the TARPIT target for iptables, to stop or at least slow down 31337 scoundrels DOSing your box.

You set a rule eading like:
iptables -A INPUT -p udp -s 0/0 -d $NET --dport 53 -m limit --limit 5/second -j TARPIT
and you get a nice error from iptables:
iptables v1.2.7a: Couldn't load target `TARPIT':/lib/iptables/libipt_TARPIT.so: cannot open shared object file: No such file or directory

The file obviously doens't exist and i've found no trace of it for ipt 1.2.7a (but i goolgled and i got a patch for iptables 1.2.6) so somehow the tarpit in not functional in this version of iptables, anyone can point me to a valid patch/procedure/whatever to make TARPIT functional ??

Thanks a lot
Back to top
View user's profile Send private message
mglauche
Retired Dev
Retired Dev


Joined: 25 Apr 2002
Posts: 564
Location: Germany

PostPosted: Wed Mar 12, 2003 8:12 am    Post subject: Reply with quote

I think the destinations for iptables are in the kernel. So check your kernel config if it has the TARPIT target, if its not there, its possible that u need to run the patch-o-matic from the netfilter team to bring your kenrnel modules up to date :)
Back to top
View user's profile Send private message
elfarto
n00b
n00b


Joined: 27 Feb 2003
Posts: 26
Location: Argentina

PostPosted: Wed Mar 12, 2003 9:31 pm    Post subject: Reply with quote

It happens that you need a later CVS version of iptables, of the shelf 1.2.7a doesn't include the user mode library ipt_TARPIT.so , you either fetch the whole package or just grab ipt_TARPIT.c and Makefile from the extensions dir on the CVS tree.
Back to top
View user's profile Send private message
Cheesefoam
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jan 2003
Posts: 89

PostPosted: Fri May 16, 2003 2:21 am    Post subject: Reply with quote

Tarpit, AFAIK, only works with TCP connections, not UDP.

Also, if you emerge the ~x86 portage version of iptables, it now supports tarpit targets.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum