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

WireGuard generates wrong public key

Scheduled Pinned Locked Moved WireGuard
9 Posts 4 Posters 2.2k 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
    Sprout0002
    last edited by Feb 11, 2023, 7:42 PM

    i tried to follow this pfSense WireGuard Guide Series 001 - Mullvad Failover but my public key does not match my mullvad/proton public key.Screenshot from 2023-02-11 19-43-35.png

    i tried on two separate devices
    this post: The WireGuard tunnel public key is derived from the private key. There isn't a compelling reason to allow the user to manually enter it separately, as it only presents an additional opportunity for error/misunderstanding.
    what can i do now if i cannot enter the public key manually?

    J 1 Reply Last reply Feb 11, 2023, 7:46 PM Reply Quote 0
    • J
      Jarhead @Sprout0002
      last edited by Feb 11, 2023, 7:46 PM

      @sprout0002 If you paste the private key from Mullvad it will generate the same public key.

      But I don't think you are setting it up correctly.
      To be clear, don't know who or what Mullvad is but wouldn't you want your own public key that would need to be entered on the other side?

      S B 2 Replies Last reply Feb 11, 2023, 8:04 PM Reply Quote 0
      • S
        Sprout0002 @Jarhead
        last edited by Feb 11, 2023, 8:04 PM

        @jarhead in the guide Christian says the public key should match the public key from mullvad vpn

        the config file is from proton but i also tried with mullvad... same problem

        B 1 Reply Last reply Feb 11, 2023, 8:08 PM Reply Quote 0
        • B
          Bob.Dig LAYER 8 @Jarhead
          last edited by Feb 11, 2023, 8:07 PM

          @jarhead said in WireGuard generates wrong public key:

          but wouldn't you want your own public key that would need to be entered on the other side?

          Goof question, what would be the real benefit of that. You don't use those keys on any other tunnel anyway, so it might be ok to get the whole config from them.

          S 1 Reply Last reply Feb 11, 2023, 8:17 PM Reply Quote 0
          • B
            Bob.Dig LAYER 8 @Sprout0002
            last edited by Feb 11, 2023, 8:08 PM

            @sprout0002 said in WireGuard generates wrong public key:

            the config file is from proton

            Why?

            1 Reply Last reply Reply Quote 0
            • S
              Sprout0002 @Bob.Dig
              last edited by Feb 11, 2023, 8:17 PM

              @bob-dig ok. and when i create a peer (like in the video guide) which public key should i enter?

              B J P 3 Replies Last reply Feb 11, 2023, 8:35 PM Reply Quote 0
              • B
                Bob.Dig LAYER 8 @Sprout0002
                last edited by Bob.Dig Feb 11, 2023, 8:38 PM Feb 11, 2023, 8:35 PM

                @sprout0002 Theirs. But I don't recommend running pfSense only for a privacy vpn, this is to much complexity.

                1 Reply Last reply Reply Quote 0
                • J
                  Jarhead @Sprout0002
                  last edited by Feb 11, 2023, 8:51 PM

                  @sprout0002 said in WireGuard generates wrong public key:

                  @bob-dig ok. and when i create a peer (like in the video guide) which public key should i enter?

                  You need to put their public key on your peer and they put your public key on their peer. But again, don't know Mullvad so maybe they do something different.

                  1 Reply Last reply Reply Quote 0
                  • P
                    payazo915 @Sprout0002
                    last edited by Feb 13, 2023, 6:44 AM

                    @sprout0002 the same thing is occuring with me trying to set it up with NordVPN. Wireguard generates the wrong public key for the private key I'm entering. Did you find a fix or way to enter your public key from proton?

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