Debian Linux "buster" 10 stop firewall command

I am a little bit of a newbie to Debian world. Tried ufw and it said command not found. How can I stop firewall on Debian buster 10 Linux server?

UFW is not the only way. Do you have files in /etc/? You see on Debian Linux we install iptables-persistent via apt-get install command. Firewall rules are stored or edited in the following files

  1. IPv4 - /etc/iptables/rules.v4
  2. IPv6 - /etc/iptables/rules.v6

For such set up we have a service named netfilter-persistent. Hence, we use

sudo systemctl enable netfilter-persistent
sudo systemctl start netfilter-persistent
sudo systemctl restart netfilter-persistent
## THIS IS WHAT YOU NEED TO STOP the FIREWALL on DEBIAN Linux 10 ##
sudo systemctl stop netfilter-persistent

I hope this helps out.

1 Like

Linux sysadmin blog - Linux/Unix Howtos and Tutorials - Linux bash shell scripting wiki