Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    pfSense rules bind to Active Directory users

    Scheduled Pinned Locked Moved Off-Topic & Non-Support Discussion
    1 Posts 1 Posters 569 Views 2 Watching
    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.
    • V Offline
      vladgames228
      last edited by

      Hi guys,

      Not so long ago, I needed a feature to set rules for AD users. The captive portal wouldn't work for me because it requires too much authorization. I wanted an SSO-like approach, so I could just log into any PC, and pfSense would give me the right access. Then, when another user logs in, the access would adjust for them. I couldn't find this in any form, so I wrote this script:
      https://github.com/vladgames228/ad_pfsense_access

      Basically, it temporarily adds the PC where I logged in into a pfSense alias, and for this alias, I configure the rules.

      For me, this is a super useful basic feature, and I can't understand whether it's so specific that no one needs it except me, or if I'm being dumb and there is a different, right approach for this task. I want to continue working on this tool. now I need an API for updating the config, so before I begin doing this, I wanted to ask you: what do you think? Was there something similar? I don't want to reinvent the wheel.

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
      Privacy Policy · Cookie Policy