These days, many users are concerned about the security of their system because of many unwanted virus, worm and malware. A firewall is one of the handiest and inbuilt feature of any operating system which protects their user against these unwanted malware.
In this article, we are discussing the configuration rules of the Uncomplicated Firewall (UFW) of Ubuntu. If you want to protect your system from these malicious programs, then this post might be very useful for you. Just have a glance at this article to know how to configure ufw firewall in Ubuntu 14.04.
Steps to configure ufw firewall:
Step 1: First open your terminal by going through your unity dash or by using Ctrl +ALT+T key combination and then type:“sudo ufw status” in order to find the firewall status.
Step 2: Type your system password when prompted and then hit enter.
Step 2: If your firewall is active then its ok otherwise enable it by using “sudo ufw enable”.
Step 3: Now, type: “sudo ufw default allow incoming” to allow the network traffic/ incoming connection and if you want to disable unwanted network traffic, then you can use: “sudo ufw default deny incoming”.
Step 4: In the same as incoming, you can allow or deny outgoing network traffic/outgoing connection. Just type: “sudo ufw default allow outgoing” and to deny type “sudo ufw default deny outgoing”.
Step 5: Basically, there are two connections TCP and UDP. TCP stands for transmission and control protocol, which is used for data transmission whereas UDP stands for User Datagram Protocol which is used for audio/video transmissions.
Type “sudo ufw allow 9091”, if you want to allow both connections on a particular port.
Step 6: If you want to allow only UDP connection, then type “sudo ufw allow 9091/udp”.
Step 7: You can also range your port limit for that type “sudo ufw allow 21000:21050/udp”.
Step 8: You can easily deny the connection from a particular IP address, for that type “sudo ufw deny from 135.64.118.92”.
Step 9: If you want to deny your user access to specific protocol say UDP, then type “sudo ufw deny proto udp from 192.168.1.3”.
Step 10: You can also configure specific services such as HTTP and SSH connections, for that type:“sudo ufw deny ssh”.
That’s all friends. Keep reading.
Leave a Reply