Virtualmin & Server Tips

Free SSL Certs on your vertualmin servers

Date: 02/28/2017, Author: Lostwake, Category: Virtualmin & Server Tips

Found this great article on getting free SSL Certs on your vertualmin servers: https://techjourney.net/how-to-use-lets-encrypt-ssl-certificate-automatically-in-virtualmin-webmin/

 

Here are the steps:

Configure and Setup Let’s Encrypt in Webmin / Virtualmin

  1. Login to Webmin / Virtualmin.
  2. Go to Webmin tab.
  3. Go to Webmin -> Webmin Configuration.
  4. Click or tap on Module Config link or button on the top left corner.
  5. In the text box for Full path to Let’s Encrypt client command, enter the full path to the Let’s Encrypt client executable. Click or tap Save when done.

Request and Install Let’s Encrypt SSL Certificate for Virtual Servers / Domains

  1. Go to Virtualmin tab.
  2. Select the virtual server / domain which you want to enable SSL protocol with SSL certificate from Let’s Encrypt from the drop-down list.
  3. Select Edit Virtual Server.
  4. Go to Enabled Features.
  5. Check the SSL website enabled?. Hit Save Virtual Server when done.
  6. Now go to Server Configuration -> Manage SSL Certificate.
  7. Go to Let’s Encrypt tab.
  8. Under Request certificate for, select the radio button for Domains associated with this server which allows Virtualmin to automatically decide the domains for the SSL certificate (typically the root domain and its www subdomain), or Domain names listed here, where you can list the domain names (one per line) that you want to include in the SSL certificate manually.
  9. Virtualmin also supports auto renewal of Let’s Encrypt certificate. To do so, select the radio button next to the empty textbox for Months between automatic renewal option, then enter a number between 1 to 3 months in the text box.
  10. Hit Request Certificate when done.
  11. Once done, Virtualmin will automatically install SSL certificate and configure the web server to use the new certificate and key. You can now visit your website via HTTPS secure connection, which should automatically trusted by most web browsers, and see it protected with a padlock.

Change The Different Levels Of FTP Access For Users On The Server

Date: 10/27/2015, Author: Lostwake, Category: Virtualmin & Server Tips

To change the FTP Access levels such as FTP access, SFTP access, etc for any user on the server go to:

Webmin -> System -> Users and Groups -> "user" and set the shell access.

bin/sh allows SFTP.

bin/false allows FTP only.

FTP Not Working On Port 21

Date: 10/27/2015, Author: Lostwake, Category: Virtualmin & Server Tips

My server stopped allowing users to login to FTP through port 21 and only allowed port 22 and SFTP.

After a lot of digging I found the solution by loading the FTP connection tracking module on the server.

This can be done by logging into Putty and running the command:

modprobe ip_conntrack_ftp

I found this answer on this thread: http://www.cloudmin.com/node/34246

An it pointed me to this Virtualmin Documentation: https://www.virtualmin.com/documentation/web/faq#FTP_Service_isn-t_working

Hope this helps everyone.