How to block ports in Ubuntu 16.04 Firewall

To safeguard your computer from being hacked, you can block ports of Operating System Linux Ubuntu through its Firewall. You can allow only required ports and block rest of all. To do the same below steps can be followed.
 
Step 1.Start your computer installed with Linux Ubuntu operating system. When you reached below screen click on first icon i.e. ‘Search button’.

 
Step 2.Firewall configuration icon will be shown. Click on it, an authentication window will appear asking to enter password. When password is typed press enter key.

 
Step 3.Now Firewall window is open as below image.

 
Step 4.There are three types of profile in it namely Home, Public and Office. Set two out of three profile as status ‘off’. For example: Home is your selected profile with status ‘On’.

 

 
Step 5.Select the incoming and outgoing value as ‘Deny’ as below image. This step will block all the ports of your computer.

 
Step 6.As our all ports are blocked now we can allow any port to work upon by using the ‘Rules’ in Ubuntu firewall. So now we learn how to use the ‘Rules’. Just click on Rules a window will appear as below. Click on plus icon ‘+’.

 
Step 7.Add rule window as below screen shot will appear. Select ‘Simple’ and Policy as ‘Allow’.

 
Step 8.Select Direction as ‘Both’ and enter port number for example as ‘1245’. Click on ‘Add’ button and rule will be created.

 
Step 9.Now ‘1245’ port number is open which you can see as below screen shot.

* The Content stated above is for informational purpose only. Expert Software Team is not responsible if any part of content found meaningless in any manner or condition.

Blocking the ports with COMODO Firewall

Step 1. As now Installation process completes a COMODO firewall widget window will appear on the right side of your desktop as per below image.
comodo-firewall-rule-added.png

Step 2. Now double click on the window where ‘Secure’ is written. A new window will appear as below.
comodo-firewall-main-window

Step 3. Click on ‘Settings’ appearing on top of window then a new window will appear as below.
comodo-firewall-advanced-settings-window

Step 4. This is the main setting window where you can check all the settings of Comodo Firewall. Now moving forward for blocking the ports click on ‘Firewall’, you will find window as below where all subheadings of firewall are open.

Step 5. Now click on Global Rules, you will see some pre-defined rules by Comodo Firewall with ‘Allow’ and ‘Block’ specification as below window. Firewall use these rules in different scenarios as specified.

Step 6. We now add a new rule to block the port. For example, if we want to allow only one port i.e. 8080 and block all other ports. Firstly we will click on ‘ADD’ then a window will appear as below.

Step 7. Click the drop down list in front of ‘Action’ where we select ‘Block’ and then click on ‘Destination Port’ as below.

Step 8. Now click the drop down list below where ‘Any’ is displayed and select ‘A Port Range’. Enter the Start Port as ‘0’, End Port as ‘8079’ and click OK. Please refer the image below.


Step 9. A rule will be formed as below.

Step 10. Click again on ‘Add’ button as we need another rule. We will just change the port range now and rest of the process will be same as above. Port Range will be Start Port as ‘8081’ and End Port as ‘65535’. Refer the image below.

Step 11. Again a second rule will be formed as below. Press OK down below to save the changes. So now all the ports of your computer are blocked except the ‘8080’ number port.

* The Content stated above is for informational purpose only. Expert Software Team is not responsible if any part of content found meaningless in any manner or condition.

How to install Comodo Firewall in PC

Security of your computer from being hacked through Internet is of utmost important. So if we able to block computer ports then it will inaccessible for any unwanted intruder. Now we going to learn that how we can block all ports though ‘Comodo’ firewall. Here we start with the Installation process of Comodo Firewall.
 
