WireGuard VPN: Connected but NO INTERNET

Hi All,

Greetings! Hope everyone is doing well.

Couple of days ago I installed Wireguard on my raspberry pi 4B using PiVPN Project. Installation was successful (atleast it looks like) but when i connect my Wireguard using my Android Phone it gets connected, but i cannot browse (No Internet).

Connectivity Diagram

Raspberry Pi -> Home Router -> ISP <- Android Phone
(Port Forwarding is done on my Home Router - hence i believe i am atleast able to connect the server successfully)

wg show output

interface: wg0
  public key: PaiKXUpr8RqJCE6vy6FwFBoreudqlRhiILmf+jW812o=
  private key: (hidden)
  listening port: 51820

peer: PrnJBWgmb5YpQM7VCQVBTcxzhhLFi0BC6qUbalmN6kQ=
  preshared key: (hidden)
  endpoint: xx.xx.xx.xx:26827
  allowed ips:
  latest handshake: 6 seconds ago
  transfer: 16.41 KiB received, 344 B sent

wg0 config file

PrivateKey = hidden
PostUp = iptables -A FORWARD -i wg0 -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
PostDown = iptables -D FORWARD -i wg0 -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE
Address =
ListenPort = 51820
### begin galaxy ###
PublicKey = hidden
PresharedKey = hidden
AllowedIPs =
### end galaxy ###

client config file

PrivateKey = Hidden
Address =

PublicKey = Hidden
PresharedKey = Hidden
Endpoint = url:51820
AllowedIPs =, ::/0

Can anyone please guide me on troubleshooting this issue, i have been facing this issue from couple of days tried to google but no luck.


Install OpenWrt and follow the documentation:

Other Linux distributions have their own specifics for network and firewall management.
It may not be appropriate to discuss here.