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

Two gateways and policy routing

Scheduled Pinned Locked Moved Routing and Multi WAN
4 Posts 2 Posters 541 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.
  • C
    christian.loth
    last edited by Feb 4, 2022, 2:10 PM

    Hello everyone,

    I have the following problem: I have configured the opt1 Interface of my Netgate 3100 as a WAN interface (added gateway in the interface configuration). It has an IP of 10.150.0.2 and shares the 10.150.0.0/16 network with two other hosts, which both are gateways to different ISPs.

    One of these gateways is also the default gateway that's configured for the Netgate (10.150.0.1).

    Now, I want to use a policy routing rule to route all traffic from a special IP to the second gateway (10.150.0.3) by setting the gateway in the advanced section. The rule is also being used , as the counters show.

    However, even though the gateway 10.150.0.3 is configured, traffic passing the rule is still using the default gateway 10.150.0.1.

    The big question here: what am I doing wrong?

    Best regards,
    Christian Loth

    V 1 Reply Last reply Feb 4, 2022, 2:45 PM Reply Quote 0
    • V
      viragomann @christian.loth
      last edited by Feb 4, 2022, 2:45 PM

      @christian-loth said in Two gateways and policy routing:

      It has an IP of 10.150.0.2 and shares the 10.150.0.0/16 network with two other hosts

      So you have set up a /16 network for three hosts?

      However, even though the gateway 10.150.0.3 is configured, traffic passing the rule is still using the default gateway 10.150.0.1.

      Is the rule on the top of the rule set so the is applied before others?
      Did you consider to delete states after activating the rule?

      Post the rule set please.

      C 1 Reply Last reply Feb 4, 2022, 2:55 PM Reply Quote 0
      • C
        christian.loth @viragomann
        last edited by Feb 4, 2022, 2:55 PM

        Hello,

        @viragomann said in Two gateways and policy routing:

        @christian-loth said in Two gateways and policy routing:

        It has an IP of 10.150.0.2 and shares the 10.150.0.0/16 network with two other hosts

        So you have set up a /16 network for three hosts?

        Yes. I mean it's a private net, got enough of those. :-)
        It's not a technical reason, just following a scheme of using private nets that are part of 10/8.

        However, even though the gateway 10.150.0.3 is configured, traffic passing the rule is still using the default gateway 10.150.0.1.

        Is the rule on the top of the rule set so the is applied before others?

        Yes

        Did you consider to delete states after activating the rule?

        No, will do so next time.

        Post the rule set please.

        Need to make sure to get permission for that, so I probably reply with a rule set on monday.

        Best regards,
        Christian Loth

        V 1 Reply Last reply Feb 4, 2022, 3:03 PM Reply Quote 0
        • V
          viragomann @christian.loth
          last edited by Feb 4, 2022, 3:03 PM

          @christian-loth said in Two gateways and policy routing:

          Yes. I mean it's a private net, got enough of those. :-)
          It's not a technical reason, just following a scheme of using private nets that are part of 10/8.

          Better to use rather small subnets to prevent routing issues. For instance if you connect to a remote network using a site to site VPN.

          1 Reply Last reply Reply Quote 0
          3 out of 4
          • First post
            3/4
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
            This community forum collects and processes your personal information.
            consent.not_received