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

PFS on OpenVPN?

Scheduled Pinned Locked Moved OpenVPN
9 Posts 3 Posters 4.6k 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.
  • ?
    A Former User
    last edited by Apr 10, 2014, 8:16 AM

    Sorry, but is Perfect Forward Secrecy Enabled by default when using the Wizard to setup the OpenVPN Server ?

    How can I check if Perfect Forward Secrecy is enabled on my Server ?

    1 Reply Last reply Reply Quote 0
    • M
      meruem
      last edited by Jul 28, 2016, 4:46 AM

      bump, im curious, and this was the second hit on google

      1 Reply Last reply Reply Quote 0
      • P
        Pippin
        last edited by Jul 28, 2016, 9:06 AM

        Set verb 4 in server restart and search for

        dh_file =
        

        and

        Diffie-Hellman initialized with XXXX bit key
        

        in the log.

        I gloomily came to the ironic conclusion that if you take a highly intelligent person and give them the best possible, elite education, then you will most likely wind up with an academic who is completely impervious to reality.
        Halton Arp

        1 Reply Last reply Reply Quote 0
        • M
          meruem
          last edited by Jul 28, 2016, 4:16 PM

          Verbosity 4 and In the log I see

          
          Diffie-Hellman initialized with 1024 bit key
          
          

          But does this mean anything to you:

          "Any Diffie-Hellman key exchange will provide you with Forward Secrecy, but you should only select Ephemeral key exchange to obtain Perfect Forward Secrecy (a brand new session key for every session). This is usually displayed in the cipher suite in the form of DHE or EDH. You should also include Elliptic Curve DHE suites as they are faster than their DHE counterparts and should be prioritised above them where possible. You can opt to exclude DHE suites and just stick with ECDHE suites. See my Qualys SSL Test for details on which suites I'm running on my blog. Also, ensure you enforce the ordering of your ciphers by using 'ssl_prefer_server_ciphers on;' in nginx and 'SSLHonorCipherOrder on' in Apache."

          src: https://scotthelme.co.uk/perfect-forward-secrecy/

          1 Reply Last reply Reply Quote 0
          • P
            Pippin
            last edited by Jul 28, 2016, 4:18 PM

            It`s advised to use minimum 2048 bits DH…..

            I gloomily came to the ironic conclusion that if you take a highly intelligent person and give them the best possible, elite education, then you will most likely wind up with an academic who is completely impervious to reality.
            Halton Arp

            1 Reply Last reply Reply Quote 0
            • M
              meruem
              last edited by Jul 28, 2016, 7:38 PM

              @Pippin:

              It`s advised to use minimum 2048 bits DH…..

              How do I enforce that or set that up? I believe when I set it up, all my key lengths were set to 2048

              1 Reply Last reply Reply Quote 0
              • M
                meruem
                last edited by Jul 28, 2016, 7:56 PM

                @Pippin:

                It`s advised to use minimum 2048 bits DH…..

                Also I was reading this

                "For branch office VPN tunnels and BOVPN virtual interfaces, the default DH group for both Phase 1 and Phase 2 is Diffie-Hellman Group 2. This group provides basic security and good performance. If the speed for tunnel initialization and rekey is not a concern, use a higher DH group. Actual initialization and rekey speed depends on a number of factors. You might want to try one of the higher DH groups and decide whether the slower performance time is a problem for your network. If the performance is unacceptable, change to a lower DH group."

                src: http://www.watchguard.com/help/docs/wsm/xtm_11/en-us/content/en-us/bovpn/manual/diffie_hellman_c.html

                Seems 1024 may be fine for my basic needs connecting to home from work/phone

                1 Reply Last reply Reply Quote 0
                • P
                  Pippin
                  last edited by Jul 28, 2016, 8:23 PM

                  In OpenVPN Server config you can select it under:
                  DH Parameter length (bits)

                  I gloomily came to the ironic conclusion that if you take a highly intelligent person and give them the best possible, elite education, then you will most likely wind up with an academic who is completely impervious to reality.
                  Halton Arp

                  1 Reply Last reply Reply Quote 0
                  • M
                    meruem
                    last edited by Jul 30, 2016, 7:42 AM

                    @Pippin:

                    In OpenVPN Server config you can select it under:
                    DH Parameter length (bits)

                    Oh ok I see it. Do you still feel that 2048 is necessary ? I'm worried about a performance hit

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post
                    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                      This community forum collects and processes your personal information.
                      consent.not_received