Iptables: port 22 open only for my IP

Khan gmane at cis.u7.da.ru
Wed Jun 23 09:16:00 UTC 2004


What will be the best way to put one more Ip adrress to:

# Accept local (192.168.5.0/24) SSH traffic
$IPT -A INPUT -m state -p tcp --dport 22 ! --state INVALID -s 
192.168.5.0/24 -j ACCEPT
$IPT -A OUTPUT -m state -p tcp --sport 22 --state ESTABLISHED,RELATED -d 
192.168.5.0/24 -j ACCEPT

TNX





More information about the redhat-list mailing list