---
title: "How to Configure the FirewallD Webmin Module"
description: "The FirewallD Webmin module, not to be confused with the Firewalld application firewall, allows system administrators to manage iptables firewall rules within the Webmin dashboard instead of the..."
url: https://www.inmotionhosting.com/support/product-guides/cloud-server/firewalld-webmin/
date: 2021-02-24
modified: 2021-06-01
author: "InMotion Hosting Contributor"
categories: ["Cloud Server Hosting"]
type: post
lang: en
---

# How to Configure the FirewallD Webmin Module

The FirewallD [**Webmin**](https://www.inmotionhosting.com/support/product-guides/cloud-server/how-to-install-webmin-on-ubuntu-apt/) module, not to be confused with the *Firewalld* application firewall, allows system administrators to manage iptables firewall rules within the Webmin dashboard instead of the command-line interface (CLI). It is much less complicated than the Linux IPTables Firewall module. The module is also somewhat similar in user experience (UX) to the official [firewall-config](https://firewalld.org/documentation/utilities/firewall-config.html) application for Linux PCs.

Remember to create a [Webmin backup](https://www.inmotionhosting.com/support/product-guides/cloud-server/webmin-backups/) or [snapshot](https://www.inmotionhosting.com/support/product-guides/vps-hosting/snapshots/) before making major changes to your server.

The FirewallD module is included natively in the base Webmin installation. It even imports your current Firewalld settings automatically. Below we’ll cover how to:

- [Enable the FirewallD Webmin Module](#enable)
- [Configure the FirewallD Webmin Module](#configure)
  - [Switch Zones](#zone)
  - [Add Services for Ports](#service)
  - [Open Ports](#port)
- [Disable Firewalld](#disable)

## Enable the FirewallD Webmin Module

1. [SSH into your server](https://www.inmotionhosting.com/support/server/ssh/how-to-login-ssh/).
2. Ensure [Firewalld is installed](https://www.inmotionhosting.com/support/security/how-to-install-firewalld-on-linux/). The easiest method is to use Systemd: systemctl status firewalld
3. If you’re installing it now, ensure you [open port](https://www.inmotionhosting.com/support/security/how-to-open-a-port-in-firewalld/) 10000 (for Webmin) and your SSH port (if you [changed it from “22”](https://www.inmotionhosting.com/support/product-guides/cloud-server/how-to-change-your-server-ssh-port/)): firewall-cmd --permanent --add-port=10000/tcpReload Firewalld: firewall-cmd --reload
4. Ensure Firewalld is running, or started: firewall-cmd --state systemctl start firewalld
5. [Log into your Webmin dashboard](https://www.inmotionhosting.com/support/product-guides/cloud-server/webmin-user-login-passwords/).
6. On the left, search for and select **FirewallD**.
7. Make necessary changes as discussed below and select **Apply Configuration**.

![FirewallD Webmin module options](https://www.inmotionhosting.com/support/wp-content/uploads/2021/02/webmin-firewalld-1024x468.png)

Experience full control over your server environment and deploy the best operating and management systems that fit your needs with our reliable [Cloud VPS Hosting](https://www.inmotionhosting.com/cloud-vps)!

## Configure the FirewallD Webmin Module

You can read our [Firewalld configuration guide](https://www.inmotionhosting.com/support/security/how-to-configure-firewalld-basic-commands/) for more information on common firewall features. Below we’ll cover important FirewallD module tasks for [server hardening](https://www.inmotionhosting.com/support/product-guides/cloud-server/secure-cloud-server-hosting/).

### Switch Zones

Firewalld zones are rule sets you can quickly switch between for specific circumstances. Most default rule sets (e.g. *trusted* and *work*) are more applicable to securing [Linux desktops](https://www.techradar.com/best/best-linux-distros) than a single web server. You can configure a zone per your needs from the **Show rules in zone** drop-down menu. You can also set a default zone, delete zones, and add zones.

For basic usage, stick with the *public* zone.

### Add Services for Ports

Firewalld refers to ports commonly used for a specific application as *services*. It’s best to search for ports as a service first for easier management in complex setups.

1. Ensure you’re in the correct zone.
2. Select **Add allowed service**.
3. Search for the service you need to allow from the drop-down menu.
4. Select **Create**.
5. Once you’ve finished making changes, select **Apply Configuration**.

### Open Ports

If you need to open a unique port or port range, you’ll need to use the *Add Port* option.

1. Select **Add allowed port**.
2. Specify the single port or port range.
3. Select the correct protocol – TCP or UDP.
4. Select **Create**.
5. Once you’ve finished making changes, select **Apply Configuration**.

### Disable Firewalld

If you need to disable Firewalld for troubleshooting at any point, simply select **Stop FirewallD** instead of doing so from the [terminal](https://www.inmotionhosting.com/support/security/how-to-stop-and-disable-firewalld/). You’ll receive the notification “Failed to list zones : FirewallD is not running.” You won’t be able to see the FirewallD module settings again until you enable Firewalld from the terminal:

systemctl start firewalld

The radio buttons to *Change this option to control whether your firewall is activated at boot time or not* are the GUI equivalent to the Systemd command: 

systemctl enable firewalld

Learn more about server management from our [Cloud Server Hosting Product Guide](https://www.inmotionhosting.com/support/product-guides/cloud-server/).
