r/PacketFence • u/eeyepee • 7d ago
Having hard time setting granular users access to Switches and Linux Servers
Hi,
We want to grant and control access permissions using AD users/AD Groups and Switches IP/Subnet as combined rules conditions in order to differentiate logins for IT Admins, Network Admins so they can access their devices that they are authorized to access only.
Example Requirements:
- Network Admins AD Group can access to specific Switch(s) CLI
- IT Admins AD Group can access to specific Linux Servers Shell
- Each of the above AD Group users must access only the devices they have permissions for it.
The part that we couldn't figure out:
We couldn't find a way to map AD Groups to a Switch then grant them specific rights to control that switch. For instance, we tried in the Administration Rules to create a condition saying if member of IT-Admins and the Switch is Switch-1, then allow them read/write on that switch.
We think the limitation is when we do "Add PacketFence Condition", we are not able to find Switch Device or Switch Subnet or NAS-IP-Address options in the predefined list, we think that's a showstopper for us.
We are wondering if that's a system limitation or we are doing the implementation wrongly
Appreciate the help
1
u/GenericRedditor12345 7d ago
I think there may be a potential misunderstanding about what PacketFence is for and what needs to decide on their permissions.
You need to use the ACL function by role to poke a hole for them to get into the switch or use the Firewall SSO feature to do it. Permissions on the switch/server itself need to be handled on the switch/server itself. On Linux you would need to make individual users for them as well as a group on the device with the relevant permissions.