Firewall-cmd: command not found

i have found the firewall tutorial page, using the iptables first and it works, but when i do the commands for firewallD, then have a error with every rule:

-bash: firewall-cmd: command not found

Do i need install (or only enable?) firewalld or maybe i dont need this rules and using the iptables rules only is enough?

This is the case. When you install Pi-Hole, it will properly configure itself to work.

yeah, but i have openvpn and opened 1194 port in my router. I found this page to make things more secure:

But the rules on that vpn/firewall page wasn't enough (pihole doesn't work anymore), then i found this page and it makes things mutch better again: Redirecting...

But ok, maybe i dont need the firewall-cmd rules anymore. :slight_smile:

Hmm, i think that i need firewalld, when i reboot the pi then the iptables is removed.

Do i need only this:
sudo apt-get install firewalld

and after that this commands:
firewall-cmd --permanent --add-service=http --add-service=dns --add-service=dhcp --add-service=dhcpv6
firewall-cmd --permanent --new-zone=ftl
firewall-cmd --permanent --zone=ftl --add-interface=lo
firewall-cmd --permanent --zone=ftl --add-port=4711/tcp
firewall-cmd --reload

Or do i need more to do?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.