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: 10.6.0.2/32
latest handshake: 6 seconds ago
transfer: 16.41 KiB received, 344 B sent
wg0 config file
[Interface]
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 = 10.6.0.1/24
ListenPort = 51820
### begin galaxy ###
[Peer]
PublicKey = hidden
PresharedKey = hidden
AllowedIPs = 10.6.0.2/32
### end galaxy ###
client config file
[Interface]
PrivateKey = Hidden
Address = 10.6.0.2/24
DNS = 8.8.8.8
[Peer]
PublicKey = Hidden
PresharedKey = Hidden
Endpoint = url:51820
AllowedIPs = 0.0.0.0/0, ::/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.
Regards