How to block udp ports range in linux RHEL7 -


need test application uses udp port range 5000 60,000 in. want test boundary value condition ports. want block udp ports range 5000 59999.

using iptables:

iptables -a input -p udp --dport 5000:59999 -j drop 

or, better,

iptables -a input -p udp --dport 5000:59999 -j reject --reject-with icmp-port-unreachable 

Comments

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -