I already show you how to disable or enable Ubuntu desktop firewall. Just in case you don`t remember, Linux firewall is called iptables and you can configure it in some text editor, or to use graphical environment if you are not familiar with this method of editing. I show you how to do it in graphical environment.
First, let me be clear, you need to be root, or administrator on your PC in order to configure firewall. This configuration will affect all PC users. For this tutorial I created one administrator user and one simple user (Slide 1).
My idea is to create firewall rule in which I will deny access to yahoo.com using https protocol. Because of this I resolved yahoo.com with nslookup (Slide 2.).
As you can see one of IP addresses in which I resolved yahoo.com is 220.127.116.11. Now I started browser and I typed https://18.104.22.168 and I received page (Slide 3).
Now, go to Start and type firewall and select Firewall Configuration (Slide 4).
In order to start creating rule select plus under Rules section. In order to view log and listening ports expand sections (Slide 5)
Under Add a Firewall Rule type Name. Insert leave by default and under Policy select Deny. By default any traffic is allowed, we have to deny it. I have only one functional interface so I left All Interfaces, but in this case Direction is Out. Select In when you are creating rule which is filtering traffic that coming to you. My recommendation is to set Log in order to review rules behavior. Now, crucial point. Select protocol as TCP (HTTPS id TCP protocol), type your IP address and left port blank (this means any port) for From and for To select 22.214.171.124 and port 443 (HTTPS port) in ordet to point to Yahoo (Slide 6). Select Add.
Notify change in Firewall interface (Slide 7.). Your rule is added.
Now I will login as another user, which is affected by this rule and I will type https://126.96.36.199 again. Page will be unreachable (Slide 8).
I hope this tutorial was informative to you and thank you for visiting this website.