Answers for "iptables block all ssh except 1 ip"

0

iptables block all ssh except 1 ip

iptables -A INPUT -p tcp --dport 22 -s YourIP -j ACCEPT
iptables -A INPUT -p tcp --dport 22 -j DROP
Posted by: Guest on January-02-2020

Browse Popular Code Answers by Language