I don't know how can I allow the permission for Firefox in the gufw firewall.
Can someone help me please?
The most secure way to set your firewall UFW is probably to:
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.
With:
With such settings, you will have to add a rule for every needs, examples:
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.
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.
sudo default deny incoming
sudo default deny outgoing
internet
sudo ufw allow out 53
sudo ufw allow out http
sudo ufw allow out https
sudo ufw allow out 8080
gmail-thunderbird
sudo ufw allow proto tcp from 173.194.0.0/16
sudo ufw allow out to 173.194.0.0/16
sudo ufw allow out to 74.125.0.0/16 port 465 proto tcp
hotmail-thunderbird
sudo ufw allow proto tcp from 207.46.0.0/16
sudo ufw allow out to 207.46.0.0/16 port
sudo ufw allow out to 65.52.0.0/14 port 587 proto tcp