firewalld.md: add a couple of services and ports

This commit is contained in:
Aminda Suomalainen 2023-09-09 11:53:01 +03:00
parent 97c4fcdae5
commit eb727f4148
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q

View File

@ -40,16 +40,25 @@ could imagine using is `public`.
## Services ## Services
```bash ```bash
sudo firewall-cmd --add-service=ssh --permanent
sudo firewall-cmd --add-service=mosh --permanent sudo firewall-cmd --add-service=mosh --permanent
sudo firewall-cmd --add-service=ntp --permanent
sudo firewall-cmd --add-service=syncthing --permanent
``` ```
- I trust Chrony (ntp) to not allow it to be used from outside of LAN
as `firewalld` is apparently not designed with limiting source
addresses in mind.
- `syncthing` is the client, not to be confused with `syncthing-gui`
or `syncthing-relay`.
## Ports ## Ports
```bash ```bash
# TODO: Don't do this, this is a ppor example. sudo firewall-cmd --permanent --add-port=9001/udp
# firewalld surely recognises 631 as a service of some name, sudo firewall-cmd --permanent --add-port=6771/udp
# and as noted before, --zone won't work on my systems.
sudo firewall-cmd --zone=home --permanent --add-port=631/tcp
``` ```
- 631/tcp is used by cups. - `9001/udp` is Yggdrasil automatic peering, although link-local and
unlikely to be recognised by predefined rules.
- `6771/udp` is [Bittorrent Local Peer Discovery](http://bittorrent.org/beps/bep_0014.html)