QueHow

A How-To and wiki Blog

  • Operating System
    • Windows
      • Windows 10
      • Windows 7
    • Linux
  • Software
    • Application Software
    • Microsoft Office
      • Outlook
      • Word
      • PowerPoint
  • Internet
    • Browsers
      • Mozilla Firefox
      • Google Chrome
    • CMS
    • Tips & Tricks
  • Website
    • ecommerce
    • Google
    • Social Networking
    • General Websites
  • Mobile
  • Email
    • Gmail
  • Wiki

How to configure ufw firewall in Ubuntu 14.04

By Neha T Leave a Comment

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.

how-to-configure-ufw-firewall-in-ubuntu-14-04

Step 2: Type your system password when prompted and then hit enter.

how-to-configure-ufw-firewall-in-ubuntu-14-04
Step 2: If your firewall is active then its ok otherwise enable it by using “sudo ufw enable”.
how-to-configure-ufw-firewall-in-ubuntu-14-04
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 2: If your firewall is active then its ok and if not, then you can enable it by using "sudo ufw enable".

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 2: If your firewall is active then its ok and if not, then you can enable it by using "sudo ufw enable".

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.

how-to-configure-ufw-firewall-in-ubuntu-14-04

Step 6: If you want to allow only UDP connection, then type “sudo ufw allow 9091/udp”.

how-to-configure-ufw-firewall-in-ubuntu-14-04

Step 7: You can also range your port limit for that type “sudo ufw allow 21000:21050/udp”.

how-to-configure-ufw-firewall-in-ubuntu-14-04

Step 8: You can easily deny the connection from a particular IP address, for that type “sudo ufw deny from 135.64.118.92”.

how-to-configure-ufw-firewall-in-ubuntu-14-04

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”.

how-to-configure-ufw-firewall-in-ubuntu-14-04

Step 10: You can also configure specific services such as HTTP and SSH connections, for that type:“sudo ufw deny ssh”.

how-to-configure-ufw-firewall-in-ubuntu-14-04

That’s all friends. Keep reading.

You Might Also Like:

How to install and configure built In firewall in Ubuntu 14.04 how to enable and disable firewall in ubuntuHow to Enable and Disable Firewall in Ubuntu how-to-install-and-configure-ssh-in-ubuntuHow to Install and Configure SSH (Secure SHell) in Ubuntu How to monitor your network traffic in Ubuntu 14.04 how-to-enable-and-configure-bluetooth-in-ubuntuHow to Enable and Configure Bluetooth in Ubuntu how-to-install-and-configure-apache-web-servers-in-ubuntuHow to Install and Configure Apache Web Server in Ubuntu How to Configure Sudo wait time in Ubuntu 14.04 How to Configure your Default Application in Ubuntu 14.04

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Most Viewed

  • How to Install and Use TELNET in Ubuntu
  • How to install Hindi fonts in MS Word
  • How to Change a File Extension in Windows 10?
  • How to create a flipkart account in 3 simple steps
  • How to Change Monitor Refresh Rate in Windows 10?
  • How to install IIS on Windows 10
  • How to Insert Clickable Checkbox in MS Word 2016?
  • How to Set Auto Reply in Outlook 2016?
  • How to Login as Administrator in Windows 10?
  • How to Check RAM Size and System Type in Windows 10?

Recent Additions

  • How to Add Hyperlink to Another Sheet in Excel?
  • How to Add and Remove Watermark in Excel
  • How to use Relative and Absolute Cell Reference in Excel?
  • How to Enable and Disable Scroll Lock in Excel?
  • How to Use INDEX and MATCH Functions in Excel?
  • How to Make Bar Graph in Excel?
  • How to Count Duplicate Values in Excel?
  • How to Wrap Text in Excel?
  • How to Round off Numbers in Excel?
  • How to Create a Bell Curve in Excel?

Related Searches

  • How to View Source Code in Google Chrome?
  • How to Change Background in Instagram Story?
  • How to Check RAM Type, Size on Windows 7
  • How to search something in PDF
  • How to Block Someone on Instagram from PC?

Copyright © 2023 · QueHow · Contact Us