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

    WireGuard pre-shared key

    Scheduled Pinned Locked Moved WireGuard
    6 Posts 3 Posters 1.9k 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.
    • O
      Ofloo
      last edited by

      f427ed67-1f30-4cfc-a944-7feb527310d0-afbeelding.png

      When this has any value the connection doesn't work. Yes on both ends the value is the same.

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

        It works for me here. I clicked Generate PSK, saved, then edited the peer and pasted the same key in there. Worked on the first try.

        If only one side had the PSK it didn't work. But it worked when both had the same PSK and when neither had the PSK.

        Is this pfSense on both sides? Or some other client?

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        O 1 Reply Last reply Reply Quote 0
        • O
          Ofloo @jimp
          last edited by Ofloo

          @jimp pfsense both sides only client mode though.
          Server:
          88d68b42-f0c1-446a-b890-30f52f93a7a1-afbeelding.png
          Client:
          49ca6c96-a36f-4324-a311-ea71d36d828f-afbeelding.png

          perikoP 1 Reply Last reply Reply Quote 0
          • perikoP
            periko @Ofloo
            last edited by periko

            @ofloo I had setup Wireguard a lot of times I always use the button from Pfsense to generate the Pre-shared key.

            I have never have any issue and yes, like Jimp say, both systems must share the same key.

            I had never use any other tool to generate that key outside pfsense.

            Regards!!!

            Necesitan Soporte de Pfsense en México?/Need Pfsense Support in Mexico?
            www.bajaopensolutions.com
            https://www.facebook.com/BajaOpenSolutions
            Quieres aprender PfSense, visita mi canal de youtube:
            https://www.youtube.com/c/PedroMorenoBOS

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

              Did you make up your own PSK or use the button?

              If you make your own key it has to be made with wg genpsk and not an arbitrary string. It's not a password style custom PSK, though the GUI could make that more clear.

              Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

              Need help fast? Netgate Global Support!

              Do not Chat/PM for help!

              O 1 Reply Last reply Reply Quote 0
              • O
                Ofloo @jimp
                last edited by

                @jimp I used the button to generate one.

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