How to change Webmin port using terminal
Google cloud, azure, and amazon block access to port 10000 by default, as all have a firewall activated. This may prevent you from logging into http://localhost:10000/ from another system on your network or over the Internet.
You can change the Webmin port by editing in /etc/webmin/miniserv.conf and change the port number to any port you like, for example 81, or 443.
sudo nano -w /etc/webmin/miniserv.conf
Find the following line 1 and change:
How to change port default port to an uncommon port. Port 10000 is heavily targeted by hackers to gain access to Virtualmin server. Of course they can’t get in without the correct password, but sometimes some of them gets through. So it’s best to prepare for the worst.
We need to tell Webmin to stop using TLS/SSL, as Apache will provide that for us going forward.
Change the 1 to a 0 This will tell Webmin to stop using SSL.
Now, you need to restart Webmin.
sudo /etc/init.d/webmin restart
Following messages will appear after running that command.
(base) rck@redhat:~$ sudo /etc/init.d/webmin restart
Stopping Webmin server in /usr/share/webmin
Starting Webmin server in /usr/share/webmin
After a fresh restart the Webmin server should be running again.
Using Webmin IDE
You can use other alternatives also. If you have GUI then.
- Login to Webmin panel.
- Expand Webmin and select Webmin configuration
- Click in Port and addresses.
- Change port 10000 “listen on port “, and Save.
Thats it. You can access your server other port.