linux 防火墙selinux ,firewalld, iptables
selinux:
状态查看 sestatus
关闭 vi /etc/selinux/config 修改为 selinux=disabled
firewalld:
状态查看 systemctl status firewalld
临时关闭开机后重启: systemctl stop firewalld
永久关闭 systemctl disable firewalld
iptables:
状态查看 iptables -L -n
添加拒绝访问 iptables -I INPUT -s 192.168.0.34 -j DROP
清除规则 iptables -F
保存 service iptables save
注意 service 需要配置yum仓库
[Power By XIAOWU]