-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature request] Easily open an access to Luci from the Internet #7137
Comments
LuCI can easily generate entire rules as needed, there's no need for preconfigured one. |
Sure, it was easier to implement. Having a commented rule, we can just enable it by the So the Luci can add the whole rule, but why do that if we know that by default we already have it? Cons that I see are:
I expect that for 99% of users this will work as it is. Anyway, it's not a problem to add full train of |
Over the years I came to the conclusion that it is futile trying to provide higher level configurations in the ui while also playing nice with whatever configuration happen to be present in the system. There is just too much variation and system level differences to cater to and you inevitably will encounter configurations that do not match the expectations. If you want rich, simple and robust features you will have to assume a certain system state and/or forcibly (over)write configurations to reach a defined desired state. In other words, such functionality should be provided in the form of task oriented wizards which query the few actually needed variables and then render out a complete set of configs or interdependent settings to set up the desired feature/task. If you do want to provide such functionality to non-gui users as well, then split the wizard logic into a series of cli scripts which are simply called from the ui. Assuming a hypothetical cli tool "task", you'd then have commands like |
Several weeks ago, I have done a comment here: Linked to: |
Today it's not so easy for a regular user to get access to OpenWrt from the internet. Usage scenarios:
They all may have different requirements and policies.
For example, if you have a Transmission UI on a separate port, then it should be generally ok to allow the WAN access.
But the WAN access to Luci is potentially more dangerous.
A user may want to add some restrictions like:
Some router manufactures already provide a GUI wizard to enable access from internet:
From the LUCI perspective, the UI should help as much as it possible to avoid misconfiguration and security disasters.
Enabling access should be easy to do to avoid mistakes at the same time a user should fully understand what are risks and how to mitigate them.
For example, opening of SSH port for WAN should be done at once click. But we should ask for a confirmation and try to force security enhancements:
The firewall rule to allow the SSH access from WAN must be already preinstalled but disabled by default.
This will also mitigate the mistakes of manual adding.
When allowing access to LUCI we should require HTTPS and propose to configure ACME and DDNS.
For the Self-hosting needs we'll need for some reverse proxy or use a separate port.
Many things to unpack here, but for now my proposition is to enhance documentation first, then add UCI configs disabled by default and then try to implement UI.
We already have a page on a Wiki Accessing LuCI web interface securely which is mainly about opposite.
I added a new section to it about how to open access, that should be a proper place given that same options are changed.
Please extend it from your experience.
The task is kind of epic, and I'll try to add progress in the comments.
Please let me know your thoughts and if you can contribute.
The text was updated successfully, but these errors were encountered: