Forum archive
Binding Webmin to only the 127.0.0.1 address?
On my local machine I'm using SSH Local Forwarding to connect to administration applications on my server that are bound only to the local loopback address; they are not bound to any other addresses. I am also using an SSH Public Key file of 4096 bits. This way the only port I have to expose inside my network is the port I'm running SSH on.
This would all work out fine, except that I appear to be unable to do the same with my Webmin interface. I looked into the configuration for webmin, and externally it appears to run on port 12321 accessible via https; closer inspection of the configurations in /etc reveals that it is run over a stunnel ssl tunnel, and that it is actually running on port 10000 on the local loopback, using the mini-server config.
However, if I setup an SSH Local Forwarding tunnel on my machine to access webmin on port 10000 and try to login; I have two issues:
- I have to access it over plain HTTP
(Though this is encrypted with the tunnel...so it probably doesn't matter...it needn't be doubly encrypted)
- When I try to login, I get an error that my browser does not support cookies.
(My guesss is that since I'm using 127.0.0.1:XXXX to access it using SSH Local Forwarding, there is an issue because the expected domain is not supplied to the cookies)
I'm not sure if webmin is running from Apache or not, but it doesn't look like it is.
Is there any way to change webmin's configuration so that it is possible to hide webmin behind SSH; only binding it to the 127.0.0.1 address?
Thank you,
leeand00
I tried turning off Cookies authentication, but this did not fix the issue it still tries to run over HTTPS, otherwise I think it would work.