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

    Making a Rule for WAN access ONLY

    Scheduled Pinned Locked Moved Firewalling
    2 Posts 2 Posters 2.0k 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.
    • F
      Frewald
      last edited by

      Hi

      I would like to have a rule that allows OPT1->WAN traffic, but doesn't allow OPT1->LAN or OPT1->OPT2.

      So a rule that would be something like
      Proto: Any
      Source: OPT1 subnet
      port: Any
      Destination: WAN only
      Port: Any
      –-
      Problem being that in 'destination' I can't select anything that would give me WAN "subnet"

      Right know i solve it by having rules to block traffic from OPT1 to my other internal nets, and then a ALLOW from OPT1 to anything.
      But this is not very elegant IMO

      Is this the only way to do it, or am i missing something?  :)

      Best regards,
      Frewald

      1 Reply Last reply Reply Quote 0
      • jahonixJ
        jahonix
        last edited by

        You're missing the aliases.

        Create one that contains all your undesirted subnets and make an "allow all BUT alias" rule for your OPT1 IF.

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