How to set up an iptable rule?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux