系統環境: Linux-centOS+ubuntu 操作: 編輯允許通過IP 路徑:vim /etc/hosts.allow 編輯禁止通過IP 路徑:vim /etc/hosts.deny 重啟網路服務 以上。 IP限制往往搭配代理伺服器混合使用,目的是比安全更安全! 代理伺服器相關搭建及配置【點擊 ...
系統環境:
Linux-centOS+ubuntu
操作:
編輯允許通過IP
路徑:vim /etc/hosts.allow
sshd:192.168.1.1
編輯禁止通過IP
路徑:vim /etc/hosts.deny
sshd:all
重啟網路服務
/etc/rc.d/init.d/network restart
或者
service network restart
以上。
IP限制往往搭配代理伺服器混合使用,目的是比安全更安全!
代理伺服器相關搭建及配置【點擊進入】