[Solution] Update firewall policy 1) Disabled docker rules of iptables --- docker will create rules of iptables automatically. # vim /etc/docker/daemon.json 1) Add masquerade to public zone # firewall-cmd --permanent --zone=public --add-ma
service iptables status 查看防火墙状态 service iptables start 开启防火墙 service iptables stop 关闭防火墙 service iptables restart 重启防火墙 防火墙开放特定端口 文件/etc/sysconfig/iptables 添加端口 重启防火墙 禁止某个IP访问 iptables -A INPUT -p tcp -s 192.
参考博文: iptables防火墙只允许指定ip连接指定端口.访问指定网站 一.配置防火墙 打开配置文件 [root@localhost ~]# vi /etc/sysconfig/iptables 正确的配置文件 # Firewall configuration written by system-config-firewall # Manual customization of this file is not recommended. *filter :INPUT ACCEPT [:] :