simple correction: sudo iptables -A OUT -p udp --match multiport --dports 49152:65535 -j ACCEPT
should be:sudo iptables -A OUTPUT -p udp --match multiport --dports 49152:65535 -j ACCEPT
and since a conflict could be there between iptables and ufw, saving is done via the command:
sudo /sbin/iptables-save
