You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Kage
linked a pull request
Feb 21, 2025
that will
close
this issue
Important notices
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
Additional context
Steps to reproduce:
ssh -L 8443:127.0.0.1:443 ..
)The text was updated successfully, but these errors were encountered: