Navigation

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

    DHCP push routes

    DHCP and DNS
    2
    2
    1756
    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

        Products

        • Platform Overview
        • TNSR
        • pfSense
        • Appliances

        Services

        • Training
        • Professional Services

        Support

        • Subscription Plans
        • Contact Support
        • Product Lifecycle
        • Documentation

        News

        • Media Coverage
        • Press
        • Events

        Resources

        • Blog
        • FAQ
        • Find a Partner
        • Resource Library
        • Security Information

        Company

        • About Us
        • Careers
        • Partners
        • Contact Us
        • Legal
        Our Mission

        We provide leading-edge network security at a fair price - regardless of organizational size or network sophistication. We believe that an open-source security model offers disruptive pricing along with the agility required to quickly address emerging threats.

        Subscribe to our Newsletter

        Product information, software announcements, and special offers. See our newsletter archive to sign up for future newsletters and to read past announcements.

        © 2021 Rubicon Communications, LLC | Privacy Policy