Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'd like to start off saying I am a beginner with iptables. I seem to be having issues with my iptables.

I'd like to block incoming packets greater than 150 bytes. I have a copy of an exploit that attackers are using on my game servers. I see that the packet size in total is greater than 150.

My rule is as follows

-A INPUT -p udp -s 0/0 -d 0/0 --dport 27015:27016 -m length --length 151:65535 -j DROP

I made sure this was the first rule regarding the game server. However, when I go and run the exploit and view the incoming packets using wireshark, all of them are coming through or so it appears

Did I incorrectly enter this rule or is there more to it?

Thanks for your help!

share|improve this question

migrated from stackoverflow.com Sep 9 '12 at 0:01

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.