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

    Transfer my config to new device

    Scheduled Pinned Locked Moved OpenVPN
    3 Posts 1 Posters 383 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.
    • J
      JonH
      last edited by

      I had a SG-2440. I now have a SG-5100 and am attempting to replicate some of my old config on the 5100.
      The Restore function has a setting for openVPN but that restore doesn't restore the certificates. So I tried export from 2440 & import to 5100 but that isn't working for me. The server does not start.

      Next I tried running through the wizard and importing the certs/keys at the appropriate place. That fails with something like the port is in use. The port I'm using is 443-udp (because I figure that port is generally available on locked down systems).

      How can I resolve this roadblock?

      1 Reply Last reply Reply Quote 0
      • J
        JonH
        last edited by

        Updating my own post, regarding the openVPN server not starting. I forgot about the log. So the log says "Insufficient key material or header text not found in file '/var/etc/openvpn/server1.tls-auth' (0/128/256 bytes found/min/max)".

        The TLS key I am using is imported from my setup in SG-2440. I checked the above location and confirm they are the same, although the filename on the 2440 is server2.tls-auth. The openVPN server will not start.

        Any idea about what I'm missing as indicated by the error in the log?

        My last resort is the create new certs/keys but I would rather find a fix for this problem I have.

        1 Reply Last reply Reply Quote 0
        • J
          JonH
          last edited by

          Finally, I found it. The server1.tls-auth file needed crlf on each line. When I copied that file it produced a single string of characters that was not formatted properly. After adding a crlf on each line and re-saving the openVPN server, returning to services found the openVPN server running.

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