Jump to content
aelius

SSH restriction

Recommended Posts

Posted

Sau, mai pe intelesul tuturor, cea mai buna si simpla varianta de a proteja serviciul ssh este folosirea listelor de acces (acl). Exemplu


iptables -A INPUT -p tcp -s 217.156.101.10 --dport 22 -j ACCEPT # ip-ul de la serviciu
iptables -A INPUT -p tcp -s 82.223.12.64 --dport 22 -j ACCEPT # ip-ul lu soacra-mea
iptables -A INPUT -p tcp -s 82.77.65.12 --dport 22 -j ACCEPT # ip-ul meu de acasa
iptables -A INPUT -p tcp --dport 22 -j REJECT --reject-with tcp-reset # Restul, get lost.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...