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.

1 Answer 1

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.

2
  • 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. Mar 5, 2019 at 8:10
  • Yes youre right! Than this is hard scripting. Or try same article: askubuntu.com/questions/955425/… Mar 5, 2019 at 8:30

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .