Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize wireguard kernel mode V2 #2762

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Open

Conversation

kunsonx
Copy link
Contributor

@kunsonx kunsonx commented Nov 27, 2023

基于 #2757 基础上 实现 outbound wireguard 非用户空间模式。

sys wireguard device + sysnetstack

requirements:

  1. cap CAP_NET_ADMIN
  2. ptables
  3. net.ipv4.conf.all.src_valid_mark=1
  4. modprobe wireguard
  5. net.ipv6.conf.all.disable_ipv6 (启用 IPv6)

@yuhan6665 请检阅。

@yuhan6665
Copy link
Member

回头我测一下 review 交给 @RPRX :)

@kunsonx
Copy link
Contributor Author

kunsonx commented Nov 27, 2023

好的,测完了跟我说下如何同步文档

@kunsonx kunsonx changed the title Optimize wireguard kernel model V2 Optimize wireguard kernel mode V2 Nov 29, 2023
@yuhan6665
Copy link
Member

yuhan6665 commented Dec 11, 2023

遇到一个问题 给客户端编译 gomobile 过不去

# gobind/gobind
/usr/local/go/pkg/tool/linux_amd64/link: running /home/yu/android-ndk-r23b/toolchains/llvm/prebuilt/linux-x86_64/bin/x86_64-linux-android21-clang failed: exit status 1
ld: error: unable to find library -lpthread
clang-12: error: linker command failed with exit code 1 (use -v to see invocation)

gomobile: go build -v -ldflags -s -w -buildmode=c-shared -o=/tmp/gomobile-work-2853750596/android/src/main/jniLibs/x86/libgojni.so ./gobind failed: exit status 1

https://github.com/2dust/AndroidLibXrayLite

@kunsonx
Copy link
Contributor Author

kunsonx commented Jan 8, 2024

@yuhan6665 请问有具体编译工程命令吗?

@yuhan6665
Copy link
Member

@yuhan6665 请问有具体编译工程命令吗?

https://github.com/2dust/AndroidLibXrayLite
Readme

@kunsonx
Copy link
Contributor Author

kunsonx commented Jan 8, 2024

@yuhan6665 搞定。

@devopg
Copy link

devopg commented Nov 19, 2024

@kunsonx
Hello. I see you are making a big update about WireGuard. I don't know if it's related to the #4025 (confuses certificates when opening multiple tabs) issue or not. The problem is being resolved right now. I just wanted to inform you so that you can take it into in your work, so that this issue doesn't come up again later.
Thank you for your work.

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

Successfully merging this pull request may close these issues.

3 participants