Enable UFW

To turn on UFW,

sudo ufw allow 22
sudo ufw enable
sudo ufw status
sudo systemctl enable ufw
sudo systemctl start ufw

Specific Services

SSH

sudo ufw allow 22

Samba

sudo ufw allow Samba

syncthing

sudo ufw allow syncthing
sudo ufw allow syncthing-gui

dnsmasq and dhclient

for enabling wifi bridging in ubuntu

sudo ufw allow to any port 53
sudo ufw allow to any port 67 proto udp
sudo ufw allow to any port 68 proto udp

https://askubuntu.com/questions/580433/how-can-i-allow-ap-hotspot-in-ufw-ubuntu-14-04

Wireguard

sudo ufw allow 51820/udp

Unknown / Unused

sudo ufw allow 1701/tcp
sudo ufw allow 9901/tcp
sudo ufw allow 50000