we had a conversation about the theme in the title of this post in the past.
There was no real solution, but if we entered the 2FA code and opened a new browser window we could log in to dash.
in a nutshell:
-the webmin dash is accessed via Cloudflare tunnel, the miniserv listening on localhost
-these were the original topics for this question
2. no - there is no rproxy only the CF tunnel, which is the proxy itself
3. access webmin via Cloudflare tunnel - running cloudflared.service on the server which connects the server to the CF edge via a tunnel
so this setting used to work fine, I had to open two browser windows because the first one wouldnât go to the login screen, but now it doesnât work either
Ahh! I see now! Itâs a completely different type of tunnel! I have never used it myself, so I cannot provide you with an exact solution, until I have a closer look at it.
Itâs also not clear what the actual error is. I donât think you shared any errors from the browserâs console?
Anyway, if you go to âWebmin ⟠Webmin Configuration: IP Access Controlâ and try different âTrust levels for proxy headers,â does it change anything?
If not, what exact error message do you see in the browserâs console?
For Cloudflare Tunnel to properly work with Webmin, ensure that:
Your Webmin config /etc/webmin/config has to have referers=your.domain.tld line
Your Cloudflare Webmin config file on your Linux box should have httpHostHeader: your.domain.tld set under originRequest:. The whole config that works for me is:
Itâs just adding so many more variables, and so many potential points of failure and vector of attack. I dunno. I just like fewer moving parts, where I can understand and read the source for all of them.
I understand that you think so, but CF is just one thingâŠthere is much worse than them -especially because of the recent changes in the US, so we will probably move as well, - may be to OVH or wherever, - just EU company should be at the end of the stopâŠ
(note we have been using CFs infrastructure for 15 years - so this move will not be just two days)
We operate nearly 60 radio stations in Central Europe and everything is connected by CF Zero trust, we donât use VPN solutions, which is why we are tied to CF for the time beingâŠ
Our web infrastructure is only a small part of this.
âcloudflaredâ is not as nasty as it soundsâŠ
Anyway, I appreciate your opinion, even if I donât agree with it on all points.
I couldnât get it to work on our existing CF tunnels, we have remote mgmt. tunnels and in that state there is no local âcredentials-fileâ , -but I put the suggested config in the remote config, but it still didnât work.
So I created a test server on EC2 with HAProxy in front of everything⊠-exactly the same behaviour.
At first I thought it was the tunnelâs specialty, but HAProxy also causes thisâŠ
I made a video of this test system and here are the Webmin specific confs:
(I donât hide sensitive data, because itâs just a test environment and in a few days it wonât be)
Iâm not sure whatâs not working on your end, but we documented it in the Webmin FAQ. When @Jamie updates webmin.com, it will go live. In the meantime, you can use those instructions from the link above, and Iâm pretty sure they will work for you.
What doesnât work (on my site), as you can see in the video, is that you canât go directly from the Webmin login page to the Webmin main page, even after providing correct login data (user/pass)
I need to open a new browser window, - where will be taken to the Webmin main page without identification.
In the video you can see that this is not a CF tunnel now, but a Webmin / JupyterHUB behind HAProxy and the HAProxy monitor page also.
From the HAProxy monitor and JupyterHUB login pages I can get to the app main pages without any problems, but with Webmin it doesnât happen, the process just stops on the login page until I open it in a new browser window.
The JupyterHUB uses Tornado Webserver, the HAProxy node has its own monitor page with built-in web server.
So this shows me that it is Webmin Miniserver specific, as two other webservers handle this well.
As described above, 2FA cannot be used on Webmin login due to lack of redirection.
I just wanted to clarify this for the future (or for others), because itâs not that inconvenient for us anyway, 2FA is turned off and Webmin is never available from the public internet, so itâs not an issue for us anymore.
Apart from me, only one other user has had this problem in the last 2 years, so itâs not really a relevant issue.
No, it doesnât seem to work for me. Can you upload a video file somewhere it can be streamed directly without zipping it and needing to download it? Besides, thereâs no point in compressing an already compressed video file.