How do I configure iptables so that only UDP packets that contain a specific string are allowed as an INPUT?

For example, I would like only UDP packets that contain the string version to be allowed.

  • normally, you go read man iptables then you say "whoa!" and do the things – poige Apr 28 '17 at 5:44

You can use a iptables extension for doing this.

Here is a link where you can read about string matching with iptables from the web

You can of course doing what you expect with this technique. Good reading !

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.