Wireguard - can ping both ways, but no access to network


I've got OpenWrt 19.07.2 and Wireguard installed on a old router which operates as a switch behind my ISP router.
I can ping both ways between a peer and the switch via the Wireguard tunnel, but I do not seem to get the settings correct to ping from the peer to devices connected to the switch.

Switch ip address:
Switch Wireguard interface addresses:, fd42:42:42::1/64
Switch Wireguard peer allowed addresses:,, fd42:42:42::2/128

Peer Wireguard interface addresses:, fd42:42:42::2/64
Peer Wireguard peer allowed addresses:, ::/0

Can anyone point me into the right direction?

You will need to add static routes for your wireguard gateway on the ISP router (and I'd recommend to defer IPv6 until you have IPv4 running).

1 Like

Delete this one.

Also, as @slh mentioned, on the client peer add the "route allowed IPs" or create a static route upon tunnel creation.

1 Like

Thanks both for your prompt reply. I thought I the WireGuard protocol could do without a static route by using the 'allowed addresses'. I've got it working now. Thank you both!
I'll read up some more on this protocol.


This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.