Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I've been using 12.04 LTS for a while, and for my own sanity and security, I've configured my ufw firewall to deny all incoming, and for outgoing just allow these ports:

TCP 80, 443 for web-browsing
UDP 53 for dns service

Now the scenario is that sometimes I need to turn my workstation into a wifi hotspot to allow internet sharing with my smartphone. To do that, I followed this howto article.

The hotsport works and wifi connection is established with the smartphone. However, with my default firewall setup, I'm unable to browse anything on my smartphone. Only if I turn off the firewall, I can browse. But I don't want this. I tried allowing UDP53 & TCP80 ports for incoming connections, but it still doesn't work. One more thing I've noted is that with my firewall turned on, the smartphone doesn't get a proper ip-address. It is allocated something like 169.256.x.x which I believe is insufficient to get an internet connection. However, with the firewall turned on, it gets something like 10.x.x.x and browsing is ok.

Do any of you know which ports this hotspot service uses or needs enabled in order for it to work properly? So, that I can share internet with smartphone, and at the same time also be secure by enabling only those ports on ufw that are required ?

share|improve this question
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.