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 搞定。

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.

2 participants