Firewall Configuration for KDE Connect
To ensure KDE Connect works properly, you need to allow specific ports on your firewall. Below are the steps to configure your firewall using either UFW (Uncomplicated Firewall) or Firewalld.
Using UFW
Allowing TCP Ports
To allow the necessary TCP ports, run the following command:
sudo ufw allow 1714:1764/tcp
Allowing UDP Ports
Next, allow the required UDP ports with the following command:
sudo ufw allow 1714:1764/udp
Reload UFW
To apply the changes, reload the UFW settings:
sudo ufw reload
Alternative: Using Firewalld
If you prefer using Firewalld, follow these steps:
Allowing TCP Ports
To allow the required TCP ports, use the following command:
sudo firewall-cmd --zone=public --add-port=1714-1764/tcp --permanent
Allowing UDP Ports
Similarly, to allow the necessary UDP ports, run:
sudo firewall-cmd --zone=public --add-port=1714-1764/udp --permanent
Reload Firewalld
Finally, reload Firewalld to apply the changes:
sudo firewall-cmd --reload
By following these steps, you should be able to configure your firewall to work seamlessly with KDE Connect.