Came here in search of an answer to a problem, but didn't find it? Visit the forum @ LinuxBSDos.com, pick a category and ask a question.

How to replace Ufw with Firewalld in Linux Mint 15

Firewalld and Ufw, the Uncomplicated FireWall, are two firewall management applications installed in some of the most popular Linux distributions. Ufw is the default firewall application installed in distributions based on Debian and Ubuntu, while Firewalld is the default in Fedora, where it replaced the old firewall application when Fedora 18 was released. It is a project of the Fedora development team.

Though Ufw has a command-line client that is easier to use, Firewalld brings a lot more features to the table. For example, Firewalld introduces the concept of network zones, which define trust levels for network connections or interfaces. All you need to know about Firewalld is available here.

Ufw is made up of two components – ufw (the daemon), and the graphical management interface, while Firewalld has three components – firewalld (the daemon), firewall-config (the graphical management interface), and a desktop applet called firewall-applet. Gufw is the most popular of three graphical clients for managing Ufw, while firewall-config is the sole graphical management interface for Firewalld.

This short tutorial shows how to replace Ufw with Firewalld in Linux Mint 15, the latest stable edition of the popular desktop distribution.

In Linux Mint 15, as on other Linux distributions, you can install it from the command-line or from the Software Center, the distribution’s graphical package manager.

To install all three components of Firewalld from the command-line, open a shell terminal and type sudo apt-get install firewall-applet. From the Software Center, search for “firewall-applet” and install it. Once installed, you can confirm that the daemon is running by typing sudo service firewalld status. You may then launch firewall-applet from the menu. Its icon should appear in the System Tray. Right-click on it to see the entries in its context menu.
Firewalld install Linux Mint 15 firewall-applet

This is the main window of firewall-config. It comes with several zones pre-configured, and the default zone is Public. Might be better to change it to Home, as its settings are designed for use in a more trusted environment.
Firewalld install Linux Mint 15 firewall-config

To change the default zone, select Change Default Zone from the Options menu.
Firewalld install Linux Mint 15 firewall zones

At this time, after logging out or rebooting the computer, you will have to restart the applet. To make it auto-start on subsequent logins, open the graphical management control center of the edition of Linux Mint you are running and click on the Startup Applications module (that’s what it is called in the Cinnamon edition). Click on the Add button.
Linux Mint 15 auto-start applications

Fill in the fields as shown in this image. You can modify the Comment field, but the Command filed must be firewall-applet, because that is the command that starts the applet. Click Add.
Linux Mint 15 auto-start firewall-applet

There should now be an entry for the applet in the list of startup applications. You may close the window. Now that Firewalld is installed and running, you can stop the daemon for Ufw by typing sudo service ufw stop. UPDATE: It’s actually better to uninstall ufw by typing sudo apt-get remove ufw. That will not only remove the daemon, but also remove the Firewall module from System Settings.
Linux Mint 15 auto-start firewall-applet

Please share this article
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
Digital Ocean SSD VPS Cloud Server droplets

Digital Ocean is a VPS/Cloud hosting provider. For just $5 per month, you can get yourself a Cloud server with 512 MB of RAM, 20 GB super-fast SSD, free snapshots, plus backups for a minimal fee. All via a simple graphical interface.

And by signing up with this referral link, you can help support this website.

If you are reading this, your ad could also be occupying this space. Contact us to make it happen.

If commenting on this article is closed, please post your comments at forum.linuxbsdos.com.

4 Comments

  1. Duveltje says:

    Works perfect on a fresh Linux Mint 16 installation.
    I solved the problem with the Firewalld applet by using the adviced Nvidia driver instead of the X.org display server one on my Dell.
    Now the applets starts correctly.

  2. It seems complicated but I’ll try to replace my firewall.

  3. David says:

    Will this work in Ubuntu, too?

    • finid says:

      The package is available in Ubuntu, but the applet fails to start. The error has something to do with dbus or something like that. I’m still trying to figure out why, but it could be something specific to my test installation.

      Try it on your system and see if it works. Note that it also works on Linux Deepin, which, like Mint, is also based on Ubuntu. See How to customize Linux Deepin 12.12.

Leave a Comment