Comments (11)
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.
Did you check whether the module is actually loaded? (e.g., lsmod
)
from udm-kernel.
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.
Could you check what the minimum MTU is for wg0
? Perhaps that might give some hint.
from udm-kernel.
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.
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.
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.
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.
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.
Fixed with fabianishere/udm-kernel-tools#65
from udm-kernel.
@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)
- Help for a newbie HOT 11
- Where is WireGuard HOT 4
- Safe to upgrade to 1.11.4? HOT 4
- Kernel source origin HOT 6
- UDM SE HOT 2
- USW-Pro-24-POE and U6-LR not adoptable HOT 3
- IPTV not workin with 1.12.22 HOT 1
- Permissions to fork / link your repo over at the new UniFi-Utilities org HOT 1
- custom kernel installation
- Does Smart Queues setting needs to be enabled to use CAKE? HOT 1
- Kernel for 1.12.30? HOT 2
- Edge Kernel for new UnifiOS 1.12.30 HOT 3
- Edge kernel for v1.12.33 HOT 2
- Adoption fails? HOT 11
- broken UDM - repair options
- Install custom kernel HOT 2
- Did you consider a branch without WireGuard HOT 4
- Which kernel with 1.10.4 or 1.11? HOT 19
- Enabling CONFIG_NETFILTER_XT_TARGET_HL HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from udm-kernel.