Linux防火墙关闭的方法有以下几种:使用命令关闭防火墙。
Linux防火墙关闭的方法有以下几种:
1. 使用iptables命令关闭防火墙。
代码如下:
# iptables -F
# iptables -X
# iptables -t nat -F
# iptables -t nat -X
# iptables -t mangle -F
# iptables -t mangle -X
# iptables -P INPUT ACCEPT
# iptables -P OUTPUT ACCEPT
# iptables -P FORWARD ACCEPT
2. 使用systemctl命令关闭防火墙。
代码如下:
# systemctl stop firewalld
# systemctl disable firewalld
本站系公益性非盈利分享网址,本文来自用户投稿,不代表边看边学立场,如若转载,请注明出处
评论列表(18条)