sampsonf
(Sampson Fung)
1
Continuing the discussion from How to reset firewalld rules to Fedora default?:
Backup then remove of /etc/firewalld folder then doing a dnf reinstall firewalld will get the default configuration files under Fedora Workstation.
But how to have the same for Silverblue?
3 Likes
vgaetera
(Vladislav Grigoryev)
2
I’m also curious how to do it properly in Silverblue:
- Reinstall a single RPM package.
- Restore the package default configs in writable locations such as /etc and /var.
- Reapply the package RPM scripts.
Hopefully this shouldn’t be too difficult to achieve.
2 Likes
alciregi
(Alessio)
3
You can get a list of modified files (compared to the defaults coming with the OS)
sudo ostree admin config-diff |grep firewalld
So, you can rename (or delete if you are confident with that) the firewalld directory
mv /etc/firewalld /etc/firewalld.bk
Finally, copy the default configuration to /etc
sudo cp -aT /usr/etc/firewalld /etc/firewalld
5 Likes
system
(system)
Closed
4
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.