A
A
as3k2012-04-07 19:16:49
linux
as3k, 2012-04-07 19:16:49

Deny access via iptables to entire subnet

Good evening, I ran into a DDoS issue with one of my projects.

Dosyat the whole subnet, and blocking each IP range individually is too long, time is running out.

Actually the question is how to limit access to my project to an entire subnet at once using iptables?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
artamonovg, 2012-04-07
@artamonovg

iptables -I INPUT -m iprange --src-range 192.168.0.8-192.168.0.25 -j DROP

M
michaek, 2012-04-07
@michaek

I would also look towards ipset if you need to block several subnets

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question