debian关闭防火墙打开所有端口
安装防火墙
apt-get install ufw
关闭防火墙
ufw disable
开放所有端口
sudo ufw allow from any to any port 1:65535 proto tcp
sudo ufw allow from any to any port 1:65535 proto udp
(附)或者使用iptables命令也可以关闭debian防火墙
sudo iptables -F
sudo iptables -X
sudo iptables -P INPUT ACCEPT
sudo iptables -P FORWARD ACCEPT
sudo iptables -P OUTPUT ACCEPT
评论区(暂无评论)