• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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 Jun 2, 2024, 9:50 PM

    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.

    login-to-view

    login-to-view

    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 Jun 3, 2024, 6:01 AM Reply Quote 0
    • J
      Jarhead @n3IVI0
      last edited by Jun 3, 2024, 6:01 AM

      @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 Jun 3, 2024, 7:01 AM Reply Quote 0
      • N
        n3IVI0 @Jarhead
        last edited by n3IVI0 Jun 3, 2024, 7:12 AM Jun 3, 2024, 7:01 AM

        @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 Jun 3, 2024, 7:50 AM Reply Quote 0
        • N
          n3IVI0 @n3IVI0
          last edited by Jun 3, 2024, 7:50 AM

          @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.

          login-to-view

          login-to-view

          1 Reply Last reply Reply Quote 0
          • N
            n3IVI0
            last edited by Jun 3, 2024, 7:53 AM

            Saw this in the log:

            login-to-view

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

            J 1 Reply Last reply Jun 3, 2024, 8:06 AM Reply Quote 0
            • J
              Jarhead @n3IVI0
              last edited by Jun 3, 2024, 8:06 AM

              @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 Jun 3, 2024, 8:08 AM Reply Quote 0
              • N
                n3IVI0 @Jarhead
                last edited by n3IVI0 Jun 3, 2024, 8:15 AM Jun 3, 2024, 8:08 AM

                @Jarhead Thanks Mom.

                Anybody on here with useful information or advice?

                B J 2 Replies Last reply Jun 3, 2024, 8:26 AM Reply Quote 0
                • B
                  Bob.Dig LAYER 8 @n3IVI0
                  last edited by Jun 3, 2024, 8:26 AM

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

                  N 1 Reply Last reply Jun 3, 2024, 8:28 AM Reply Quote 0
                  • N
                    n3IVI0 @Bob.Dig
                    last edited by Jun 3, 2024, 8:28 AM

                    This post is deleted!
                    B 1 Reply Last reply Jun 3, 2024, 8:43 AM Reply Quote 0
                    • B
                      Bob.Dig LAYER 8 @n3IVI0
                      last edited by Bob.Dig Jun 3, 2024, 8:46 AM Jun 3, 2024, 8:43 AM

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

                      login-to-view

                      1 Reply Last reply Reply Quote 0
                      • J
                        Jarhead @n3IVI0
                        last edited by Jun 3, 2024, 9:33 AM

                        @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 Jun 3, 2024, 10:36 AM Reply Quote 0
                        • N
                          n3IVI0 @Jarhead
                          last edited by Jun 3, 2024, 10:36 AM

                          @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 Jun 3, 2024, 10:56 AM Reply Quote 0
                          • N
                            n3IVI0 @n3IVI0
                            last edited by Jun 3, 2024, 10:56 AM

                            @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
                            6 out of 13
                            • First post
                              6/13
                              Last post
                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.