How to reset firewall to defaults?

I was trying an apt update but the server was unable to resolve any DNS entry.
So I did a “v-stop-firewall” and it all works again.

I am not sure what happened…but I wonder…
How can I reset the firewall to its installation defaults?

I am using Ubuntu 20.04 LTS

Thanks in advance

v-update-firewall

1 Like

Thanks @Lupu . I saw that post and I did that already. Nothing changed.
Is there a way to reinstall the firewall and the default rules?
thanks

Does anyone have a clue for me on this?
Thanks again!

Delete /usr/local/hestia/data/firewall/rules.conf and replace it with hestiacp/rules.conf at main · hestiacp/hestiacp · GitHub

Thanks @eris , but the contents of those files are identical in my system.

Do you have any ipset blocklist enabled?

Does your dns server ip show up when you list iptables rules?

iptables -n -L

1 Like

to add to that, you can grep for your dns-servers or parts of that IP via

ipset -L |grep 1.2.3.4

to verify you’re not blocking yourself (or the nameservers/subnets they are in).

Check /etc/bind/named.conf.local
Try enabling allow-transfer with your secondary dns