HOW TO INSTALL PORTS DIRECTLY IN Webmin-Virtualmin?

I am preparing to take a new VPS Server. But, I don’t want to install “UFW” for Port management anymore.
So, I would like to know if “Webmin-Virtualmin” doesn’t have a feature to open and close ports directly instead of installing or using an external utility like UFW ???

If yes, can someone be kind enough to show me how to do it (manage ports by opening or closing them directly from “Webmin/Virtualmin”) via a screenshot(s) ???

Please guide me.

@chegmarco,

What you are referring to is a “firewall”. UFW is one of many firewall “management” tools for Linux, however to get straight to an answer, Webmin/Virtualmin does NOT create a firewall, however the software is capable of “talking” and “sending commands” to a few firewall tools such as:

UFW
IPTables
FirewallD

When you install Virtualmin (on a fresh system) it’ll typically install FirewallD as part of the install, and then you can navigate to:

Where you can manage the firewall.

Also as part of the install process, basic firewall “rules” will be configured with the ports necessary for web hosting already setup.

1 Like

Here is the screenshot to add a port.

How long has it been since you’ve done a fresh Virtualmin install from script? I know Debian defaults to UFW but Virtualmin doesn’t use it.

@ID10T,

My Debian install didn’t default to UFW. I use FirewallD.

UFW is the Debian default. It is unused on my Debian 11, but, it is installed by Debian. I only mentioned it wondering if the OP is using Debian.

root@main:~# locate ufw
/etc/fail2ban/action.d/ufw.conf
/etc/ufw
/etc/ufw/applications.d
/etc/ufw/applications.d/bind9
/etc/ufw/applications.d/dovecot-imapd
/etc/ufw/applications.d/dovecot-pop3d
/etc/ufw/applications.d/ejabberd
/etc/ufw/applications.d/openssh-server
/etc/ufw/applications.d/postfix
root@main:~#

@ID10T,

It’s installed if you choose to install it, I run a number of Debian 12 nodes, none of them have UFW installed by default. It comes down to what options you choose during an install, or in the case of a VPS what the “image” creator chose when they created the image. Mine are “minimal” installs which means only the bare features are installed by default, then everything else is added later.

Thanks everyone for your answers.

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.