![]() Open the file /etc/webmin/config in your editor: $ sudo nano /etc/webmin/configĪdd the following line to the end of the file, replacing your_domain with your full domain name. Next, we will add our domain to the list of allowed domains, so that Webmin will interpret that when we access the panel from our domain it is not a malicious operation, such as a site scripting ( XSS) attack. Open the file /etc/webmin/nf in your editor: $ sudo nano /etc/webmin/nfĬhange the 1 to 0. Next, we must tell Webmin to stop using TLS/SSL, since Apache will provide it. It also ensures that internal links generated from Webmin pass through Apache. This configuration instructs Apache to approve requests sent to the Webmin server. We will then secure the virtual host using a TLS/SSL certificate from Let's Encrypt.įirst, create a new Apache virtual host file in the Apache configuration directory: $ sudo nano /etc/apache2/sites-available/your_nfĪdd the following to the file, replacing the email address and domain with your own: We will use an Apache virtual host for proxy requests sent to the Webmin server running on port 10000. This is inconvenient, especially if you access Webmin using an FQDN such as webmin.your_domain. To access Webmin, you must specify port 10000 and check that it is open on your firewall. Step 2: Protecting Webmin with Apache and Let's Encrypt Now, we will guarantee Webmin access by placing it behind the Apache web server and adding a valid TLS/SSL certificate. Root password, or as any user who can use `sudo`. When the installation is complete, you will see the following result: Output Then install Webmin: $ sudo apt install webmin Then update the package list to include the Webmin repository: $ sudo apt update Then add the Webmin PGP key to make your system trust the new repository: $ wget Then add this line at the bottom of the file to add the new repository: Open the file in your editor: $ sudo nano /etc/apt/sources.list This is done by adding the repository to the /etc/apt/sources/.list file. Step 1: Installing Webminįirst, we must add the Webmin repository so that we can easily install and update Webmin using our package manager. You will use Certbot to generate the TLS/SSL certificate for Webmin. To set this up, follow the tutorial How to set up a host name with DigitalOcean.Ĭertbot installed according to step 1 of Securing Apache with Let's Encrypt in Ubuntu 18.04. Be sure to configure access to Apache through your firewall by following the steps in this tutorial.Ī full domain name (FQDN), with a DNS A record oriented to your server's IP address. We will use Apache to run the domain verification of Let's Encrypt and fulfill the function of a Webmin proxy. To complete this tutorial, you will need the followingĪn Ubuntu 18.04 server configured using the initial configuration guide for Ubuntu 18.04 servers, a non-root sudo user and a firewall.Īpache installed following the instructions of How to install a Linux, Apache, MySQL, PHP (LAMP) stack on Ubuntu 18.04. Then you will use Webmin to add new user accounts and update all packages on your server from the panel. Through this tutorial, you will install and configure Webmin on your server, and ensure access to the interface with a valid certificate using Let's Encrypt and Apache. With Webmin, you can change settings for common packages on the fly, including web servers and databases, as well as manage users, groups and software packages. DigitalOcean - How To Install Webmin on Ubuntu 16.Webmin is a web-based control panel for any Linux machine that allows you to manage your server through a modern web-based interface.In future we will discuss how to add SSL certificates and set up a Bind9 DNS server. You have now installed webmin on Ubuntu 16.04. You will now be able to see the webmin interface. Login with the user root and the password you specified earlier. You will need to allow the SSL exception as we haven't provided certificates yet. Now use your browser to navigate to your server's IP or hostname on port 10,000. Sudo /usr/share/webmin/ /etc/webmin root $PASSWORD ![]() Please change the PASSWORD variable in the script before using it. Now let's set the root account's password for webmin. sudo echo "deb sarge contrib" | sudo tee /etc/apt//webmin.list Run the commands below to install the webmin packages. However the reason I am interested in it is because it is probably the easiest way to set up and maintain a Bind9 DNS server. See the standard modules page for a list of all the functions built into Webmin." - Webmin site Webmin removes the need to manually edit Unix configuration files like /etc/passwd, and lets you manage a system from the console or remotely. Using any modern web browser, you can setup user accounts, Apache, DNS, file sharing and much more. "Webmin is a web-based interface for system administration for Unix.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |