-
Notifications
You must be signed in to change notification settings - Fork 813
Using OPNsense as jumphost for non-admin users no longer works #8721
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
Comments
Internal and external audits always complained about non-admin users allowing shell access Even if this is a configuration mistake and is obviously never set by default. Only admins are allowed unix users including shell access therefore. |
Even if with shell This effectively means only admins can use OPNsense as a jumphost, which might push people to make everyone an admin, which I think is way worse. |
If the user doesn’t have a shell it makes no sense to offer the user to the Unix system. I think you are arguing from your use case perspective, which is fine. The bigger picture is clearer: you own making your users admins, or find a better way to your original use case. |
It make perfect sense, as you can still use the ssh daemon for jumping to a host on the internal network - no shell needed. But if this is the stance of the project, then the option in "System->Settings->Administration->Secure shell->Login group" should be removed as it makes no sense to add an additional login group as wheel can't be removed and the additional is not added to any user, not even the admins. |
Definitely remove it - it is confusing to have there - It suggests that the behaviour I'm looking for is still supported. I'll spin up a separate jump host for each OPNsense install I have, as I don't want everyone with jump host privil 8A1C eges to be a firewall admin. |
Important notices
Before you add a new report, we ask you kindly to acknowledge the following:
Describe the bug
Non-admin users with
/usr/sbin/nologin
as shell can no longer use OPNsense as ssh jumphost, as group memberships are no longer synced to the unix groups.Admin users are always in the
wheel
group so they are can still use OPNsense as ssh jumphost.To Reproduce
ssh
wheel, ssh
in the dropdown/usr/sbin/nologin
as shellssh
groupid <non-admin-user>
, notice user is not in thessh
groupsudo pw group mod ssh -m <non-admin-user>
, try ssh to a host on the internal network, notice it worksExpected behavior
When adding users to a group in the UI it should be mirrored in the unix groups, so tools like ssh can pickup on it.
Describe alternatives you considered
Can't think of any alternatives, only work-arounds or setting up a secondary jumphost on the internal network and port forwarding to it.
Environment
OPNsense 25.1.7_4-amd64
FreeBSD 14.2-RELEASE-p3
OpenSSL 3.0.16
The text was updated successfully, but these errors were encountered: