From 7157917a1638a3ced9ec0c2feb3fbf95800a901a Mon Sep 17 00:00:00 2001 From: Stefan Kuntz Date: Thu, 1 Dec 2016 12:36:15 +0000 Subject: [PATCH] etc: Updated ufw firewall application preset with default GUI port GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3774 --- etc/firewall-ufw/README.md | 17 +++++++++++++---- etc/firewall-ufw/syncthing | 5 +++++ 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/etc/firewall-ufw/README.md b/etc/firewall-ufw/README.md index 875eb1a7c..3ac657c8c 100644 --- a/etc/firewall-ufw/README.md +++ b/etc/firewall-ufw/README.md @@ -4,19 +4,28 @@ Installation ----------- **Please note:** When you installed syncthing using the official deb package, you can skip the copying. -Copy the file `syncthing` to your ufw applications directory usually located at `/etc/ufw/applications.d/`. (root permissions required). +Copy the file `syncthing` to your ufw applications directory usually located at `/etc/ufw/applications.d/` (root permissions required). In a terminal run ``` sudo ufw app update syncthing +sudo ufw app update syncthing-gui ``` -to load the preset. +to load the presets. To allow the syncthing ports, run ``` sudo ufw allow syncthing ``` -You can then verify the opened ports +If you want to access the web gui from anywhere (not only from localhost), you can also allow the gui port. +This is step is **not** necessary for a "normal" installation! +``` +sudo ufw allow syncthing-gui +``` + + +Verification +---------- +You can verify the opened ports by running ``` sudo ufw status verbose ``` - diff --git a/etc/firewall-ufw/syncthing b/etc/firewall-ufw/syncthing index 1aeada11f..0e1d61c35 100644 --- a/etc/firewall-ufw/syncthing +++ b/etc/firewall-ufw/syncthing @@ -2,3 +2,8 @@ title=Syncthing description=Syncthing file synchronisation ports=22000/tcp|21027/udp + +[syncthing-gui] +title=Syncthing-GUI +description=Syncthing web gui +ports=8384/tcp