0

Is it possible to block packets of the same size consecutively? Example: A 32 size packet is received, not receiving more size 32 packets until another size pack is received.

How could he do it? I was thinking about the recent module but I'm not sure how the rule would be.

0

I never tied or used this kind of request trough network, but you can try:

iptables -A INPUT -p udp --dport 53 --match length --length 32 -j DROP

Please update us on result. Hope it helps.

  • That would only (and always) block size 32 packets. OP only wants to block them until a size != 32 is received, say a size 27 packet, then block size 27 until a size != 27 comes in, then switch to blocking that size, etc. – Dave Sherohman Mar 5 at 8:10
  • Yes youre right! Than this is hard scripting. Or try same article: askubuntu.com/questions/955425/… – Tiborcz Kiss Mar 5 at 8:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.