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

    Routing problem with interfaces and gateways

    Scheduled Pinned Locked Moved Routing and Multi WAN
    1 Posts 1 Posters 1.2k 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.
    • B
      BenMcBen
      last edited by

      Hello tout le monde,    :)

      I come to you 'cause I've got a little routing problem that i would like to solve.

      Explanation :

      • I've got a PFSense with several interfaces aa.aa.aa.aa, bb.bb.bb.bb, cc.cc.cc.cc, etc…
      • I wish a computer in the aa.aa.aa.aa network had different gateways if it wants to reach any computers in the bb.bb.bb.bb or the cc.cc.cc.cc network for example.

      Actually, I'd like that a computer in the aa.aa.aa.aa network goes through the internet (thanks to the gateway dd.dd.dd.dd) to reach the bb.bb.bb.bb network. On the contrary, to go in the cc.cc.cc.cc network the next hop is the default gateway.

      –-> When I ping (or traceroute) machines in the bb.bb.bb.bb or cc.cc.cc.cc network, the used route and gateway is the ones I want (either internet, or default).
      –-> On the contrary when I directly ping the bb.bb.bb.bb or cc.cc.cc.cc  interfaces, none gateway is used and the traceroute command tell me that the bb.bb.bb.bb interface is directly accessible in only ONE hop.

      • Nevertheless I've added routing rules (System > Routing) or even i imposed the use of the desired gateway in the Firewall (Firewall > Rules)

      So, my question is : "Is it possible to force the use of a gateway even if the interface is immediatly acceded (by ping or other commands), in case of my computer doesn't reach it directly ?"

      In advance THANKS A LOT for your help.

      (PS : Excuse my poor english…  :P)

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