Answers for "iptables allow ssh to one ip"

4

iptables open port

sudo iptables -A INPUT -p tcp --dport xxxx -j ACCEPT
Posted by: Guest on August-17-2020
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