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

    Linux routing table help

    Scheduled Pinned Locked Moved Routing and Multi WAN
    2 Posts 2 Posters 2.4k 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.
    • J
      jonnytabpni
      last edited by

      Hey folks,

      This question isn't really too much to do with pfsense (However I run run 2 pfsense boxes!)

      I'm trying to add a route in a linux machine (which is using busybox).

      i wish to add a route to a 10.87.96.0/24 network.

      The hops should be as follows:

      10.87.1.10 (localhost)
      10.87.1.1 (default gateway which has a IPSEC tunnel)
      10.87.0.1 (Other end of IPSEC tunnel)
      10.87.0.29 (A router which knows how to get to my required network_
      10.87.96.0/24 (My required network I wish to be able to reach)

      My routing table looks like this:
      Destination    Gateway        Genmask        Flags Metric Ref    Use Iface
      10.87.1.0      *              255.255.255.0  U    0      0        0 eth0
      default        10.87.1.1      0.0.0.0        UG    0      0        0 eth0

      However every time I try and:
      route add -net 10.87.96.0 netmask 255.255.255.0 gw 10.87.0.1

      I get route:
      SIOC[ADD|DEL]RT: Network is unreachable

      Any ideas?

      Thanks

      1 Reply Last reply Reply Quote 0
      • dotdashD
        dotdash
        last edited by

        The next hop needs gateway to be reachable from one of your local interfaces. You would need to configure your IPSec tunnel so that it included the network you needed to reach.

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