Development discussion of WireGuard
 help / color / mirror / Atom feed
From: Davide Depau <davide@depau.eu>
To: wireguard@lists.zx2c4.com
Subject: Issues with WireGuard on Android (with kernel module)
Date: Mon, 30 Apr 2018 13:24:36 +0000	[thread overview]
Message-ID: <CAMp63jWKnhfAv4MYxjOeA4k2uFA-tTNzXyCOwFSFeJ1ntEB_Pw@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1181 bytes --]

Hello,
I set up yesterday WireGuard on my OpenWrt router. I configured it on my
computer and it works - everything is setup correctly and traffic is
forwarded through WireGuard to the router and then to the outside.
On Android, after enabling the interface using the app or with wg-quick
manually, network is unreachable. I cannot even ping IPs on the same LAN as
the WireGuard interface.
I'm not sure how to find the routes as Android is a bit special.
As I said in the subject, my kernel (NetHunter kernel for OnePlus 3T) has
the module builtin.

Router conf (interface IP: 192.168.2.1/24):

[Interface]
ListenPort = 4500
PrivateKey = ...

[Peer]
PublicKey = ...
AllowedIPs = 192.168.2.196/32

[Peer]
PublicKey = ...
AllowedIPs = 192.168.2.4/32


Computer conf (working):

[Interface]
Address = 192.168.2.196/32
PrivateKey = ...
DNS = 1.1.1.1

[Peer]
PublicKey = ...
AllowedIPs = 0.0.0.0/0
Endpoint = (hostname):4500
PersistentKeepalive = 25


Phone conf (generated by app, not working):

[Interface]
Address = 192.168.2.4/24
DNS = 1.1.1.1
PrivateKey = ...

[Peer]
AllowedIPs = 0.0.0.0/0
Endpoint = (hostname):4500
PersistentKeepalive = 25
PublicKey = ...


Any hints?
Thank you

[-- Attachment #2: Type: text/html, Size: 1825 bytes --]

             reply	other threads:[~2018-04-30 13:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-30 13:24 Davide Depau [this message]
2018-04-30 17:34 ` Jason A. Donenfeld
2018-05-04  9:49   ` Davide Depau

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=CAMp63jWKnhfAv4MYxjOeA4k2uFA-tTNzXyCOwFSFeJ1ntEB_Pw@mail.gmail.com \
    --to=davide@depau.eu \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).