Step 1. Download Comodo firewall setup from https://www.comodo.com/home/internet-security/firewall.php as ‘Free Firewall Download’ as per below screen shot.

 
Step 2. Setup file will be shown as below of size 5.1 Mb as below if you are a Chrome Web Browser User.

 
Step 3. By clicking on the downloaded file a window will appear as below, now click on Run.

 
Step 4. A window asking for next step of installation will be shown as below where you have to click ‘I AGREE’.

 
Step 5. Click ‘Next’ as below screen shot after you specify whether you like Yahoo as your Home Page or not by tick or untick inside the selection box.

 
Step 6. Again click ‘Next’ when below screen appears. [It will be better if we don’t untick any below option]

 
Step 7. Now click ‘Install’ as per below image which will initiate the installation. When the installation completes, it will ask to restart the computer and that we must follow to complete the process.

* The Content stated above is for informational purpose only. Expert Software Team is not responsible if any part of content found meaningless in any manner or condition.

How to do sparse update with Check for modifications

The third method for files not showing under working folder is ‘Check for modifications’. So now we see how to do sparse update with check for modifications as below.

Sparse update with Repo-Browser<< Already gone through this page >>

Step 1. click on your working folder select ‘TortoiseSVN’ and then click on ‘Check for modifications’ as below

 
Step 2. A window as below will appear.

 
Step 3. Now press ‘Shift’ key and while pressing it click on ‘Check repository’ then window will change as below image.

 
Step 4. Now the above window shows that ‘s1’ text file is not checked out which means it is not showing as a working copy in working folder. So to make it working copy right click on the file icon and click on update as below image.

 
Step 5. A new window will appear on the same window as below, click on OK button.

 
Step 6. Now another window will appear as below stating that ‘Update Finished’ which means your update is finished.

 
Sparse update with Repo-Browser<< Already gone through this page >>

* The Content stated above is for informational purpose only. Expert Software Team is not responsible if any part of content found meaningless in any manner or condition.

How to do Sparse Update with Repo-Browser

We can also select the files in working folder with the help of Repo-Browser. So now we learn about ‘How to do sparse update using repo-browser’. Repo-browser is short form for Repository Browser.
Sparse update with Update to Revision<< Already gone through this page >> sparse update with check for modifications

Step 1. Right click on your working folder, drag towards ‘Tortoise SVN’ and then to ‘Repo-browser’ click on it as per screen shot below.

 
Step 2. A new window will display, right click on the file which you want to select, drag the cursor to ‘Update item to Revision’ and click on it.

 
Step 3. Click ok when below displayed image appears. Another window appears which shows that update is finished as per screen shot down below.


 
Sparse update with Update to Revision<> sparse update with check for modifications

* The Content stated above is for informational purpose only. Expert Software Team is not responsible if any part of content found meaningless in any manner or condition.

How to do Sparse update with Update to Revision

We can select or deselect the files from working folder even after checkout has been done. There are three ways to do so first is ‘Update to revision’, second is ‘Repo-Browser’ and third is ‘Check for modifications’. So in this lesson we will learn about ‘How to do sparse update with update to revison’.

Creating repository using command prompt and sparse checkout<< Already gone through this page >> Sparse update with Repo-Browser

Step 1. Sparse update with ‘Update to revision’
Right click on the folder of working copy or checked out folder and select ‘TortoiseSVN’->‘Update to revision’ as per below image. A window will appear as down below and click ‘Choose items’.


 
Step2. Now select or deselect the folder and file you want in working folder and press OK thereafter. Only selected folders will appear in working folder.

 
Creating repository using command prompt and sparse checkout<< Already gone through this page >> Sparse update with Repo-Browser

* The Content stated above is for informational purpose only. Expert Software Team is not responsible if any part of content found meaningless in any manner or condition.

How to create Repository using Command Prompt and doing Sparse Checkout

It is amazing to know that we can create repository with command prompt also. So in this lesson we will learn ‘how to create repository using command prompt’. Moreover, sometimes there are requirements to show or hide the working copy on network using SVN. So to accomplish this we will go through ‘how to do sparse checkout’.

How the Context menu and icons look like in SVN<< Already gone through this page >>How to do Sparse update with Update to Revision

Creating repository using command prompt
 
