sudo ufw allow proto tcp to 0.0.0.0/0 port 22 comment "sshd listen port" sudo ufw allow proto tcp to 0.0.0.0/0 port 80 comment "for http server" sudo ufw allow proto tcp to 0.0.0.0/0 port 5900 comment "vnc server listen port" sudo ufw allow proto tcp to 0.0.0.0/0 port 8000 comment "for python -m http.server 8000"
sudo ufw allow from 192.168.1.1/24 to any port 5353 comment "shairport-sync" sudo ufw allow proto tcp from 192.168.1.1/24 to any port 3689 comment "shairport-sync" sudo ufw allow proto tcp from 192.168.1.1/24 to any port 5000:5005 comment "shairport-sync" sudo ufw allow proto udp from 192.168.1.1/24 to any port 6000:6005 comment "shairport-sync" sudo ufw allow proto udp from 192.168.1.1/24 to any port 35000:65535 comment "shairport-sync"
alsa = { output_device = "hw:2"; // the name of the alsa output device. Use "shairport-sync -h" to discover the names of ALSA hardware devices. "alsamixer" or "aplay" to find out the names of devices, mixers, etc. mixer_control_name = "PCM"; // the name of the mixer to use to adjust output volume. If not specified, volume in adjusted in software. ... }
sudo ufw allow proto udp from 192.168.1.1/24 to any port 137 comment "samba" sudo ufw allow proto udp from 192.168.1.1/24 to any port 138 comment "samba" sudo ufw allow proto tcp from 192.168.1.1/24 to any port 139 comment "samba" sudo ufw allow proto tcp from 192.168.1.1/24 to any port 445 comment "samba"