摘要: vim /etc/hosts.allowsshd:192.168.31.109:allow //只允许192.168.31.109登录vim /etc/hosts.denysshd:ALL //开启白名单,只允许192.168.31.109登录systemctl restart sshd ,重启ss 阅读全文
posted @ 2020-06-23 11:39 jiftle 阅读(3489) 评论(0) 推荐(0) 编辑
摘要: 一. 设置firewall规则 例1:对外暴露8080端口 firewall-cmd --permanent --add-port=8080/tcp 例2:使mysql服务的3306端口只允许192.168.1.1/24网段的服务器能访问 #添加规则 firewall-cmd --permanent 阅读全文
posted @ 2020-06-23 11:04 jiftle 阅读(2742) 评论(0) 推荐(0) 编辑