Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Whatever
iptables block all ssh except 1 ip
SeanR
Programming language:
Whatever
2021-07-02 18:41:21
0
Q:
iptables block all ssh except 1 ip
BrainArchitect
Code:
Whatever
2021-06-21 15:52:14
iptables -A INPUT -p tcp --dport 22 -s YourIP -j ACCEPT iptables -A INPUT -p tcp --dport 22 -j DROP
0
Related
auto use ssh key for ip address
iptables block incoming port
close external port 3306 with iptables
list of created ssh port forwarding
htaccess block all referrer except my domain
how to allow only a specific ip on a docker port using ip tables
ssh list port forwards
list all foreign keys for a table postgres
enable iptables
New to Communities?
Join the community