Aloha smart people,
I have configured a listener for WebAdmin, set Secure to Yes, listening on port 7080, and listening only to localhost IP [::1]. I could add an additional listener for 127.0.0.1, but it doesn't affect this bug report. WebAdmin is therefore impossible to access directly from the Internet, which is the whole point. To access WebAdmin, I ssh to the server from my workstation in this way:
ssh -L 7080:localhost:7080 nonrootuser@example.com
WebAdmin is then accessible from my workstation by browsing to https://localhost:7080 through the magic of ssh tunneling. BTW, I highly recommend this access control. Hint: PHPAdmin can be secured in a similar way.
Problem/Bug: Because the only network traffic uses localhost on the server and on the workstation, and through the secure ssh tunnel, using HTTPS is superfluous. Therefore I experimented with using HTTP instead by setting Secure to No. Just because I want to learn all about OLS. Unfortunately, attempts to log in to WebAdmin then fail and simply respond with the login page again. I'm then locked out until I use shell access to edit /usr/local/lsws/admin/conf/admin_config/conf.
Caveat: I _know_ that this is a very edgy edge case, but I didn't see it here in the forums nor on GitHub Issues, so thought it should be reported anyhow.
PS - I don't know if that last step is truly sufficient. I haven't looked into what admin_config.conf0 and admin_config.conf0,v.
Mahalo,
Steve
I have configured a listener for WebAdmin, set Secure to Yes, listening on port 7080, and listening only to localhost IP [::1]. I could add an additional listener for 127.0.0.1, but it doesn't affect this bug report. WebAdmin is therefore impossible to access directly from the Internet, which is the whole point. To access WebAdmin, I ssh to the server from my workstation in this way:
ssh -L 7080:localhost:7080 nonrootuser@example.com
WebAdmin is then accessible from my workstation by browsing to https://localhost:7080 through the magic of ssh tunneling. BTW, I highly recommend this access control. Hint: PHPAdmin can be secured in a similar way.
Problem/Bug: Because the only network traffic uses localhost on the server and on the workstation, and through the secure ssh tunnel, using HTTPS is superfluous. Therefore I experimented with using HTTP instead by setting Secure to No. Just because I want to learn all about OLS. Unfortunately, attempts to log in to WebAdmin then fail and simply respond with the login page again. I'm then locked out until I use shell access to edit /usr/local/lsws/admin/conf/admin_config/conf.
Caveat: I _know_ that this is a very edgy edge case, but I didn't see it here in the forums nor on GitHub Issues, so thought it should be reported anyhow.
PS - I don't know if that last step is truly sufficient. I haven't looked into what admin_config.conf0 and admin_config.conf0,v.
Mahalo,
Steve