I don't know how can I allow the permission for Firefox in the gufw firewall.

Can someone help me please?

  • 3
    Unless you restrict outgoing traffic with gufw, Firefox shouldn't be affected by the firewall. – Thomas Ward Aug 31 '13 at 0:47

The most secure way to set your firewall UFW is probably to:

  • deny any entry
  • deny any exit

and then configure every rules to allow exactly only what you want.

So if you only what to allow Firefox (or any other web application) to use HTTP and HTTPS protocols, then add this rule in GUFW and reboot.


  • port 80 for HTTP protocol
  • port 443 for HTTPS protocol

enter image description here

With such settings, you will have to add a rule for every needs, examples:

  • to allow Thunderbird to use your email account, add a new rule
  • to allow Skipe, add a new rule
  • ....
| improve this answer | |

Unless you specifically restrict outgoing traffic with gufw rules, Firefox shouldn't be affected by the firewall.

As I understand it, by default, gufw won't be restricting any outbound and related traffic. If, for example, I send Firefox to https://askubuntu.com/ and I have a generally restrictive inbound rules set, gufw will still allow Firefox to go outbound to askubuntu.com and get related information from that connection, such as actual site content, and allow that through.

| improve this answer | |
  • But suppose you want to Deny ALL outgoing and incoming traffic. However, you want to apply a several rules to allow Firefox, and only Firefox, incoming and outgoing traffic capability? – user12711 Mar 20 '17 at 2:02

Open GUFW and click on the plus sign. In the first tab select the following and hit the add button for each one of them.

Allow In Service HTTP

Allow Out Service HTTP

Allow In Service HTTPS

Allow Out Service HTTPS

And you're done.

| improve this answer | |
sudo default deny incoming  
sudo default deny outgoing


sudo ufw allow out 53  
sudo ufw allow out http  
sudo ufw allow out https  
sudo ufw allow out 8080 


sudo ufw allow proto tcp from   
sudo ufw allow out to 
sudo ufw allow out to port 465 proto tcp


sudo ufw allow proto tcp from   
sudo ufw allow out to port    
sudo ufw allow out to port 587 proto tcp
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.