Allow DNSMASQ through UFW Firewall Port Guide By admin | dnsmasq, ufw | No Comments If you want to use UFW Firewall with DNSMASQ you need to enable some extra ports so all the queries can process correctly. Here are the ports you should open. ufw allow from any port 68 to any port 67 proto udp ufw allow dns ufw disable ufw enable