From: "KeXianbin(http://diyism.com)" <kexianbin@diyism.com>
To: "Jason A. Donenfeld" <Jason@zx2c4.com>
Cc: WireGuard mailing list <wireguard@lists.zx2c4.com>
Subject: Re: Any possibility to run wireguard-go with android vpnservice?
Date: Wed, 10 Mar 2021 08:31:27 +0800 [thread overview]
Message-ID: <CAKVinOWSAKSmJZAnx5FazKQqXWnwQkt-AxBH3pR6JrL3SYvi+Q@mail.gmail.com> (raw)
In-Reply-To: <CAHmME9pC=y2_d_z6iyB2ci0O2gKw7WyXnkTxj7AAfwbWLcA7zg@mail.gmail.com>
Thanks, but I knew android-gui, it used gomobile JNI,
What I'm trying to do is use the same control script (I've integrated
PHP into android) to manage wireguard process cross multiple
platforms (for example: Android phone and armbian linux TV).
So in my case, command line wireguard accessibility is in first priority.
I saw that someone did it with
tun2socks(https://github.com/jackyflame/Yysk/blob/8ac2b21c1b11eba30205d92e8f96c6d80caaa1dd/app/src/main/java/im/socks/yysk/ssr/SsrTunnel.java#L286):
first Runtime.getRuntime().exec( ... tun2socks --tunfd
vpnConn.getFd() --sock-path /local/data/tmp/wg0.sock ...)
then System.sendFd(vpnConn.getFd(), "/local/data/tmp/wg0.sock");
So I'm trying to imitate it with wireguard-go arm64 binary, but I got
no progress
Thanks for your great work
Malcolm Ke
On Wed, Mar 10, 2021 at 5:26 AM Jason A. Donenfeld <Jason@zx2c4.com> wrote:
>
> What you're trying to do has actually already been done and is
> available with a nice Java wrapper:
>
> https://git.zx2c4.com/wireguard-android/about/#embedding
> https://search.maven.org/artifact/com.wireguard.android/tunnel
> https://javadoc.io/doc/com.wireguard.android/tunnel/latest/index.html
>
> This should hopefully save you a bunch of time.
next prev parent reply other threads:[~2021-03-10 0:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-09 13:44 Any possibility to run wireguard-go with android vpnservice? KeXianbin(http://diyism.com)
2021-03-09 21:26 ` Jason A. Donenfeld
2021-03-10 0:31 ` KeXianbin(http://diyism.com) [this message]
2021-03-10 0:53 ` Jason A. Donenfeld
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAKVinOWSAKSmJZAnx5FazKQqXWnwQkt-AxBH3pR6JrL3SYvi+Q@mail.gmail.com \
--to=kexianbin@diyism.com \
--cc=Jason@zx2c4.com \
--cc=wireguard@lists.zx2c4.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.