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

    Using Action: Match for Gateway

    Scheduled Pinned Locked Moved Routing and Multi WAN
    3 Posts 2 Posters 239 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.
    • artooroA
      artooro
      last edited by

      I would like to be able to assign a gateway without specifying whether the traffic is passed or blocked.

      So I tried creating a floating rule with the action of Match and it appears that doing so doesn't even create the "route-to" part. To confirm I ran the command pfctl -s rules and the gateway (route-to) setting doesn't even appear when using Match.

      Is this a bug in pfSense, or is there truly no way to do what I'm attempting here.

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

        The match action is primarily for traffic shaping/queuing and won't do what you want.

        You can only use a gateway on pass rules, so it really only makes sense to assign a gateway when allowing traffic into the firewall in nearly all cases.

        What is it that you believe will be easier to accomplish using this kind of technique?

        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 1
        • artooroA
          artooro
          last edited by

          Ok thanks for the clarification. I just wanted to keep things simpler, and only have to set/manage that rule in one place instead of for each pass rule.

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