Ubuntu 22.04 LTS仅使用Netplan单配置文件配置内核Wireguard+Cloudflare WARP #2240
lxsq
started this conversation in
Show and tell
Replies: 1 comment
-
适合仅使用Xray负责分流的用户,如果需要VPS流量全部走WARP需要修改配置。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
安装DKMS版的wireguard:
sudo apt install wireguard-dkms
或者按照官网指南
Wireguard于2020年3月正式合并进了Linux 5.6内核,以上版本可以忽略此步。
使用wgcf或者warp-reg注册
新建配置文件/etc/netplan/warp.yaml:
完成后执行
sudo netplan try
应用配置。运行
ip addr
查看网卡使用sendThrough可以实现IPv4/IPv6分流
缺点:需要单独配置IPv4与IPv6
使用Sockopt的网卡分流。
缺点:无法使用UDP #1930
"interface": "wgcf"
也可以使用Sockopt的mark功能
缺点:需要更高的权限
"mark": 53199
Beta Was this translation helpful? Give feedback.
All reactions