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

    Static Route to PPTP interface

    Scheduled Pinned Locked Moved Routing and Multi WAN
    2 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.
    • T
      technodeviant
      last edited by

      Hello,

      I have a problem when using a static route that points to PPTP server IP. Everything works fine until the PPTP connection is dropped, the static route gets removed. The static route does not come back when the pptp connection is restored. How can I get pfsense to automatically add (or persist) the static route I define?

      Route Lan IP: 192.168.13.1
      PPTP Server IP: 192.168.13.253
      Remote Address Range (PPTP Client):10.10.10.250
      Remote IP Subnet: 192.168.1.x

      Static Route I Define: 192.168.1.0/24 -> 192.168.13.253

      I have 192.168.13.253 configured under gateways.

      Feedback would be appreciated. Thank You.

      1 Reply Last reply Reply Quote 0
      • T
        technodeviant
        last edited by

        For those interested, I figured out a workaround to my issue…

        I added the following to the end of /usr/local/sbin/vpn-linkup...

        route add -net 192.168.1.0/24 192.168.13.253

        It's a hacky way to do it, but it adds the route when the pptp connection is established.

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