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

    WireGuard lives!

    Scheduled Pinned Locked Moved WireGuard
    90 Posts 17 Posters 28.3k 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.
    • V
      vajonam Rebel Alliance @chrisjmuk
      last edited by

      @chrisjmuk This has been fixed, will be in the next release.

      cmcdonaldC 1 Reply Last reply Reply Quote 0
      • cmcdonaldC
        cmcdonald Netgate Developer @vajonam
        last edited by

        For anyone having issues with Mullad,

        29f2f625-6720-41a5-a3ae-7f85d699bbb8-image.png

        Make sure your gateway is the same as your interface address

        Need help fast? https://www.netgate.com/support

        C 1 Reply Last reply Reply Quote 0
        • C
          chrisjmuk @cmcdonald
          last edited by

          @theonemcdonald still no luck unfortuantly on my side. are you able to give me a quick message?

          V 1 Reply Last reply Reply Quote 0
          • V
            vajonam Rebel Alliance @chrisjmuk
            last edited by vajonam

            @chrisjmuk I just get got it setup and working fine.

            Here is what I did.

            • download zip file for the config from mullvad
            • create tunnels and peers. (the conf in the zip file contains the tunnel private key, and public key for peer, the pfsense ui will generate the tunnel public key automatically)
            • create interface MULL_WG with Interface Address 10.x.x.x/32, create a gateway at the same time for that same IP.
            • create outbound NAT, set interface to MULL_WG and source / dest to any

            f0bb8adc-e3e9-4cb1-9318-158b7ac6ef1c-image.png

            • firewall rules to do policy based routing.
            C 1 Reply Last reply Reply Quote 0
            • C
              chrisjmuk @vajonam
              last edited by

              @vajonam Thank you, that done the trick - all working now, i will set my self as a regular sponsor for your github.

              1 Reply Last reply Reply Quote 1
              • V
                vjizzle
                last edited by

                Hi! I setup pfSense 2.6 on my Hyper-V lab and was able to get setup a Wireguard tunnel with TorGuard. Looks promising! I did notice a little more cpu load then I expected when running speedtests but I was able to utilize my 100Mbit internet connection.

                WGTUN Interface (opt1, tun_wg0)
                Status
                up 
                IPv4 Address
                10.13.XX.XX
                Subnet mask IPv4
                255.255.255.0 
                Gateway IPv4
                10.13.XX.XX
                MTU
                1500 
                In/out packets
                509239/443583 (536.63 MiB/360.12 MiB) 
                In/out packets (pass)
                509239/443583 (536.63 MiB/360.12 MiB) 
                In/out packets (block)
                0/0 (0 B/0 B) 
                In/out errors
                0/0 
                Collisions
                0
                

                wg01.png

                cmcdonaldC C 2 Replies Last reply Reply Quote 1
                • cmcdonaldC
                  cmcdonald Netgate Developer @vjizzle
                  last edited by cmcdonald

                  @vjizzle There is still optimization gains to be realized yet in the kernel module...primarily around the crypto. We will track all ongoing development on all fronts to keep this fresh and current. Stay tuned

                  Need help fast? https://www.netgate.com/support

                  E 1 Reply Last reply Reply Quote 1
                  • E
                    emikaadeo @cmcdonald
                    last edited by emikaadeo

                    @theonemcdonald Hi! Just to clarify, will this be available in pfSense 2.5.1 Package Manager ?

                    JeGrJ C 2 Replies Last reply Reply Quote 0
                    • JeGrJ
                      JeGr LAYER 8 Moderator @emikaadeo
                      last edited by

                      @emikaadeo said in WireGuard lives!:

                      @theonemcdonald Hi! Just to clarify, will this be available in pfSense 2.5.1 Package Manager ?

                      Not currently as it's not recommended for stable. So if you want to run it on 2.5.x, download the packages from GitHub and install it manually.

                      Don't forget to upvote 👍 those who kindly offered their time and brainpower to help you!

                      If you're interested, I'm available to discuss details of German-speaking paid support (for companies) if needed.

                      1 Reply Last reply Reply Quote 2
                      • C
                        chrisjmuk @emikaadeo
                        last edited by

                        @emikaadeo I am currently just using the Dev build 1.6.xxxx and just install the package via the package manager and seems to work great.

                        V 1 Reply Last reply Reply Quote 0
                        • C
                          chrisjmuk @vjizzle
                          last edited by

                          @vjizzle i am using the same and this is my CPU spec and i am only using 3% on idle but does jump to 40% on a speed which it would normally even without the wireguard.

                          Intel(R) Celeron(R) CPU N2940 @ 1.83GHz
                          Current: 1826 MHz, Max: 1827 MHz
                          4 CPUs: 1 package(s) x 4 core(s)

                          V 1 Reply Last reply Reply Quote 1
                          • V
                            vajonam Rebel Alliance @chrisjmuk
                            last edited by

                            @chrisjmuk think you mean 2.6.xx ?

                            1 Reply Last reply Reply Quote 0
                            • V
                              vjizzle @chrisjmuk
                              last edited by vjizzle

                              @chrisjmuk I have the following specs on my testlab pfSense 2.6:

                              CPU Type Intel(R) Core(TM) i3-6100U CPU @ 2.30GHz
                              2 CPUs: 1 package(s) x 1 core(s) x 2 hardware threads
                              AES-NI CPU Crypto: Yes (inactive)
                              QAT Crypto: No

                              The load does not bother me that much, my main pfSense is a core i5 beast :) so no worries there. But by the time this is ready for production I expect it to be better optimized for performance. The developer said there will be tweaks and tuning.

                              1 Reply Last reply Reply Quote 0
                              • E
                                emikaadeo
                                last edited by emikaadeo

                                Downloaded packages from GitHub and installed manually v0.0.9 on 2.5.1-RELEASE (amd64) in this order:

                                wireguard-kmod-0.0.20210503.txz
                                wireguard-tools-lite-1.0.20210424.txz
                                pfSense-pkg-WireGuard-0.0.9.txz
                                

                                Works great so far (using Mullvad VPN)
                                Is there any best/safe method to upgrade packages when new versions will be available?

                                1 Reply Last reply Reply Quote 0
                                • D
                                  dersch
                                  last edited by

                                  So if i update to 2.5.1 i need to manually install the package?

                                  E 1 Reply Last reply Reply Quote 0
                                  • E
                                    emikaadeo @dersch
                                    last edited by

                                    @dersch
                                    The new WireGuard port is currently not available officially in 2.5.1 Package Manager (only in 2.6.0 development) so yes, you have to install packages manually.

                                    1 Reply Last reply Reply Quote 0
                                    • martywdM
                                      martywd
                                      last edited by

                                      I'm running 2.5.1 with the pfsense wireguard v0.0.9 pkgs installed. I configured wireguard 3+ days ago to connect my VPN (Windscribe) and since then all is working flawlessly. Nice.

                                      Now I see that the v0.1.1 pkgs were released a few hours ago, so like @emikaadeo asked previously, what is/are the "best/safe method to upgrade packages when new versions will be available?"

                                      Thanks!
                                      .

                                      D 1 Reply Last reply Reply Quote 1
                                      • D
                                        dersch @martywd
                                        last edited by

                                        @martywd same for me.

                                        @theonemcdonald can you advise please how to upgrade?

                                        with

                                        pgk upgrade pfSense-pkg-WireGuard-new.version.txz
                                        

                                        it is asking to install it new. So do we need to remove the old.version first? will the config persist?

                                        V 1 Reply Last reply Reply Quote 0
                                        • V
                                          vajonam Rebel Alliance @dersch
                                          last edited by

                                          @dersch

                                          Yes as long as the "keep settings" is checked on the settings tab. It will persist. but its always good to make a backup of your config before you upgrade. Recreating the wg tunnels is quite easy once you have the settings.

                                          However I have done the upgrade on many boxes and it runs it fine. Just be careful if you are upgrading wireguard over the wire guard tunnel itself like a remote router.

                                          T 1 Reply Last reply Reply Quote 2
                                          • T
                                            tquade @vajonam
                                            last edited by

                                            @vajonam

                                            Having no success upgrading to 0.1.1 from 0.0.9 on pfSense 2.6.0-DEVELOPMENT.

                                            Have tried the following with result:

                                            [2.6.0-DEVELOPMENT][admin@pfSense.localdomain]/root: pkg upgrade pfSense-pkg-WireGuard-0.1.1_1.txz
                                            Updating pfSense-core repository catalogue...
                                            pfSense-core repository is up to date.
                                            Updating pfSense repository catalogue...
                                            pfSense repository is up to date.
                                            All repositories are up to date.
                                            pkg: pfSense-pkg-WireGuard-0.1.1_1.txz is not installed, therefore upgrade is impossible
                                            Checking integrity... done (0 conflicting)
                                            Your packages are up to date.

                                            [2.6.0-DEVELOPMENT][admin@pfSense.localdomain]/root: pkg install pfSense-pkg-WireGuard-0.1.1_1.txz
                                            Updating pfSense-core repository catalogue...
                                            pfSense-core repository is up to date.
                                            Updating pfSense repository catalogue...
                                            pfSense repository is up to date.
                                            All repositories are up to date.
                                            pkg: No packages available to install matching 'pfSense-pkg-WireGuard-0.1.1_1.txz' have been found in the repositories

                                            [2.6.0-DEVELOPMENT][admin@pfSense.localdomain]/root: pkg add https://github.com/theonemcdonald/pfSense-pkg-WireGuard/releases/download/v0.1.1/pfSense-pkg-WireGuard-0.1.1_1.txz
                                            Fetching pfSense-pkg-WireGuard-0.1.1_1.txz: 100% 26 KiB 26.6kB/s 00:01
                                            Installing pfSense-pkg-WireGuard-0.1.1_1...
                                            the most recent version of pfSense-pkg-WireGuard-0.0.9 is already installed

                                            I'm out of ideas.
                                            Ted Quade

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