Adding Wireguard to PFsense 2.5.1

 
 
 

Since the removal of Wireguard from its brief inclusion in PFsense some people might want to add WireGuard back into PFsense. This is thanks to the effort of developer theonemcdonald.

Now I’m going to preface this by saying this package is currently EXPERIMENTAL backup your config and use at your own risk. However I have been using this for a week and it has been stable and the package has been put to Netgate for inclusion into the PFSense package library. If you do use the package I encourage you to sponsor the project to keep development going.

Changes

The developer has a series of videos documenting the changes that have been made since Wireguards inclusion in 2.5 here. But the most notable change is the new status page.

You can now see your tunnels and the status of the peers connected which can be handy for diagnosing any connection issues you might be having.

Installing the Packages

Anyway enough plugging let’s get to adding the packages to WireGuard. Connect to your PFSense router via SSH

This next part is simple open this page in your browser.

Look for the latest release at the time of writing this is 0.1.1 you will then need to do the following.

Find the line starting with wireguard-tools-lite and copy the link and now in your SSH window type the following.

Pkg add *link you copied*

Now do the same as above but do it with the wireguard-kmod line.

And lastly with the pfSense-pkg-WireGuard line

Congratulations you now have WireGuard back on 2.5.1

Updating the packages

As this is still in development and not in the PFSense package library updating is a more manual process. The 1st step is to make sure the below option is ticked in your WireGuard settings.

This will keep your settings after the update.

Now you need to remove any of the manually added packages that have been updated using the pkg remove command. And then add the updated package as above.

Once you have re-added the package you will need to reboot your server and you will have updated to the new version.