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

    Wireguard is not routing any traffic

    Scheduled Pinned Locked Moved WireGuard
    44 Posts 6 Posters 10.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.
    • ?
      A Former User
      last edited by

      That's my setup
      4.png 3.png 2.png 1.png

      and this is the config provided by surfshark

      [Interface]
      Address = 10.14.0.2/16
      PrivateKey = <insert_your_private_key_here>
      DNS = 162.252.172.57, 149.154.159.92
      [Peer]
      PublicKey = fJD***********
      AllowedIPs = 0.0.0.0/0
      Endpoint = de-fra.prod.surfshark.com:51820
      

      I also added a Firewall-Rule to my LAN interface targeting the Gateway NORDVPN1_VPNV4 which is assigned to the interface NORDVPN1 (don't mind the name, I moved from nordvpn last week)

      ? 1 Reply Last reply Reply Quote 1
      • ?
        A Former User @A Former User
        last edited by A Former User

        I wonder if it's correct to use '10.14.0.2' as the ip address of my interface, but the pfsense documentation says I should put an IP there and it's the only one I have. (DHCP is not working)

        I can ping server on the internet from my own clients, but higher traffic is not passing

        Bob.DigB 1 Reply Last reply Reply Quote 0
        • Bob.DigB
          Bob.Dig LAYER 8 @A Former User
          last edited by Bob.Dig

          @thisisme I will be looking into this for myself shortly. 😉

          1 Reply Last reply Reply Quote 0
          • ?
            A Former User @gabacho4
            last edited by

            @gabacho4 said in Wireguard is not routing any traffic:

            no that rule is for your network through the interface to the world

            I'm still confused. I thought that rules are evaluated when they enter the interface. Traffic from LAN should not enter the Wireguard interface, but traffic from outside. Right?

            Bob.DigB 1 Reply Last reply Reply Quote 0
            • Bob.DigB
              Bob.Dig LAYER 8 @A Former User
              last edited by Bob.Dig

              @thisisme said in Wireguard is not routing any traffic:

              Right?

              Right, don't put any rule on that interface.

              ? 1 Reply Last reply Reply Quote 0
              • ?
                A Former User @Bob.Dig
                last edited by

                @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

                Bob.DigB 1 Reply Last reply Reply Quote 1
                • Bob.DigB
                  Bob.Dig LAYER 8 @A Former User
                  last edited by

                  @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 Reply Quote 0
                  • ?
                    A Former User @Bob.Dig
                    last edited by

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

                    Bob.DigB 1 Reply Last reply Reply Quote 0
                    • Bob.DigB
                      Bob.Dig LAYER 8 @A Former User
                      last edited by Bob.Dig

                      @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 Reply Quote 0
                      • ?
                        A Former User @Bob.Dig
                        last edited by

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

                        Bob.DigB 1 Reply Last reply Reply Quote 1
                        • Bob.DigB
                          Bob.Dig LAYER 8 @A Former User
                          last edited by Bob.Dig

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

                          ? 1 Reply Last reply Reply Quote 0
                          • ?
                            A Former User @Bob.Dig
                            last edited by

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

                            Bob.DigB 1 Reply Last reply Reply Quote 1
                            • Bob.DigB
                              Bob.Dig LAYER 8 @A Former User
                              last edited by

                              @thisisme So which size should it be?

                              ? 1 Reply Last reply Reply Quote 0
                              • ?
                                A Former User @Bob.Dig
                                last edited by

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

                                ? 1 Reply Last reply Reply Quote 0
                                • ?
                                  A Former User @A Former User
                                  last edited by

                                  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

                                  Bob.DigB 1 Reply Last reply Reply Quote 0
                                  • Bob.DigB
                                    Bob.Dig LAYER 8
                                    last edited by Bob.Dig

                                    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.
                                    ss.jpg

                                    1 Reply Last reply Reply Quote 1
                                    • Bob.DigB
                                      Bob.Dig LAYER 8
                                      last edited by Bob.Dig

                                      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
                                      • Bob.DigB
                                        Bob.Dig LAYER 8 @A Former User
                                        last edited by

                                        @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 Reply Quote 0
                                        • ?
                                          A Former User @Bob.Dig
                                          last edited by

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

                                          Bob.DigB 1 Reply Last reply Reply Quote 0
                                          • Bob.DigB
                                            Bob.Dig LAYER 8 @A Former User
                                            last edited by Bob.Dig

                                            @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 Reply Quote 0
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.