Coder Social home page Coder Social logo

Comments (11)

KittyKatt avatar KittyKatt commented on September 23, 2024

Additionally, I actually had to edit the 10-setup_wireguard on_boot configuration to include the following, because it wasn't finding any kernel modules for wireguard whatsoever before adding this:

   elif [ -e /lib/modules/$ver/kernel/net/wireguard/wireguard.ko ]; then
     modprobe wireguard

This script worked before the update to v1.11.4, so I'm unsure HOW it was functioning before this.

from udm-kernel.

fabianishere avatar fabianishere commented on September 23, 2024

Did you check whether the module is actually loaded? (e.g., lsmod)

from udm-kernel.

KittyKatt avatar KittyKatt commented on September 23, 2024

lsmod shows that the kernel module is loaded.

Module                  Size  Used by
wireguard             126976  0
ip6_udp_tunnel         16384  1 wireguard
udp_tunnel             16384  1 wireguard
xt_conntrack           16384  8
nf_nat_tftp            16384  0
nf_conntrack_tftp      16384  1 nf_nat_tftp
nf_nat_pptp            16384  0
nf_conntrack_pptp      16384  1 nf_nat_pptp
nf_nat_h323            20480  0
nf_conntrack_h323      53248  1 nf_nat_h323
nf_nat_proto_gre       16384  1 nf_nat_pptp
nf_conntrack_proto_gre    16384  1 nf_conntrack_pptp
nf_nat_ftp             16384  0
nf_conntrack_ftp       16384  1 nf_nat_ftp
nf_log_ipv4            16384  2
nf_log_common          16384  1 nf_log_ipv4
xt_LOG                 16384  2
nf_app                 16384  0
t_miner                49152  1 nf_app
tdts                  438272  1 t_miner
xt_dpi                 16384  0
ifb                    16384  0
sch_htb                24576  0
ppp_generic            36864  0
slhc                   20480  1 ppp_generic
lzo                    16384  4
lzo_compress           16384  1 lzo
zram                   24576  1
gpiodev                16384  0
ubnthal              1253376  0
ubnt_common           102400  1 ubnthal

from udm-kernel.

fabianishere avatar fabianishere commented on September 23, 2024

Could you check what the minimum MTU is for wg0? Perhaps that might give some hint.

from udm-kernel.

KittyKatt avatar KittyKatt commented on September 23, 2024

I did:

ip link add wg0 type wireguard
ip -4 address add 10.10.10.2 dev wg0

ip addr:

34: wg0: <PROMISC> mtu 2147483552 qdisc noop state DOWN group default qlen 1000
    link/infiniband 
    inet 10.10.10.2/32 scope global wg0
       valid_lft forever preferred_lft forever

That's a pretty wild MTU.

from udm-kernel.

KittyKatt avatar KittyKatt commented on September 23, 2024

Some additional information about the link:

36: wg0: <PROMISC> mtu 2147483552 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/infiniband  promiscuity 0 
    wireguard addrgenmode eui64 numtxqueues 1 numrxqueues 1 gso_max_size 65536 gso_max_segs 65535

from udm-kernel.

fabianishere avatar fabianishere commented on September 23, 2024

Very interesting 🤔 What also surprises me is that it reports a link over Infiniband.
Since it worked with the previous firmware, I suspect that there are some incompatibilities between Ubiquiti's proprietary kernel modules and the edge3 kernel.

I am working on developing shims for these module, so that this problem should not happen as often. I have sent Ubiquiti a request for the latest kernel sources so that I can update the custom kernel.

In the meantime, you could perhaps downgrade your firmware installation back to v1.11.0 if you need this to work.

from udm-kernel.

KittyKatt avatar KittyKatt commented on September 23, 2024

I will probably end up downgrading for now. Could you keep this issue open and tag me when you've got the latest source figured out and a new custom kernel built?

from udm-kernel.

fabianishere avatar fabianishere commented on September 23, 2024

Hi @KittyKatt, I managed to reproduce your issue and verify it with the new kernel sources. It appears the kernel itself is not the problem (there were little changes for v1.11.4). Instead, what happens is that modprobe selects the incorrect wireguard.ko file (which is now included in the stock firmware).

You can verify this yourself as follows:

insmod /lib/modules/4.19.152-edge3/kernel/net/wireguard/wireguard.ko

This should load the right kernel module. When creating a new interface now, Linux should report the expected values.

I'll fix the issue in udm-kernel-tools so that this will not happen anymore.

from udm-kernel.

fabianishere avatar fabianishere commented on September 23, 2024

Fixed with fabianishere/udm-kernel-tools#65

from udm-kernel.

KittyKatt avatar KittyKatt commented on September 23, 2024

@fabianishere Just saw this. I'm going to hopefully be trying this out and validating this weekend. Thank you!

from udm-kernel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.