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

Wireguard is not routing any traffic

WireGuard
6
44
10.7k
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 @Bob.Dig
    last edited by Aug 25, 2022, 11:27 AM

    @bob-dig I found the problem I had to set the MSS on the wireguard interface, but I remain with another problem:

    I can't route DNS through wireguard
    If I select the the old OpenVPN interface the DNS resolver is working, but with the new Wireguard interface I can't resolve anything. Any idea? DNS is 9.9.9.9

    B 1 Reply Last reply Aug 25, 2022, 11:29 AM Reply Quote 1
    • B
      Bob.Dig LAYER 8 @A Former User
      last edited by Aug 25, 2022, 11:29 AM

      @thisisme I am trying right now and for me it is also not working. It is new for them too, maybe they have problems on their side.
      Will report here if this changes for me.

      ? 1 Reply Last reply Aug 25, 2022, 11:37 AM Reply Quote 0
      • ?
        A Former User @Bob.Dig
        last edited by Aug 25, 2022, 11:37 AM

        Just to point it out: I don't had to add firewall rules to the Wireguard tab. This advice is WRONG and DANGEROUS

        B 1 Reply Last reply Aug 25, 2022, 12:06 PM Reply Quote 0
        • B
          Bob.Dig LAYER 8 @A Former User
          last edited by Bob.Dig Aug 25, 2022, 12:06 PM Aug 25, 2022, 12:06 PM

          @thisisme Ping and DNS seem to be working for me. I didn't tested DNS within pfSense but just in a Windows VM. But I can't surf anything.

          ? 1 Reply Last reply Aug 25, 2022, 12:12 PM Reply Quote 0
          • ?
            A Former User @Bob.Dig
            last edited by Aug 25, 2022, 12:12 PM

            @bob-dig have you set the MSS on the Wireguard interface?

            B 1 Reply Last reply Aug 25, 2022, 12:14 PM Reply Quote 1
            • B
              Bob.Dig LAYER 8 @A Former User
              last edited by Bob.Dig Aug 25, 2022, 12:14 PM Aug 25, 2022, 12:14 PM

              @thisisme No, I don't think it is a must anyways.

              ? 1 Reply Last reply Aug 25, 2022, 12:15 PM Reply Quote 0
              • ?
                A Former User @Bob.Dig
                last edited by Aug 25, 2022, 12:15 PM

                @bob-dig for me it don't work without it

                B 1 Reply Last reply Aug 25, 2022, 12:17 PM Reply Quote 1
                • B
                  Bob.Dig LAYER 8 @A Former User
                  last edited by Aug 25, 2022, 12:17 PM

                  @thisisme So which size should it be?

                  ? 1 Reply Last reply Aug 25, 2022, 12:19 PM Reply Quote 0
                  • ?
                    A Former User @Bob.Dig
                    last edited by Aug 25, 2022, 12:19 PM

                    @bob-dig 1412 seems to work. Maybe you have to play a bit

                    ? 1 Reply Last reply Aug 25, 2022, 12:48 PM Reply Quote 0
                    • ?
                      A Former User @A Former User
                      last edited by Aug 25, 2022, 12:48 PM

                      Solved my DNS problem. Looks like wireguard is not adding any routes. I had to add a manual one for the DNS-Address and the gateway

                      B 1 Reply Last reply Aug 26, 2022, 6:50 AM Reply Quote 0
                      • B
                        Bob.Dig LAYER 8
                        last edited by Bob.Dig Aug 25, 2022, 5:37 PM Aug 25, 2022, 2:07 PM

                        Got it working too, thanks for the MTU hint!!
                        I went with 1420. Without it, it wasn't working.

                        I didn't need any routes but my setup is different. Also no manual outbound NAT needed, see below.

                        For IP I went with /32 and changed the IP for the second tunnel myself.
                        login-to-view

                        1 Reply Last reply Reply Quote 1
                        • B
                          Bob.Dig LAYER 8
                          last edited by Bob.Dig Aug 25, 2022, 5:42 PM Aug 25, 2022, 3:53 PM

                          Something to note when using Surfshark VPN on pfSense with WireGuard instead of OpenVPN.

                          You decide which IP will be used > no more overlapping IPs with different tunnels. 👍

                          No good GUI support for changing the public IP of one tunnel, you have to restart the whole WireGuard service for all the tunnels to change IPs and it takes much longer for a new connection (but it is possible). 👎

                          In my testing, speed was the same with my hardware.

                          1 Reply Last reply Reply Quote 0
                          • B
                            Bob.Dig LAYER 8 @A Former User
                            last edited by Aug 26, 2022, 6:50 AM

                            @thisisme I noticed that the performance is lower with WG on ss, more loss etc. What is your experience so far?

                            ? 1 Reply Last reply Aug 26, 2022, 9:08 AM Reply Quote 0
                            • ?
                              A Former User @Bob.Dig
                              last edited by Aug 26, 2022, 9:08 AM

                              @bob-dig I don't see any performance loss. Maybe even a little gain, but hard to say, because the last 15mbit to my full bandwidth are a bit unstable with Surfshark with both approaches.

                              B 1 Reply Last reply Aug 26, 2022, 1:32 PM Reply Quote 0
                              • B
                                Bob.Dig LAYER 8 @A Former User
                                last edited by Bob.Dig Aug 26, 2022, 1:33 PM Aug 26, 2022, 1:32 PM

                                @thisisme Probem for me it is packet loss, not the speed. I kinda remember that even in their own app, WG is working worse then OVPN, so I will switch back... 😢 YGWYPF

                                ? 1 Reply Last reply Aug 26, 2022, 1:40 PM Reply Quote 0
                                • ?
                                  A Former User @Bob.Dig
                                  last edited by Aug 26, 2022, 1:40 PM

                                  @bob-dig since 2 hours I have a lot of loss too. Since then it was always below 10%. I think the Surfshark servers are unstable or overloaded

                                  B 1 Reply Last reply Aug 26, 2022, 3:16 PM Reply Quote 0
                                  • B
                                    Bob.Dig LAYER 8 @A Former User
                                    last edited by Bob.Dig Aug 26, 2022, 3:17 PM Aug 26, 2022, 3:16 PM

                                    @thisisme Back on OVPN, so much better. It was a short endeavor. I think their WG implementation is just bad, for years now.

                                    ? 1 Reply Last reply Aug 26, 2022, 3:36 PM Reply Quote 0
                                    • ?
                                      A Former User @Bob.Dig
                                      last edited by Aug 26, 2022, 3:36 PM

                                      @bob-dig packet loss with WG close to zero again for me

                                      B 1 Reply Last reply Aug 26, 2022, 3:37 PM Reply Quote 0
                                      • B
                                        Bob.Dig LAYER 8 @A Former User
                                        last edited by Aug 26, 2022, 3:37 PM

                                        @thisisme Maybe it was me ^^

                                        1 Reply Last reply Reply Quote 0
                                        • M
                                          matosc
                                          last edited by Aug 26, 2022, 6:55 PM

                                          My surfshark wireguard configuration is not working. I'm sure it must be something incredibly obvious, but I can't figure it out.

                                          Can someone please scan the config below and let know what is missing. For testing I have it configured like @Thisisme 's example.

                                          fyi .... I am using selective routing and have a couple of LAN devices that are configured with firewall rules to only route to the surfshark wireguard gateway. Also, my OpenVPN config is fine.

                                          login-to-view

                                          login-to-view

                                          login-to-view

                                          login-to-view

                                          login-to-view

                                          login-to-view

                                          login-to-view

                                          login-to-view

                                          B 1 Reply Last reply Aug 26, 2022, 8:29 PM Reply Quote 0
                                          20 out of 44
                                          • First post
                                            20/44
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.