Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    User based Firewall rules

    General pfSense Questions
    6
    6
    5.8k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      swamiforlife
      last edited by

      I am new to PFsense and coming from a Sophos UTM background.
      In sophos and many other firewalls, there are ways to make firewall rules based on users, instead of MAC or IP addresses.

      So, is there a way to do this in Pfsense.
      I plan on creating the users locally inside Pfsense. and plan using the Pfsense  captive portal.

      So for example i would make rules that certain users are routed to a certain WAN link and other users through another.
      or block certain applications or protocols for certain users and leave open for certain users.
      Since the users in my environment dont have a dedicated desktop they are using different machines sometimes.

      Also is there a way to add web filtering policies based on users so that i can give some users access to certain websites and not to other users.
      same goes for applications.

      If an extra package is needed for this functionality then i am open to that.

      Thanks for the Help in advance.

      1 Reply Last reply Reply Quote 0
      • C
        Chrismallia
        last edited by

        You cant create rules by username

        1 Reply Last reply Reply Quote 0
        • M
          moikerz
          last edited by

          Sounds more like you need RADIUS authentication, pushing users onto different VLANs, and then applying filter rules to those VLANs.

          1 Reply Last reply Reply Quote 0
          • G
            gomorrahsend
            last edited by

            Im having the same problem. I have 2 WAN and 1 LAN(wifi access point), Im thinking of segregating a group of user coming from a Radius server to use a specific gateway. Something like GUESTS should be forced to use WAN2 then all the other AUTHUSER use a default WAN1 as gateway. Anyone know if this is possible? Thanks!

            1 Reply Last reply Reply Quote 0
            • B
              Boyz
              last edited by

              Iam also looking for this feature, is it possible now?

              1 Reply Last reply Reply Quote 0
              • johnpozJ
                johnpoz LAYER 8 Global Moderator
                last edited by

                This is possible via switch that does vlans and support dynamic vlans, or wifi again that supports via radius or 802.1x etc..

                This has always been possible - but really has zero to do with pfsense.. This is your switching/networking infrastructure to put your devices/users on different vlans… Once your devices are on different vlans then pfsense comes into play and can firewall that vlan from different vlan or allow network/vlan X to use wan 1  while vlan Y users wan 2.

                You don't need to be on different vlans to control which wan a connection goes out of - you can do this with policy routing based upon the IP all in the same vlan.. So IP 192.168.1.100 could go out wan 1, while 192.168.1.101 goes out wan 2, etc.

                Whatever method you want to use to make sure user X gets a specific IP works too - say radius auth handing user specific IP vs vlan ID, etc.  But all of that is your network and not pfsense.

                An intelligent man is sometimes forced to be drunk to spend time with his fools
                If you get confused: Listen to the Music Play
                Please don't Chat/PM me for help, unless mod related
                SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                1 Reply Last reply Reply Quote 0
                • bmeeksB bmeeks referenced this topic on
                • First post
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.