Put these in /etc/ufw/applications.d and use them like this:
sudo ufw allow from 192.168.1.0/24 to any app lms
sudo ufw allow from 192.168.1.0/24 to any app barrier- What ports does Synergy use? - symless.com
- Which ports must be open on the server to use Logitech Media Server (LMS) for Squeezebox? - superuser.com