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

    OpenVPN - Push routes - Service stops

    Scheduled Pinned Locked Moved General pfSense Questions
    3 Posts 2 Posters 343 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.
    • C
      ConnyLindquist
      last edited by

      Hi. Just want to ask a general question seeing how I cant find anything when I search on it. I cant say when this started to happen but at least since version 2.4.x
      In the example below we use 2.4.3

      When I add more than one line of push routes in OpenVPN server settings I get this odd behaviour when I press save a second time. The service stops.
      When I write in the push route lines the first time I put them in one line each in the GUI like this:

      push "route 10.xx.xx.0 255.255.255.0"
      push "route 10.xx.xx.0 255.255.255.0"
      push "route 10.xx.xx.0 255.255.255.0"

      After I pressed save button the service works fine and my routes as well (over ipsec tunnels) but if I go back later and do another change, say adding a new DNS, and press save again the lines looks like this in the GUI:

      push "route 10.10.29.0 255.255.255.0"push "route 10.10.33.0 255.255.255.0"push "route 10.10.53.0 255.255.255.0"

      They are all in one line after another and the OpenVPN service refuses to start.

      All I have to do is change them back in seperate lines like above and save again and it works again.
      Its a bit tedious though as we often experiment with stuff or have to add more routes and stuff and if we forget this we are dead in the water if we cant logon via VPN.

      If anyone seen this or know how to fix it please feel free to write a reply.

      1 Reply Last reply Reply Quote 0
      • H
        heper
        last edited by

        if you read the info below the field you will find this:

        Enter any additional options to add to the OpenVPN server configuration here, separated by semicolon.

        so add a ; at the end of each line

        1 Reply Last reply Reply Quote 0
        • C
          ConnyLindquist
          last edited by

          @heper:

          if you read the info below the field you will find this:

          Enter any additional options to add to the OpenVPN server configuration here, separated by semicolon.

          so add a ; at the end of each line

          Now… why didnt I see that? Thank you.

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