ddos / no connection tracking / tarpitting
kadlec at blackhole.kfki.hu
Fri Apr 22 08:50:02 CEST 2005
On Fri, 22 Apr 2005, Taylor Grant wrote:
> > So my question is, is this the basic element of building a good
> > anti-ddos solution wtih iptables to address a *large* volume of ddos
> > traffic to build iptables w/o connection tracking?
> Yes this is possible and (I think) fairly easy to do. As I have never done this I can not tell you for sure, but this is what I would do if I were to do such a thing.
> I will presume that you are wanting to drop all traffic to a specif port on an IP address for the sake of this discussion.
> iptables -t raw -A PREROUTING -d 188.8.131.52 -p tcp --dport 5678 -j NOTRACK
> iptables -t filter -A FORWARD -d 184.108.40.206 -p tcp --dport 5678 -j TARPIT
> This will cause any traffic that comes in that is distend to 220.127.116.11 on port 5678 to NOT be tracked with the connecting tracking sub system and to subsequently be redirected to the TARPIT target.
You *must* use the rule
iptables -t raw -A PREROUTING -s 18.104.22.168 -p tcp --sport 5678 -j NOTRACK
as well, otherwise conntrack will pick up the reply packets from the
E-mail : kadlec at blackhole.kfki.hu, kadlec at sunserv.kfki.hu
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
More information about the netfilter