异常500,程序异常,Exception
当前位置:Exception500 » 防火墙 » 阿里云CentOS7服务器/etc/hosts.allow限制访问IP

阿里云CentOS7服务器/etc/hosts.allow限制访问IP

来源:exception500.com    发布时间:2020-06-29 12-28-33    浏览次数:1360次

阿里云CentOS7服务器/etc/hosts.allow限制访问IP

1、编辑配置文件

vi /etc/hosts.allow


2、添加IP限制

sshd:172.18.*.*:allow

sshd:all:deny


3、重启SSH

/bin/systemctl restart sshd.service



[关键词: CentOS7hostssshdsystemctl ]

软件开发 程序错误 异常 500错误 Exception Copyright© 2019-2021  Exception500 版权所有  【蜀ICP备15020376号-9】  网站地图