Navigation

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

    OpenVPN custom options - inline data support

    OpenVPN
    4
    5
    898
    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
      duren last edited by

      Does pfSense support inline data inside custom options?

      ie

      <ca>my cert data</ca>

      <tls-auth>my tls data</tls-auth>

      etc?

      .. because when I save it gets mangled

      ie if I have a line like this before it..

      cipher AES-256-CBC

      it will end up saving like this:

      cipher AES-256-CBC<ca>…</ca>

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

        dont use < or > because that'll screw up the config XML format (it shouldn't even be allowed in that field)

        1 Reply Last reply Reply Quote 0
        • Pippin
          Pippin last edited by

          because when I save it gets mangled

          Unix editor?

          1 Reply Last reply Reply Quote 0
          • jimp
            jimp Rebel Alliance Developer Netgate last edited by

            You can't use those inside of the fields in the pfSense GUI.

            Why do you need to? Just put the TLS key in the TLS key box in the GUI, import the CA and select it, and so on.

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

              Well I have a more fundamental issue.. my provider has different TLS keys for every server and so I'm trying to figure out how to have multiple remote statements with different TLS keys.

              I found that as of a recent OpenVPN version, there's a notion of connection profiles, specified using <connection>tags in which you can have targeted parameters, but unfortunately they are specific ones, so I've opened a feature request with OpenVPN to allow the tls-auth and ideally cert directives to be included so you can have per-server settings.

              I need this to be able to have my client try different servers within the same country when one goes down.

              For my direct question, I've found a workaround where I can just specify an external openvpn config file with the inline configuration and it works.</connection>

              1 Reply Last reply Reply Quote 0
              • First post
                Last post

              Products

              • Platform Overview
              • TNSR
              • pfSense
              • Appliances

              Services

              • Training
              • Professional Services

              Support

              • Subscription Plans
              • Contact Support
              • Product Lifecycle
              • Documentation

              News

              • Media Coverage
              • Press
              • Events

              Resources

              • Blog
              • FAQ
              • Find a Partner
              • Resource Library
              • Security Information

              Company

              • About Us
              • Careers
              • Partners
              • Contact Us
              • Legal
              Our Mission

              We provide leading-edge network security at a fair price - regardless of organizational size or network sophistication. We believe that an open-source security model offers disruptive pricing along with the agility required to quickly address emerging threats.

              Subscribe to our Newsletter

              Product information, software announcements, and special offers. See our newsletter archive to sign up for future newsletters and to read past announcements.

              © 2021 Rubicon Communications, LLC | Privacy Policy