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

    Restrict traffic to particular gateway

    Scheduled Pinned Locked Moved Routing and Multi WAN
    2 Posts 1 Posters 1.5k 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.
    • A Offline
      Azannah
      last edited by

      I'd like to restrict traffic from one of my subnets to a particular dynamic gateway (assigned via DHCP). To do this, I've set up a basic policy route:

      All traffic (any protocol) entering interface X from subnet N (the only subnet on interface X) to anywhere routs through gateway GW.

      When gateway GW is up, traffic routs as expected. However, when the GW goes down the traffic redirects to the default route. If GW goes down, I don't want any traffic from subnet N to get routed out of my network. How do I prevent traffic from sneaking out through the default route?

      Thanks!

      Matt

      1 Reply Last reply Reply Quote 0
      • A Offline
        Azannah
        last edited by

        Does the fact that the policy specified gateway has a dynamic address have anything to do with the traffic being redirected over default route when the gateway goes down? If the gateway specified by the policy route had a static address, would I be experiencing the same issue?

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