mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-08 22:31:04 +00:00
etc: Added ufw firewall application preset
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3703
This commit is contained in:
parent
c08fe4e2c5
commit
e408f1061a
1
build.go
1
build.go
@ -95,6 +95,7 @@ var targets = map[string]target{
|
|||||||
{src: "etc/linux-systemd/system/syncthing@.service", dst: "deb/lib/systemd/system/syncthing@.service", perm: 0644},
|
{src: "etc/linux-systemd/system/syncthing@.service", dst: "deb/lib/systemd/system/syncthing@.service", perm: 0644},
|
||||||
{src: "etc/linux-systemd/system/syncthing-resume.service", dst: "deb/lib/systemd/system/syncthing-resume.service", perm: 0644},
|
{src: "etc/linux-systemd/system/syncthing-resume.service", dst: "deb/lib/systemd/system/syncthing-resume.service", perm: 0644},
|
||||||
{src: "etc/linux-systemd/user/syncthing.service", dst: "deb/usr/lib/systemd/user/syncthing.service", perm: 0644},
|
{src: "etc/linux-systemd/user/syncthing.service", dst: "deb/usr/lib/systemd/user/syncthing.service", perm: 0644},
|
||||||
|
{src: "etc/firewall-ufw/syncthing", dst: "deb/etc/ufw/applications.d/syncthing", perm: 0644},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"stdiscosrv": {
|
"stdiscosrv": {
|
||||||
|
22
etc/firewall-ufw/README.md
Normal file
22
etc/firewall-ufw/README.md
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
Uncomplicated FireWall application preset
|
||||||
|
===================
|
||||||
|
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).
|
||||||
|
|
||||||
|
In a terminal run
|
||||||
|
```
|
||||||
|
sudo ufw app update syncthing
|
||||||
|
```
|
||||||
|
to load the preset.
|
||||||
|
To allow the syncthing ports, run
|
||||||
|
```
|
||||||
|
sudo ufw allow syncthing
|
||||||
|
```
|
||||||
|
You can then verify the opened ports
|
||||||
|
```
|
||||||
|
sudo ufw status verbose
|
||||||
|
```
|
||||||
|
|
4
etc/firewall-ufw/syncthing
Normal file
4
etc/firewall-ufw/syncthing
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[syncthing]
|
||||||
|
title=Syncthing
|
||||||
|
description=Syncthing file synchronisation
|
||||||
|
ports=22000/tcp|21027/udp
|
Loading…
Reference in New Issue
Block a user