Windows10
菜单栏右下角选择网络图标左/右键,打开“网络和Internet”设置>>>>>Windows防火墙>>>>>选择启停。
Ubuntu
查看防火墙状态: (root)ufw status
关闭防火墙:(root)ufw disable
启用防护墙:(root)ufw enable
centos 6
查看防火墙状态: (root)service iptables status
关闭防火墙:(root)chkconfig iptables off
启用防护墙:(root)chkconfig iptables on
centos 7
查看防火墙状态: (root)firewall-cmd --state
关闭防火墙:(root)systemctl stop firewalld.service
启用防护墙:(root)systemctl startfirewalld.service