Skip to contentSkip to conversation

raw/NOTRACK + TARPIT = good idea?

DISCUSSION Juan Carlos Castro y Castro 4 participants 4 messages Nov 21, 2003 – Dec 2, 2003 netfilter

lore
Share & tools
lore
#0 lore raw

I'm thinking about the TARPIT target, and that it's a shame it will use resources if my box does conntrack. But if I previously pass them through -t raw -j NOTRACK, can I have the best of both worlds, i.e., a routing NAT box who is able to tarpit undesired packets itself?

#1 lore raw
Quoted 4 lines · Juan Carlos Castro y Castro

I'm thinking about the TARPIT target, and that it's a shame it will use resources if my box does conntrack. But if I previously pass them through -t raw -j NOTRACK, can I have the best of both worlds, i.e., a routing NAT box who is able to tarpit undesired packets itself?

Yes, but you have to take care both directions for the tarpitted sessions. That's the price using the NOTRACK target.

Best regards,
Jozsef
-
E-mail : [email protected], [email protected] PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address : KFKI Research Institute for Particle and Nuclear Physics

          H-1525 Budapest 114, POB. 49, Hungary
#2 lore raw

I would like to do this also but I don't quite understand what you mean with "take care both directions for the tarpitted sessions".

I'm a bit confused there, could you explain? :)

Wkr, Robby

Quoted 17 lines

----------------------------------------
From: Jozsef Kadlecsik <[email protected]>
Sent: Mon Nov 24 09:11:17 CET 2003
To: Juan Carlos Castro y Castro <[email protected]>
Subject: Re: raw/NOTRACK + TARPIT = good idea?

Quoted 4 lines · Juan Carlos Castro y Castro

I'm thinking about the TARPIT target, and that it's a shame it will use resources if my box does conntrack. But if I previously pass them through -t raw -j NOTRACK, can I have the best of both worlds, i.e., a routing NAT box who is able to tarpit undesired packets itself?

Yes, but you have to take care both directions for the tarpitted sessions. That's the price using the NOTRACK target.

Quoted 10 lines

Best regards,
Jozsef
-
E-mail : [email protected], [email protected] PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address : KFKI Research Institute for Particle and Nuclear Physics

          H-1525 Budapest 114, POB. 49, Hungary

-----------------------------------------------------
Mail.be, WebMail and Virtual Office
http://www.mail.be

#3 lore raw
Quoted 2 lines · On Tue, 2 Dec 2003, IP v6 wrote:

I would like to do this also but I don't quite understand what you mean with "take care both directions for the tarpitted sessions".

What I think Harald is saying is that you need to NOTRACK packets in both directions of the TARPIT:ed sessions. If not conntrack might pick up the session on the first faked reply packet sent by TARPIT.

But then this does not seem to be the case. It seems TARPIT sends the reply packets directly to the network interface bypassing the netfilter hooks, so this does not seem to be needed.

Regards
Henrik