When ufw is enable android stuck in obtaining ip address
and cannot connect to wifi. I try sudo ufw allow dhclient
and sudo ufw allow dnsmasq
bot both had ERROR: Could not find a profile matching
error.
Could you please help me how to allow ap-hotspot?
From what I can tell
dnsmasq uses port 53 tcp/udp, as well as port 67/udp
dhclient by default uses port 68/udp
So a generic way to get this setup would be
Or if you want to just open these ports for a particular IP address (not sure if you get a static address)
You can also add the entries to /etc/services and then ufw will understand when you try
To do so just edit
Take a look at the file and it pretty straight forward, but basically you will add
And then
Should work.