1.要求:限制my133.t.org(172.168.1.0/24)这个攻击域的主机访。
2.操作:vim /etc/host.deny 忘记可^tab ,在最末尾添加行:sshd: 172.168.1.0/255.255.255.0 <===此处255.255.255.0,不能用24代替。
3.保存退出即可。
1.要求:限制my133.t.org(172.168.1.0/24)这个攻击域的主机访。
2.操作:vim /etc/host.deny 忘记可^tab ,在最末尾添加行:sshd: 172.168.1.0/255.255.255.0 <===此处255.255.255.0,不能用24代替。
3.保存退出即可。
转载于:https://www.cnblogs.com/qiuyang-linux/p/5420973.html