
Webmin, an open-source web-based system administration tool, is ideal for managing Unix-based systems, including FreeBSD 14.0. When you install Webmin on FreeBSD 14.0, it provides a user-friendly graphical interface to handle tasks such as managing users, installing applications, and configuring server settings without requiring command-line input.
This article explains how to install Webmin on FreeBSD 14.0. You'll also secure access to the Webmin administration control panel using a Let's Encrypt SSL certificate.
Before you begin:
webmin.example.com.Webmin is available in the default package repositories on FreeBSD. Follow the steps below to install Webmin using the default pkg package manager on your server.
Update the server's package information index.
Install Webmin.
Start the Webmin setup script.
Respond with the following values when prompted:
/usr/local/etc/webmin directory./var/db/webmin directory.10000 or specify a custom port to listen for incoming connections.webmin-admin.Output:
Enable the Webmin service to automatically start at boot.
Start the Webmin service.
Output:
Webmin listens for connections on port 10000 and uses a self-signed SSL certificate by default. Follow the steps below to secure Webmin with a trusted Let's Encrypt SSL certificate.
Search all Certbot package versions available in the default repositories.
Output:
Based on the above output, py311-certbot is the latest version available in the package repositories on your server.
Install the Certbot Let's Encrypt client tool.
Generate a new Let's Encrypt SSL certificate for your domain. Replace webmin.example.com with your actual domain and webmin@example.com with your email address.
Output:
Certbot stores the new SSL certificate in the /usr/local/etc/letsencrypt/live/webmin.example.com directory based on the above output. Within the directory:
fullchain.pem: The SSL certificate file.privkey.pem: The private key file.Run the following command to merge the SSL certificate and private key into a single .pem file. For example, webmin.pem.
Move the webmin.pem certificate file to the Webmin configurations directory.
Open the main Webmin configuration file using a text editor like vi.
Find and replace the keyfile value with your webmin.pem SSL certificate path.
Save and close the file.
Restart Webmin to apply the configuration changes.
For Debian users, follow this article to install Webmin on Debian 12 and manage your system efficiently.
Follow the steps below to configure IPFW and allow the default Webmin interface port 10000 and the HTTPS port 443 through the firewall.
Enable the IPFQ firewall service to automatically start at boot.
Set the firewall type to workstation to allow outgoing and incoming connections on the server.
Create a new ipfw.rules file to store your firewall rules.
Add the following rules to the file.
Save and close the file.
Within the above firewall rules configuration:
ipfw -q -f flush: Flushes all existing rules.ipfw add allow tcp from any to any 10000 in: Allows connections to the Webmin port 10000.ipfw add allow tcp from any to any 443 in: Allows incoming HTTPS connections on port 443.ipfw add deny tcp from any to any 80 in: Denies insecure HTTP connections on port 80.ipfw add allow tcp from any to any established: Allows all traffic for established TCP connections.ipfw add allow icmp from any to any: Allows ICMP connections.Enable IPFW to load and use the firewall rules configuration at boot.
Start the IPFW firewall service to apply changes.
Output:
Webmin runs on the default port 10000 on your server unless you change the port using the web administration interface. Follow the steps below to access the Webmin web administration interface.
Access your Webmin domain on port 10000 using a web browser such as Chrome.
Enter the administrative user credentials, such as webmin-admin and webmin-password that you created earlier and click Sign in to log in to the Webmin interface .
View the real-time processor information, memory usage, disk space, running processes, and statistics history under System Information.
Expand the System drop-down on the main navigation menu to manage tasks on your FreeBSD server. For example, click Running Processes to view all active processes.
Expand the Tools drop-down and select File Manager to manage files and directories.
Looking to install Webmin on a different system? Follow this guide to install Webmin on Ubuntu for detailed steps.
You have installed Webmin on FreeBSD 14.0 and accessed the web administration interface to manage your server. The Webmin control panel offers multiple tools for installing packages, uploading files, and performing other administration tasks on your server. For more information and configuration options, please visit the Webmin documentation.
0 Comments
Be the first to comment and share your perspective with the community.