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

    Firewall rule for Hotspot network

    Scheduled Pinned Locked Moved Firewalling
    2 Posts 2 Posters 1.4k 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.
    • S Offline
      slu
      last edited by

      I have here three networks (LAN, WLAN, HOTSPOT) and three internet
      connections (WAN1, WAN2, WAN3).

      On the HOTSPOT network the captive portal runs.

      Now, I would like to have: no connection from the HOTSPOT network to
      any other local/VPN network and all internet connections over WAN3.

      So I add a firewall rule with "!destination LAN WLAN and VPN networks"
      and gateway of WAN3.

      It works, but is there a better way to handle that? As I must
      add every new local/VPN network to the rule.

      pfSense Gold subscription

      1 Reply Last reply Reply Quote 0
      • jimpJ Offline
        jimp Rebel Alliance Developer Netgate
        last edited by

        Make an alias that contains all your local networks

        Then, on the hotspot interface rules:
        Block from Hotspot to Local_Nets
        Pass from Hotspot to *, gateway WAN3

        You could just do:

        Pass from Hotspot to !Local_Nets, gateway WAN3

        However I would recommend against that from a readability standpoint. Unless you have thousands of rules and are looking to simplify the ruleset, the readability/understandability of the two separate block/pass rules is much higher.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.