Skip to content
This repository has been archived by the owner on Nov 21, 2022. It is now read-only.

一键安装bbrplus后,centos上无法启动wireguard,有解决办法吗? #5

Open
conphi opened this issue Feb 14, 2019 · 5 comments

Comments

@conphi
Copy link

conphi commented Feb 14, 2019

大陆白天,肯定wireguard表现好一些,晚上想用bbrplus扶一下墙,这centos7实在无法启动wireguard,期待出debian版本

@cx9208
Copy link
Owner

cx9208 commented Feb 14, 2019

debian已经编译了,见https://www.hostloc.com/thread-508015-1-1.html ,debian下wireguard可用

@conphi
Copy link
Author

conphi commented Feb 16, 2019

上面那个连接打开要登录,注册,还要邀请码,醉了。。。
我昨天在Debian安装了,发现不是centos的问题
如果先安装wireguard在debian的机器上,换内核后再安装bbrplus, wireguard是可以用的
如果顺序反过来(我换了一个vps),先安装bbrplus 在安装wireguard,启动 wg-quick up wg0,就会报这样的错误:
[#] ip link add wg0 type wireguard
RTNETLINK answers: Operation not supported
Unable to access interface: Protocol not supported
一直没找到原因,网上查是Linux-header的问题,可是wg在第一个vps上没问题啊,真是怪了

查看Linux-header:
apt search linux-headers-$(uname -r)
正在排序... 完成
全文搜索... 完成
linux-headers-4.14.91-bbrplus/now 4.14.91-bbrplus-1 amd64 [已安装,本地]
Linux kernel headers for 4.14.91-bbrplus on amd64

从wireguard的角度再看
modprobe wireguard && lsmod | grep wireguard
modprobe: FATAL: Module wireguard not found.

@conphi
Copy link
Author

conphi commented Feb 16, 2019

我找到了解决办法:
对比两个debian的VPS:dkms status(分别输入命令)
wireguard, 0.0.20190123, 4.14.91-bbrplus, x86_64: installed(成功的vps输出结果)
wireguard, 0.0.20190123: added(失败的vps输出结果)
apt-get install libmnl-dev libelf-dev linux-headers-$(uname -r) build-essential pkg-config(失败vps运行这行命令。发现是换bbrplus内核后,丢了libelf-dev libelf1 libmnl-dev pkg-config这几个包的原因)
dkms install wireguard/0.0.20190123 -k 4.14.91-bbrplus(失败vps运行)
再运行wg-quick up wg0后发现没问题了,成功解决。(失败vps运行)(centos应该也是这个原因,运行类似的命令也能解决!)

@cx9208
Copy link
Owner

cx9208 commented Feb 18, 2019

centos是因为缺少kernel-devel无法编译wg,我编译出来的devel太大了传不上git,有时间再研究了

@shandongtlb
Copy link

wireguard用的是udp协议,bbr可能用不上

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants