To illustrate how easy it can be to configure ufw firewall, here is a simple script for Skype and the links to the needed documentation.
… and a simple script illustrating it.
#! /bin/zsh
# created: 22-0928
# modified: 22-0928
echo ufw firewall configuration
echo --------------------------
echo .
echo see: https://wiki.manjaro.org/index.php/Firewalls
echo see: https://manpages.ubuntu.com/manpages/jammy/en/man8/ufw.8.html
echo .
echo to check if ufw is intalled
echo sudo ufw status
echo .
echo to innstall ufw on a Manjaro system
echo pamac install ufw
echo .
echo once ufw is intalled, restart and enable it
echo sudo ufw enable
echo sudo systemctl enable ufw.service
echo .
read -s -k $'?Press any key to continue or Ctl-C to stop.\n'
echo .
#--------------------------------------
# usual parameters
sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw allow http comment "http"
sudo ufw allow https comment "https"
# to activate the ability to connect from outside
## sudo ufw allow ssh
#--------------------------------------
echo Set parameters for Skype
# see https://support.skype.com/en/faq/FA148/which-ports-need-to-be-open-to-use-skype-on-desktop
# to work (PS: comment out 443/tcp line if using Phoenix Firestorm / see my other post)
sudo ufw allow 443/tcp comment "Skype"
sudo ufw allow 3478:3481/udp comment "Skype"
sudo ufw allow 50000:60000/udp comment "Skype"
# for best quality
sudo ufw allow 1000:10000/tcp comment "Skype"
sudo ufw allow 50000:65000/tcp comment "Skype"
sudo ufw allow 16000:26000/tcp comment "Skype"
#--------------------------------------
# echo disable ufw logging
# sudo ufw logging off
echo enable ufw logging
sudo ufw logging on
# -------------------------------------
# display status
echo .
sudo ufw status verbose numbered
PS: Another solution would be to update the applications configurations files from within ufw firewall, but it seems to be so poor in terms of configurations initially provided that i’ll stick to scripting.