PadreD727's picture

I would like to change the port of Webmin(Port 12321) to a port of  my choice but I can not find where the port settings are located.  When I go to look at the Webmin ports in the Webmin settings or config files it says its set to port 10000.  Why do the settings show a different port number and how do I change it?

Forum: 
PadreD727's picture

Ok I found the answer in the post cited below.  It was very deep in my google searches for some reason and is nowhere in the TKL documentation.  I hope this post can further help someone else.

 

So you just need to reconfigure and restart stunnel. Stunnel config is in /etc/stunnel/stunnel.conf

Here's the relevant config:

# grep shellinabox -A2 /etc/stunnel/stunnel.conf             
[shellinabox]
accept  = 12320
connect = 127.0.0.1:12319
# grep webmin -A2 /etc/stunnel/stunnel.conf
[webmin]
accept  = 12321
connect = 127.0.0.1:10000

So a simple sed line should do the trick:

sed -i "s|12320|8008|; s|12321|8080|" /etc/stunnel/stunnel.conf
service stunnel4 restart

And you should be good to go... :)

Or alterterativly you can edit the /etc/stunnel/stunnel.conf with Webmin Filemin then restart your system.

https://www.turnkeylinux.org/forum/support/sat-20170304-1446/changing-ports-webmin-and-shell-box-listens

Jeremy Davis's picture

Thanks for reposting that info. Hopefully that might help others find it in the future!

Unfortunately, documentation is not eally our strong suit. That can be quite common with open source projects, but that is certainly no excuse. We are trying to improve things, but it's a slow grind.

FWIW, there is a Webmin doc page and that is probably where that info should go! (Our docs are a wiki which any signed in user can edit, so please feel free).

PadreD727's picture

I totally understand and wasn't trying to complain.  What you all have put together is awesome and already saved me tons of time.  I will check out the docs pages and see what I can contribute.  Thx again!

Add new comment