Hello,
I completed setup of VPN client base on this guide provided by my VPN service provider IVPN.
With the newly created interface wgivpn up there's no connection to the internet.
Verifying the VPN connection shows this:
root@eddie:~# pgrep -f -a wg; wg show; wg showconf wgivpn
9915 wg-crypt-wgivpn
interface: wgivpn
public key: tpPbyjXdaulS2EpXhtGqzOW1LwTxJo3yYBODCf1iIG8=
private key: (hidden)
listening port: 52628
peer: mS3/WpXjnMAMmXxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
endpoint: 185.102.219.26:51820
allowed ips: 0.0.0.0/0, ::/0
transfer: 0 B received, 148 B sent
persistent keepalive: every 25 seconds
[Interface]
ListenPort = 52628
PrivateKey = kCeaGP2XqsjNAexxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
[Peer]
PublicKey = mS3/WpXjnMAMmXxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
AllowedIPs = 0.0.0.0/0, ::/0
Endpoint = 185.102.219.26:51820
PersistentKeepalive = 25
The new routing table is this:
root@eddie:~# ip r
default dev wgivpn proto static scope link metric 10
default via 192.168.1.1 dev wan proto static src 192.168.1.2 metric 20
172.16.0.0/29 dev lan5 proto kernel scope link src 172.16.0.1
172.16.20.0/24 dev lan3.20 proto kernel scope link src 172.16.20.1 linkdown
172.16.30.0/24 dev lan3.30 proto kernel scope link src 172.16.30.1 linkdown
172.17.213.235 dev wgivpn proto static scope link metric 10
172.21.1.0/24 dev lan2 proto kernel scope link src 172.21.1.2
172.23.0.0/16 via 172.16.0.1 dev lan5 proto static
185.102.219.26 via 192.168.1.1 dev wan proto static metric 20
192.168.1.0/24 dev wan proto static scope link metric 20
I can ping the endpoint IP 185.102.219.26 w/o problems:
root@eddie:~# ping -c 3 185.102.219.26
PING 185.102.219.26 (185.102.219.26): 56 data bytes
64 bytes from 185.102.219.26: seq=0 ttl=55 time=14.876 ms
64 bytes from 185.102.219.26: seq=1 ttl=55 time=32.598 ms
64 bytes from 185.102.219.26: seq=2 ttl=55 time=13.869 ms
--- 185.102.219.26 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
However I can't ping any of IPVN's DNS servers, e.g.
root@eddie:~# ping -c 3 10.0.254.2
PING 10.0.254.2 (10.0.254.2): 56 data bytes
--- 10.0.254.2 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
Actually I can't ping any IP:
root@eddie:~# ping -c 3 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
--- 8.8.8.8 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
If I shutdown / stop the new interface wgivpn the routing table looks different:
root@eddie:~# ip r
default via 192.168.1.1 dev wan proto static src 192.168.1.2 metric 20
172.16.0.0/29 dev lan5 proto kernel scope link src 172.16.0.1
172.16.20.0/24 dev lan3.20 proto kernel scope link src 172.16.20.1 linkdown
172.16.30.0/24 dev lan3.30 proto kernel scope link src 172.16.30.1 linkdown
172.21.1.0/24 dev lan2 proto kernel scope link src 172.21.1.2
172.23.0.0/16 via 172.16.0.1 dev lan5 proto static
192.168.1.0/24 dev wan proto static scope link metric 20
There are no connection issues with this setup.
My interpretation is that routing traffic through VPN connection is not working.
And this could be related to the network architecture where OpenWrt router is behind another router provided by ISP; this router setup is in NAT mode, means networks behind OpenWrt router are double-NAT.
Could you please advise how to troubleshoot this issue?
THX