I want to search a rule, iptables
, within a string that has a port blocked—and I want to show that port.
For example, the rule iptables -A OUTPUT -p tcp --dport 8080 -j DROP;
I'd like to be able to search by strpos
the string tcp --dport 8080 -j DROP
but with a range of numbers 1-65335 instead of 8080
.
Please excuse my poor English.