WireGuard (Android) Configuration issues, etc.

Jason A. Donenfeld Jason at zx2c4.com
Sat Dec 2 00:50:20 CET 2017

Hey again,

I'll update the demo.wireguard.com scripts in the repo in a bit to
make them slightly more simple and support v6, like the attached, but
thought you might benefit from this now.

zx2c4 at thinkpad ~ $ ./client.sh > /etc/wireguard/demo.conf
zx2c4 at thinkpad ~ $ wg-quick up demo
[#] ip link add demo type wireguard
[#] wg setconf demo /dev/fd/63
[#] ip address add dev demo
[#] ip link set mtu 1420 dev demo
[#] ip link set demo up
[#] resolvconf -a tun.demo -m 0 -x
[#] wg set x fwmark 51820
[#] ip -4 route add dev demo table 51820
[#] ip -4 rule add not fwmark 51820 table 51820
[#] ip -4 rule add table main suppress_prefixlength 0
zx2c4 at thinkpad ~ $ curl -4 zx2c4.com/ip

Please don't run the script more than once or twice or thrice.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: client.sh
Type: application/x-sh
Size: 414 bytes
Desc: not available
URL: <http://lists.zx2c4.com/pipermail/wireguard/attachments/20171202/962e0b1c/attachment.sh>

More information about the WireGuard mailing list