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

    Advanced config > Custom options > LINE FEED not saved.

    Scheduled Pinned Locked Moved OpenVPN
    2 Posts 1 Posters 301 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.
    • S
      SandMouse
      last edited by SandMouse

      Crew, I've added two "push route" options in my OpenVPN config and clicked "save" Please see below.

      push "route 172.31.4.0 255.255.255.0"
      push "route 172.31.40.0 255.255.255.0"
      

      The OpenVPN service starts.
      Clients can connect.
      Routes work.
      Nice.

      When re-visiting the config page I encounter the following:

      push "route 172.31.4.0 255.255.255.0"push "route 172.31.40.0 255.255.255.0"
      

      Obviously, the LINE FEED is missing.

      And at several moments the OpenVPN service stops and complains about the config:

      Options error: Unrecognized option or missing or extra parameter(s) in /var/etc/openvpn/server1/config.ovpn:48: push (2.6.4) 
      

      Which makes sense because the config does not meet syntax requirement.

      Why is the GUI not saving the config correctly to /var/etc/openvpn/server1/config.ovpn

      2.7.0-RELEASE (amd64)
      built on Wed Jun 28 03:53:34 UTC 2023
      FreeBSD 14.0-CURRENT

      Vendor: VMware, Inc.
      Version: VMW71.00V.21100432.B64.2301110304
      Release Date: Wed Jan 11 2023

      [edit] replaced images for <code>, due to quality issues with the images [/edit]

      S 1 Reply Last reply Reply Quote 0
      • S
        SandMouse @SandMouse
        last edited by

        The solution to this issue is: read the fine print.

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

        So I made the following changes:

        push "route 172.31.4.0 255.255.255.0";
        push "route 172.31.40.0 255.255.255.0"
        

        Mind the semicolon at the end of the first line.

        Thank you for letting me use this forum as a Rubber Duck

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