Some info on FirewallD to read:
Official FirewallD Documentation
Archwiki entry about FirewallD
A beginners Guide into FirewallD on RedHat
Why EndeavourOS is using FirewallD now?
After some discussion dev team come to the conclusion that it would be a good idea to enable a decent firewall per default on all installations for EndeavourOS.
Also, a more experienced user may already is used to set up firewall rules from some saved rules, the majority of users still forget to secure the system after the initial installation.
Nowadays this is nothing we can ignore anymore from the side of offering an Operating system for you.
So there you are up from now (Apollo release 2022) FirewallD will be installed for all EndeavourOS installs and the service is enabled per default.
This will give a secure basic firewall using the default public zone running.
From there users can decide to disable and install a firewall of choice or set up rules manually as they like.
It is also possible to untag FirewallD inside the installation process if you do not want it to get installed.
General Info on how to install and handle FirewallD:
How to install and enable:
Enable and start
sudo systemctl enable --now firewalld.service
You can control the firewall rules with the
firewall-cmd console utility.
firewall-offline-cmd the CLI (Terminal based) utility can be used to configure when firewalld is not running. It features similar syntax to
GUI is available as
firewall-config which comes with firewalld package.
You will find the GUI inside the menu as firewall:
The GUI can look a bit intimidating at the first look, but once you understand it has anything you need right at your fingertips.
In the end, for normal Desktop usage, you do not need to change anything, and if you want to use something like open your system for remote access via ssh a simple click on the ssh services and you open the needed port for it to work.
Other things like network connections for Qemu (VirtManager) will get enabled automatically on the run if needed.
Aside from the GUI FirewallD also enables a tray icon with some info and menu to reach settings:
If you want to remove FirewallD to install another one or use your own set of rules manually you can do that by the following steps, it is needed to stop firewall before removing it as it could block installing a new one later.
Disable temporarily (this will stop the service immediately)
sudo systemctl stop firewalld
Disable permanently (this will stop the service immediately and disable the automatic start on boots)
sudo systemctl disable --now firewalld
sudo pacman -R firewalld
Open FirewallD for network printing:
If you missed that and want to open the firewall manually for Network printing support use the firewalld-application:
switch to permanent configuration and enable ipp and ipp-client and mdns Services.
This will be permanent over reboots.
Open firewalld for kdeconnect:
The easy way is using the terminal and the firewalld-cmd commandline tool:
sudo firewall-cmd --permanent --zone=public --add-service=kdeconnect
sudo firewall-cmd --reload
This will permanently open the firewall for the kdeconnect service to allow to connect to mobile device and receive messages on the desktop.Connect with us: