anyone knows if is possible to use only one rule to drop any UDP packet that contain a fixed characters followed by any number between 13 and 90. I tried string, hex-string, had a look at u32 but the offset inside the packet can be anything between 150-300...my understanding is that I can't do it if I don't have a specific one. No luck on setting numbers. At one point I just wanted to drop anything that contains two digits or two characters after that sequence.
iptables -I FORWARD -p udp --dport 3388:3389 -m string --string 'ichannel":-[1-8][0-9]' --algo bm -j DROP
This rule won't match anything. ichannel":- is the fixed text followed by 1, 2 or 3 numbers.
Any help is greatly appreciated. Thank you!