Ufw

Ufw stands for uncomplicated firewall, and is just that. It uses logs such as those obtained by syslog-ng for monitoring, and uses iptables as a back end. Ufw supports both ip v4 & ip v6.

Kernel
The following kernel configuration must be made before ufw will work.

IP version 6 is not required, however it is highly recommended.

Service
To allow ssh by default:

OpenRC
To start ufw at boot:

To start ufw immediately:

systemd
To start ufw at boot:

To start ufw immediately:

Configuration
To create a simple configuration, run:

To get a list of possible applications to add, run:

Then replace  with the name of the desired application. For example, to allow incoming Deluge traffic:

Next run

The last step is only required only the first time you install the package.

After changes to the rules, restart the firewall:

Specific scenarios and applications follow:

KDE Connect
To allow KDE Connect to work on the local network, ports 1714 through 1764 have to be opened for both UDP and TCP.

External Resources

 * https://wiki.archlinux.org/index.php/Uncomplicated_Firewall