在 Debian 系统中,服务器一般是通过iptables或者ufw来管理防火墙,具体关闭防火墙的方法取决于服务器安装的是哪种防火墙。

通过ufw关闭防火墙,在SSH中输入以下命令执行:

sudo ufw disable


如果服务器安装的是iptables防火墙,则通过以下命令停止防火墙服务。

sudo systemctl disable iptables


最后可以通过重启服务器来验证防火墙是否关闭成功。