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

    Block rules for CP account users but not for voucher users

    Scheduled Pinned Locked Moved Firewalling
    1 Posts 1 Posters 731 Views
    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.
    • G
      gbreadman
      last edited by

      @gbreadman:

      Oh. Looks like someone's not paying attention.. lol. Thanks!!

      Edit: I am trying to experiment on alias table creation (will later move this topic).. Here's the situation:

      I managed to set up a captive portal with user authentication (non-RADIUS) and voucher support.
      Since this is a company network, we need to be able to separate employees from guests; Account logins be considered as employees, while voucher users are guests.

      Now, to prevent the employees from surfing the net for their personal interests, we need to block them on the firewall..
      I have successfully made block rules but so far, they are only good for blocking EVERYONE; The guests are prohibited from surfing the net as well.
      How do we solve this without using VLANs or multiple Captive Portals?
      I came upon the solution of adding account logins into an alias and make a block rule with this alias as the Source. (n00b question: Is what I'm saying correct? lol)

      IF I understood correctly, it is possible to use pfBlockerNG IPv4 List feature to load a local file containing IP or MAC addresses and refresh the list from time to time.
      We can then use this alias to apply rules for the addresses on the list.
      We can add their addresses on the list by configuring the captive portal to write them on the local file for every login.
      (Yet another n00b question: Am I right so far? aha)

      Now, where I need the most help with is how to be able to REMOVE addresses from the list once the users disconnect.

      OR if there is a better approach on this situation (coz really, I'm super new and I can only exercise what I know so far) xD

      Or if there is already an existing auto-updated file which separates account-user addresses from the voucher-user addresses

      1 Reply Last reply
      Reply Quote 0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      • First post
        Last post
      Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
      Privacy Policy · Cookie Policy