So I have been having a problem since Saturday. I originally thought that I was being attacked, but it seems that it is due to updates.
I have been able to reinstall and get the system going, but after a few minutes or hours, the system breaks.
Sometimes SSH fails and then fail2ban fails. Sometimes I just am no longer able to load a website.
I am able to ping through the firewall and DNS resolves the ip address but no packets are returned.
I have reinstalled several times this week, updates seem to break SSH. Not updating leads to just simply loosing the ability of anything inside of the firewall connecting to the internet.
I tried testing, but it immediately stopped traffic from the inside.
So I have been struggling here and not getting it to work.
8:19 AM Failed to start firewalld.service - firewalld - dynamic firewall daemon.
8:19 AM firewalld.service: Failed with result âexit-codeâ.
8:19 AM firewalld.service: Main process exited, code=exited, status=1/FAILURE
8:19 AM Starting firewalld.service - firewalld - dynamic firewall daemonâŚ
I have reinstalled several times. If I update the system, then this starts happening and goes on for a while, then I have no internet access from inside.
If I disable firewall, then I have access.
My computer is acting as a router with 2 network cards. I have seen some talk of microcode in the kernal being an issue.
Any suggestions?
Several of us have had problems with firewalld. Apparently, the configuration file for the service has a line that sets the firewall zone to âpublicâ and should be âexternalâ.
SSH into your box and manually edit /etc/firewalld/firewalld.conf. Change the line:
from: DefaultZone=public
to: DefaultZone=external
Donât want to state the obvious, but just to cover all bases, did you restart the firewalld service after saving your changes? If you havenât, you can do it with this command: sudo systemctl restart firewalld . Hope that helps!
Actually, just setting forward on the internal zone is not sufficient, thereâs also a need to create a policy that allows the forwarding between zones:
// Enable masquerade on external (this should already be the case if the setup worked on F34); âforwardâ does not need to be set
firewall-cmd --permanent --zone=external --add-masquerade
// Enable forward on internal (this is a new setting)
firewall-cmd --permanent --zone=internal --add-forward