Traffic not routing via wireguard tunnel

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Author Message
lleibovici
DD-WRT Novice


Joined: 27 Nov 2020
Posts: 6

PostPosted: Sat Nov 28, 2020 17:03    Post subject: Traffic not routing via wireguard tunnel Reply with quote
I am struggling to set uo a router as a Wireguard client.
I followed the guide in this forum and the tunnel gets established and I can ping the far end of it. HOwever any other traffic not explicitally for the tunnel's network address, does not get routed over it.

Any suggestions greatfully recieved!
Thanks
Sponsor
SurprisedItWorks
DD-WRT Guru


Joined: 04 Aug 2018
Posts: 1447
Location: Appalachian mountains, USA

PostPosted: Sat Nov 28, 2020 18:46    Post subject: Reply with quote
You have "Route Allowed IP's via tunnel" enabled? And "Allowed IPs" is either "0.0.0.0/0" or "0.0.0.0/1,128.0.0.0/1"?

For the next guy, what router? What dd-wrt build? What wireguard guide? Is the guide the one tagged as " Sticky: WireGuard (client) Setup guide (commercial providers)" in this forum?

_________________
2x Netgear XR500 and 3x Linksys WRT1900ACSv2 on 53544: VLANs, VAPs, NAS, station mode, OpenVPN client (AirVPN), wireguard server (AirVPN port forward) and clients (AzireVPN, AirVPN, private), 3 DNSCrypt providers via VPN.
lleibovici
DD-WRT Novice


Joined: 27 Nov 2020
Posts: 6

PostPosted: Sat Nov 28, 2020 20:04    Post subject: Reply with quote
SurprisedItWorks wrote:
You have "Route Allowed IP's via tunnel" enabled? And "Allowed IPs" is either "0.0.0.0/0" or "0.0.0.0/1,128.0.0.0/1"?

For the next guy, what router? What dd-wrt build? What wireguard guide? Is the guide the one tagged as " Sticky: WireGuard (client) Setup guide (commercial providers)" in this forum?

Yes it's that guide and I route allowed IP's routed ticked and have 0.0.0.0/0 as allowed IP's. The router is WRT1900ACS. I have updated to the latest version of DD-WRT.
SurprisedItWorks
DD-WRT Guru


Joined: 04 Aug 2018
Posts: 1447
Location: Appalachian mountains, USA

PostPosted: Sun Nov 29, 2020 16:17    Post subject: Reply with quote
lleibovici wrote:
SurprisedItWorks wrote:
You have "Route Allowed IP's via tunnel" enabled? And "Allowed IPs" is either "0.0.0.0/0" or "0.0.0.0/1,128.0.0.0/1"?

For the next guy, what router? What dd-wrt build? What wireguard guide? Is the guide the one tagged as " Sticky: WireGuard (client) Setup guide (commercial providers)" in this forum?

Yes it's that guide and I route allowed IP's routed ticked and have 0.0.0.0/0 as allowed IP's. The router is WRT1900ACS. I have updated to the latest version of DD-WRT.

In this forum, it's best to never say "latest" build as that changes from day to day. Also, many newcomers say "latest" incorrectly to mean whatever is in the router database, which is simply wrong. For your router, the database probably says 40559, a poor build that is getting a bit old now. The current latest is 44863. (See the Cliff Notes sticky at the top of the Marvell forum if you aren't familiar with where these new builds actually live.) Based on community experience -- see the new-build threads in the Marvell forum -- the latest for these WRT routers that is widely regarded as pretty solid and free of major issues is 44048.

You probably DO mean one of the recent builds, as I don't think 40559 even had wireguard yet. But I'm more or less just nudging the conversation towards having the background info posted for when @egc, the wireguard guru around here, gets back online. (He's been sidelined a couple of days with some minor surgery.)

_________________
2x Netgear XR500 and 3x Linksys WRT1900ACSv2 on 53544: VLANs, VAPs, NAS, station mode, OpenVPN client (AirVPN), wireguard server (AirVPN port forward) and clients (AzireVPN, AirVPN, private), 3 DNSCrypt providers via VPN.
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12893
Location: Netherlands

PostPosted: Sun Nov 29, 2020 18:19    Post subject: Reply with quote
Thanks @Surpriseditworks indeed latest can mean a lot, can only use left hand due to hand surgery

From the guide https://forum.dd-wrt.com/phpBB2/download.php?id=45986 :
Quote:
5. Allowed IP's: 0.0.0.0/1,128.0.0.0/1


So do not use 0.0.0.0/0 and you should be good

To get the best out of DDWRT and the forum, read and follow the forum guidelines:
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
lleibovici
DD-WRT Novice


Joined: 27 Nov 2020
Posts: 6

PostPosted: Mon Nov 30, 2020 14:22    Post subject: Reply with quote
Thank you
The release I have installed is: DD-WRT v3.0-r44863 std (11/24/20)

I have deleted the tunnel and recreated it using (as suggested) "0.0.0.0/1, 128.0.0.0/1" as allowed IPs and it works.
I must admit I don't really understand why. - More digging I think.
But I'm grateful for the help.
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12893
Location: Netherlands

PostPosted: Mon Nov 30, 2020 14:25    Post subject: Reply with quote
glad it is working for you Smile
_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum