Hello,
I would like to have a rule to reject an out-of-range IP's to access a specified port on my system, so I did the following rule:
"iptables -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -m iprange ! --src-range 200.252.X.X-200.252.X.Y -j REJECT --reject-with icmp-host-prohibited", where X and Y are appropiate numbers.
Does the above rule correct, please?
TIA, Vinicius.