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

    DHCP push routes

    Scheduled Pinned Locked Moved DHCP and DNS
    2 Posts 2 Posters 3.1k 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.
    • T
      tilloo3
      last edited by

      Hello everyone,

      iam running a dhcp server on my pfsense for my local net and an openvpn server.

      LAN NET: 192.168.0.0/16
      VPN NET: 10.0.0.0/24

      My Problem is now that my linux hosts have multiple interfaces and i am no able to ping the vpn gateway unless i manually set a static route on each host

      ETH0 -> WAN (No Pfsense)
      ETH1 -> LAN (Pfsense DHCP)

      Can i push the routes via dhcp like ip route add 10.0.0.0/24 via 192.168.0.1 to my linux hosts so i can reach them via vpn ?

      I tried to add the Gateway (192.168.0.1) in DHCP Config but it wont configure it on the linux machines.
      On the Windows machines it works because they have only the LAN Interface configured.

      Thanks in advance

      1 Reply Last reply Reply Quote 0
      • G
        gjaltemba
        last edited by

        push the routes via dhcp like ip route add 10.0.0.0/24 via 192.168.0.1

        set Additional BOOTP/DHCP Options in DHCP Server

        number 121
        type string
        value 18:0a:00:00:c0:a8:00:01

        Tested with Tumbleweed dhclient

        https://forum.pfsense.org/index.php?topic=94570.0

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