Jump to content

iptables help

Mornincupofhate

I'm looking to drop a string using this:

 

iptables -A INPUT -p udp --dport 65565 -m string --hex-string "|ffffffff55|" --algo bm -m limit --limit 50/s -j ACCEPT

 

the contents of a string is: FF FF FF FF 54

 

Would I add the spaces in between the FF's into the iptables command? Or would this work as of right now?

Link to comment
Share on other sites

Link to post
Share on other sites

Since it is in the quotes you should be good. Might as well try it either way. If anything happens, delete the rule or reboot.

My native language is C++

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×