I have installed the Ubuntu system, and deny both incoming and outgoing ports loosing internet access.
Now I want access only for my Firefox that I have installed separately from the Firefox website not the one from the repositories.
Now using Application Integration of UFW , I created a profile shown below:
[firefox] title=firefox description=firefox web browser ports=80,443/tcp
and added 53 port to allowed list for DNS and then allowed Firefox app profile outgoing connection.
My final settings are shown below:
Status: active Logging: on (full) Default: deny (incoming), deny (outgoing) New profiles: skip Status: active Logging: on (low) Default: deny (incoming), deny (outgoing) New profiles: skip To Action From -- ------ ---- 53 ALLOW OUT Anywhere 80,443/tcp (firefox) ALLOW OUT Anywhere 53 ALLOW OUT Anywhere (v6) 80,443/tcp (firefox (v6) ) ALLOW OUT Anywhere (v6)
Now, Firefox is able to access the internet, but all other applications are also able to access those open ports.
I want only Firefox to be able to access the Internet..