Open
Description
Important notices
- I have read the contributing guide lines at https://github.com/opnsense/core/blob/master/CONTRIBUTING.md
- I am convinced that my issue is new after having checked both open and closed issues at https://github.com/opnsense/core/issues?q=is%3Aissue
Is your feature request related to a problem? Please describe.
When running multiple OPNSense instances on the same hostname (e.g. SSH tunnel port forwards), you can only be logged into only one OPNSense at a time due to PHP using the default PHPSESSID
session name.
Describe the solution you like
As a workaround, I have added the following to the last line of src/opnsense/service/templates/OPNsense/WebGui/php.ini
:
session.name={{system.hostname}}
Describe alternatives you considered
- Obviously, using different hostnames or different browsers, however this adds unnecessary overhead for simple use-cases.
- Set the session name in the web UI, however that was beyond the scope of my needs.
Additional context
Steps to reproduce:
- Have multiple instances of OPNSense running
- SSH into two or more instances with port forward tunneling enabled (
ssh -L 8443:127.0.0.1:443 ..
) - Connect to all instances in the same web browser
- Login to multiple instances and attempt to navigate around all of them
- The last logged-in instance is the only one you will be able to continue using
Metadata
Metadata
Assignees
Labels
No labels