Make firewall rules based on user.
-
Is possible make rules based on user? For example: A rule block access for user alves.caio for destination 10.10.10.10
-
@alvescaio said in Make firewall rules based on user.:
user alves.caio
Sure.
A firewall isn't a text" or "host name" aware.
A firewall needs ports, protocols, and IP addresses.
MAC addresses if you have to.So, your user has an IPv4. Use the IPv4 in a rule.
You want to be sure that that user, from now on, gets always the same IP, and you can make that happen : create a "static MAC DHCP lease" for it.
-
@Gertjan
Thanks, friend.I thought that Pfsense, like Fortigate and Palo Alto, was capable of creating rules based on users, so how can I do this mac and dhcp connection?
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.