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

    Very quick openvpn/pfsense question

    Scheduled Pinned Locked Moved OpenVPN
    3 Posts 2 Posters 2.8k 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.
    • D
      Diceman
      last edited by

      i have a site to site vpn with pfsense as a "client" and a freebsd6 machine as a "server". is there a way to have pfsense as the client push a route to the freebsd server for a local lan that is behind pfsense? im running into an issue where i static the route on the freebsd machine but if i restart the openvpn server or the tunnel drops, the route telling freebsd6 how to get to the lan behind pfsense goes away and doesnt come back thus requiring manual intervention.

      thanks!

      1 Reply Last reply Reply Quote 0
      • GruensFroeschliG
        GruensFroeschli
        last edited by

        Take a look at the openVPN-MAN-pages. Look for the "route" command.
        You can add on the server config an entry that when the tunnel comes up automatically adds the necessary route to the servers routingtable.
        When the tunnel drops openVPN automatically remoces the entries and adds them again if the tunnel comes back up.
        You cannot do this on the client side but on the server side.

        We do what we must, because we can.

        Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

        1 Reply Last reply Reply Quote 0
        • D
          Diceman
          last edited by

          @GruensFroeschli:

          Take a look at the openVPN-MAN-pages. Look for the "route" command.
          You can add on the server config an entry that when the tunnel comes up automatically adds the necessary route to the servers routingtable.
          When the tunnel drops openVPN automatically remoces the entries and adds them again if the tunnel comes back up.
          You cannot do this on the client side but on the server side.

          thanks very much. i knew there had to be something to do this.

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