OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • 23.1 Legacy Series »
  • Why are there two WireGuard plugins?
« previous next »
  • Print
Pages: [1]

Author Topic: Why are there two WireGuard plugins?  (Read 2988 times)

hushcoden

  • Sr. Member
  • ****
  • Posts: 445
  • Karma: 18
    • View Profile
Why are there two WireGuard plugins?
« on: May 09, 2023, 02:43:18 pm »
I'm trying to understand why there are two WireGuard plugins, os-wireguard & os-wireguard-go, both on the same version 1.13_5 (and same size, 55.5 KiB), and in case which one to install.

Tia.
Logged

Seimus

  • Jr. Member
  • **
  • Posts: 93
  • Karma: 5
    • View Profile
Re: Why are there two WireGuard plugins?
« Reply #1 on: May 09, 2023, 02:59:13 pm »
There are two different implementations of WG the GO version and the kernel version

os-wireguard       - Kernel Version
os-wireguard-go  - Go Version

The Kernel version can perform better because its implementation allows to use better resources. However the Kernel implementation is still new to OPN. When you check the NOTEs under the package it sways exactly that + that there can be some security/vulnerability implications.

I tried both, both work Okay (Kernel performs better). Didn't see any problems with it.

P.S. always read the attachment notes for a specific plugin/package

Regards,
S.
Logged
Networking is love. You may hate it, but in the end, you always come back to it.

OPNSense HW
APU2D2 - deceased
N5105 - i226-V | Patriot 2x8G 3200 DDR4 | EVO 980 500G

hushcoden

  • Sr. Member
  • ****
  • Posts: 445
  • Karma: 18
    • View Profile
Re: Why are there two WireGuard plugins?
« Reply #2 on: May 09, 2023, 03:25:07 pm »
Quote from: Seimus on May 09, 2023, 02:59:13 pm
P.S. always read the attachment notes for a specific plugin/package

Thanks, much clearer now, but in my case if I click on the info icon on the right of the plugin, I get the same notes ??
Logged

Seimus

  • Jr. Member
  • **
  • Posts: 93
  • Karma: 5
    • View Profile
Re: Why are there two WireGuard plugins?
« Reply #3 on: May 09, 2023, 03:36:34 pm »
Have the same.

Not Sure why the notes are same for both of them when there is a difference in the implementation.

That was as well one of the reason why I tested both.

Regards,
S.
Logged
Networking is love. You may hate it, but in the end, you always come back to it.

OPNSense HW
APU2D2 - deceased
N5105 - i226-V | Patriot 2x8G 3200 DDR4 | EVO 980 500G

tiermutter

  • Hero Member
  • *****
  • Posts: 724
  • Karma: 42
    • View Profile
Re: Why are there two WireGuard plugins?
« Reply #4 on: May 09, 2023, 03:36:52 pm »
Fo me I can see no clear gain in speed but since using kmod, CPU load is much higher when daily backup runs through the tunnel.
Logged
i am not an expert... just trying to help...

Seimus

  • Jr. Member
  • **
  • Posts: 93
  • Karma: 5
    • View Profile
Re: Why are there two WireGuard plugins?
« Reply #5 on: May 09, 2023, 03:41:10 pm »
Same here seeing higher CPU load with kmod, but kinda thats what I would expect.

Regards,
S.
Logged
Networking is love. You may hate it, but in the end, you always come back to it.

OPNSense HW
APU2D2 - deceased
N5105 - i226-V | Patriot 2x8G 3200 DDR4 | EVO 980 500G

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 15077
  • Karma: 1306
    • View Profile
Re: Why are there two WireGuard plugins?
« Reply #6 on: May 10, 2023, 08:50:29 am »
The plugin code is the same for both. Only the dependencies are different... It's how WireGuard tools want to handle the situation.


Cheers,
Franco
Logged

Seimus

  • Jr. Member
  • **
  • Posts: 93
  • Karma: 5
    • View Profile
Re: Why are there two WireGuard plugins?
« Reply #7 on: May 10, 2023, 09:43:19 am »
Quote from: franco on May 10, 2023, 08:50:29 am
The plugin code is the same for both. Only the dependencies are different... It's how WireGuard tools want to handle the situation.


Cheers,
Franco

I really thought it had to be little bit re-implemented to have the kmod version on OPN. Now this gives sense, as well why the package notes are the same. Thanks for clearing this!

Regards,
S.
Logged
Networking is love. You may hate it, but in the end, you always come back to it.

OPNSense HW
APU2D2 - deceased
N5105 - i226-V | Patriot 2x8G 3200 DDR4 | EVO 980 500G

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • 23.1 Legacy Series »
  • Why are there two WireGuard plugins?
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2