Wireguard

Started by MCMLIX, January 15, 2023, 08:26:48 AM

Previous topic - Next topic
Is the native Wireguard widget on the dashboard supposed to look like this? Never used it before but enabled it as recommended in thread and this is what I get. Could it be related to a bug in the theme I'm using from the plug-ins?  I am in the three-wide format.

Quote from: TheHellSite on January 28, 2023, 01:03:23 AM
Just a quick semi off-topic question here.

Before update to 23.1
- WireGuard Go plugin installed (os-wireguard)
- WireGuard kmod package installed manually from cli

Are we supposed to uninstall the kmod package before applying the update to 23.1?
Or will the update replace/remove the WireGuard Go plugin and update the kmod package?

Correct me if I'm wrong, but doesn't the OPNsense plugin system "track" / ignore manually installed packages? Maybe that was TrueNAS CORE?

I'm already on 23.1, but previously installed the wireguard-kmod package via pkg install.

Before following my tests blindly, please create a backup!

I just tested uninstalling the plugin. When doing so, the following packages were uninstalled:


  • bash
  • os-wireguard
  • wireguard-tools

I then had to manually cleanup wireguard-kmod via pkg remove. Re-installing the os-wireguard plugin now adds the following packages:


  • bash
  • os-wireguard
  • wireguard-tools
  • -> wireguard-kmod <-

Uninstalling the os-wireguard plugin again now properly cleans up the wireguard-kmod package.

My conclusion is that it's cleaner to uninstall the os-wireguard plugin and wireguard-kmod package first, and then re-install the plugin.

My WireGuard config was untouched by this (please create a backup).

So I'm on OPNsense 23.1.3_4-amd64. I have been running with "schnerring" guide since it was posted. I substitute in Surfshark Wireguard. I followed "pmhausen" advice initially and that seem to work. I did try the above procedure and everything seems to work great (touch wood).
Thank you for the hard work on developing OPNsense. Thank you "schnerring" for the guide.
4 x Intel(R) Celeron(R) N5105 @ 2.00GHz

May 10, 2023, 05:33:29 PM #18 Last Edit: May 10, 2023, 05:44:09 PM by TheHellSite
Quote from: schnerring on March 15, 2023, 03:58:18 PM
Correct me if I'm wrong, but doesn't the OPNsense plugin system "track" / ignore manually installed packages? Maybe that was TrueNAS CORE?

I'm already on 23.1, but previously installed the wireguard-kmod package via pkg install.

Before following my tests blindly, please create a backup!

I just tested uninstalling the plugin. When doing so, the following packages were uninstalled:


  • bash
  • os-wireguard
  • wireguard-tools

I then had to manually cleanup wireguard-kmod via pkg remove. Re-installing the os-wireguard plugin now adds the following packages:


  • bash
  • os-wireguard
  • wireguard-tools
  • -> wireguard-kmod <-

Uninstalling the os-wireguard plugin again now properly cleans up the wireguard-kmod package.

My conclusion is that it's cleaner to uninstall the os-wireguard plugin and wireguard-kmod package first, and then re-install the plugin.

My WireGuard config was untouched by this (please create a backup).

I can confirm that this way is cleaner and that the config is indeed kept in place after reinstalling os-wireguard. Just did it on one of my firewalls.

However just uninstalling os-wireguard will not only leave wireguard-kmod but also wireguard-tools on my system.

So I think the best way to do this is to...
pkg remove os-wireguard wireguard-tools wireguard-kmod
reboot


Then just reinstall the os-wireguard package in the web ui.
All of my posts are submitted with the best of knowledge and belief.


My post was helpful to you?
Feel free to click [applaud] to the left underneath my profile.
Additionally you can consider donating: https://www.buymeacoffee.com/thehellsite