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

    Cannot Get Wireguard to Handshake w/ Mullvad

    WireGuard
    3
    13
    1.1k
    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.
    • N
      n3IVI0
      last edited by

      Followed the guide here: https://mullvad.net/en/help/pfsense-with-wireguard

      Followed it carefully. Multiple times to make sure I am doing it exactly as described.

      This same guide has worked in the past. Recently I had to do a clean install.

      I am on 24.03. I have only the WAN and LAN configured. Only Wireguard installed. Nothing fancy. Basic setup, so I can connect my laptop to the pfSense box, and access the internet.

      I setup the tunnel and peer for Mullvad. Activated WireGuard. No handshake. Cannot get this thing to connect.

      Screenshot 2024-06-03 at 12.43.59 AM.png

      Screenshot 2024-06-03 at 12.44.12 AM.png

      I cannot get a handshake no matter what I try. (tried all the port forwarding and special WAN rules for port 51820 --> doesn't fix it).

      Any ideas?

      Is there something wrong with Wireguard package 0.2.2_1 that is causing this?

      J 1 Reply Last reply Reply Quote 0
      • J
        Jarhead @n3IVI0
        last edited by

        @n3IVI0 First, that WAN rule is allowing anyone on the Internet full access to your system. You should probably delete that rule.
        Next, post your screenshots of your Wireguard config.

        N 1 Reply Last reply Reply Quote 0
        • N
          n3IVI0 @Jarhead
          last edited by n3IVI0

          @Jarhead It is the exact config as the instructions detail. I can't post it without most of it being redacted, from all the keys. Yeah, I know. I was trying to open it in case anything was blocking.

          I am going to try leaving it on 23.09 and installing WireGuard on that to see if the problem is with the upgrade to 24.03 and FreeBSD 15.

          N 1 Reply Last reply Reply Quote 0
          • N
            n3IVI0 @n3IVI0
            last edited by

            @n3IVI0 That did not work. So the problem is NOT the newest version of pfSense.

            Per the instructions from Mullvad:

            SSH'd in, generated my keypair.
            Got the correct IP.

            cd /usr/local/etc/wireguard/
            wg genkey | tee privkey | wg pubkey > pubkey
            echo "public wireguard key"; cat pubkey; echo; echo "private wireguard key"; cat privkey
            curl https://api.mullvad.net/wg/ -d account=YOURMULLVADACCOUNTNUMBER --data-urlencode pubkey=YOURPUBLICKEY | tee mullvad-ip

            Created the tunnel and peer, activated WireGuard. Nothing. I have done this exact process in the past. Nothing has changed.

            Screenshot 2024-06-03 at 10.45.01 AM.jpg

            Screenshot 2024-06-03 at 10.49.08 AM.jpg

            1 Reply Last reply Reply Quote 0
            • N
              n3IVI0
              last edited by

              Saw this in the log:

              Screenshot 2024-06-03 at 10.51.37 AM.png

              Set WAN to be the default gateway. Still no handshake.

              J 1 Reply Last reply Reply Quote 0
              • J
                Jarhead @n3IVI0
                last edited by

                @n3IVI0 The problem is people always say "I did everything right so why isn't it working?"
                Well, obviously you didn't do everything right or it would be working. But no one can help you if you don't post pics of what you did.
                So the only thing I can say is go back and follow the instructions again.
                I will say I know you didn't do it right because you were supposed to create a new gateway and your last post would be the hint you need to get it working.
                So that would be a good place to start in the instructions.

                N 1 Reply Last reply Reply Quote 0
                • N
                  n3IVI0 @Jarhead
                  last edited by n3IVI0

                  @Jarhead Thanks Mom.

                  Anybody on here with useful information or advice?

                  Bob.DigB J 2 Replies Last reply Reply Quote 0
                  • Bob.DigB
                    Bob.Dig LAYER 8 @n3IVI0
                    last edited by

                    @n3IVI0 Don't use a firewall-appliance, get something simpler, maybe OpenWRT.

                    N 1 Reply Last reply Reply Quote 0
                    • N
                      n3IVI0 @Bob.Dig
                      last edited by

                      This post is deleted!
                      Bob.DigB 1 Reply Last reply Reply Quote 0
                      • Bob.DigB
                        Bob.Dig LAYER 8 @n3IVI0
                        last edited by Bob.Dig

                        @n3IVI0 Even I use OpenWRT for all my WireGuard-Privacy-VPN-Clients, not pfSense. Maybe the linux support is a factor.

                        Screenshot 2024-06-03 104547.png

                        1 Reply Last reply Reply Quote 0
                        • J
                          Jarhead @n3IVI0
                          last edited by

                          @n3IVI0 said in Cannot Get Wireguard to Handshake w/ Mullvad:

                          @Jarhead Thanks Mom.

                          Anybody on here with useful information or advice?

                          Yes. You've already been given it. You just don't want to listen.

                          N 1 Reply Last reply Reply Quote 0
                          • N
                            n3IVI0 @Jarhead
                            last edited by

                            @Jarhead Dude. I did. You have nothing useful to say. Your response is "RTFM". If that worked, I wouldn't be in here asking questions. Something is causing the handshake operation to fail. That's what I'm trying to figure out.

                            N 1 Reply Last reply Reply Quote 0
                            • N
                              n3IVI0 @n3IVI0
                              last edited by

                              @n3IVI0 My setup was correct. The problem was on Mullvad's end. The first server in my list was one of their Houston servers. It's a fast server, one I tend to use a lot. And it was first in line. That server appears to be down. None of my clients will connect to it. The moment I tried to connect to a different one, it connected immediately.

                              And yes, I should have thought of that. I am working through some jet lag at the moment. DOH.

                              Been running in circles for days trying to figure this out.

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