Step 1. Create a new folder for example as SVN in ‘D’ drive or in any drive as comfortable. Open the command prompt by pressing two keys Win+X, a window as below will appear.
opening-command-prompt-from-start
 
Step 2. A command prompt window will appear as below.
command-prompt-window
 
Step 3. Now type the following command as below and press enter

->D:\SVN>svnadmin create –fs-type fsfs NewRepository

Now ‘NewRepository’ folder is created as a ‘repository’ in the same drive under SVN folder.
creating-svn-repository-in-command-prompt
 
Step 4. Sparse Checkout
When you select a directory where you want to place your working copy, right click on that folder and select ‘SVNCheckout’ then window will appear as below
svn-checkout-window
 
Step 5. Select ‘Choose items’ a new window will appear as below, select the file which you want as a working copy and press ‘OK’. Only selected files will be shown under working folder.

repository-browser-window

How the Context menu and icons look like in SVN<< Already gone through this page >>How to do Sparse update with Update to Revision

* The Content stated above is for informational purpose only. Expert Software Team is not responsible if any part of content found meaningless in any manner or condition.

How the Context Menu and Icons look like in SVN

Here is a clear picture of ‘How the Context menu look like in SVN’ where we can see all the major commands usable for working with SVN. Also you will be able to see various ‘Icon overlays’ in further working of SVN as per icons image down below about which we will discuss in our coming lessons. Two icons for add file and versioned file with green tick already discussed in previous lessons.

How to add new files in working folder<< Already gone through this page >> How to create repository using command prompt and sparse checkout

1.Context Menu

2.Icon Overlays

 
How to add new files in working folder<< Already gone through this page >> How to create repository using command prompt and sparse checkout

* The Content stated above is for informational purpose only. Expert Software Team is not responsible if any part of content found meaningless in any manner or condition.

How to add new files in working folder and check logs

There always been changes in projects where we add new files to our project. So now we learn ‘How to add new files in working folder’ and ‘How to check Logs in SVN’ as per below steps.

How the working copy functions<< Already gone through this page >>How the Context menu and Icons look like in SVN
 
Step 1. Now we add new files to it. For example create a new file inside the ‘svn_repos’ folder as ‘file2’, right click on it drag to TortoiseSVN and click on ‘Add’ by dragging to it. New file appear as below screen shot. It shows that this file is not committed. So right click on the same file and click on SVNcommit and down below screen will appear.


 
Step 2. Now after pressing OK FILE2 will appear as below.

How to check the SVN Logs
 
Step 3. To see modified versions and added files right click on ‘svn_repos’ drag to ‘TortoiseSVN’ and then to ‘show log’, just click on it. A window as below will appear. Red marks shows the modified files and blue mark shows the added files.

Step 4. When the file is not commit we can undo the file addition by right click on
file ->TortoiseSVN->Revert.

 
How the working copy functions<< Already gone through this page >>How the Context menu and Icons look like in SVN

* The Content stated above is for informational purpose only. Expert Software Team is not responsible if any part of content found meaningless in any manner or condition.

How the working copy functions (SVN Commit)

When working copy is ready we must understand how to work on it so that we get information about every modification. To learn it we go through ‘How the working copy functions’ as per below steps.

How to create working copy<< Already gone through this page >>How to add files in working folder
 
Step 1. Now make changes or write something new in green ticked file1 and save it, you will see a red mark on your file like below screen shot. It shows that changes have been made in the file but not saved in repository. While mark is red a ‘Diff’ option is available by right click on file1, click on TortoiseSVN and drag to Diff. You will able to see the change before and after as per another window below.


 
Step 2. So now right click on file1 and click on ‘SVN Commit’a window will appear as below. Press OK, new window will be shown as ‘Commit Finished’ as per screen shot down below with revision number.


 
How to create working copy<< Already gone through this page >>How to add files in working folder

* The Content stated above is for informational purpose only. Expert Software Team is not responsible if any part of content found meaningless in any manner or condition.