Debian系统默认使用iptables作为防火墙,如果要关闭防火墙可以使用以下命令:
- 停止iptables服务:
sudo systemctl stop iptables
- 禁止iptables服务随系统启动:
sudo systemctl disable iptables
- 如果您使用的是UFW防火墙,则应使用以下命令:
sudo systemctl stop ufw
sudo systemctl disable ufw
请注意,关闭防火墙意味着您的系统将成为安全攻击的潜在目标。因此,我们建议您在停用防火墙之前确保网络的安全性。