[SOLVED] WireGuard client: traffic not through the tunnel

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


Joined: 12 Sep 2010
Posts: 12

PostPosted: Wed Mar 22, 2023 22:52    Post subject: [SOLVED] WireGuard client: traffic not through the tunnel Reply with quote
Hello!

I'm trying to connect my ASUS RT-AC66U to the WireGuard VPN server to access the Internet. I've installed the latest available firmware (DD-WRT v3.0-r44715 giga 11/03/20) and have followed the WireGuard guide posted here. It seams that I can establish the tunnel successfully, however, I can't make the traffic from the connected devices to go through the tunnel. Whenever I access websites like the ipleak.net, I'm getting the original IP address displayed.

I've tried to change various options, however, I can't figure out the meaning of some of them. Also, it looks like the guide mentions a more modern build of the DD-WRT.

The WireGuard server is working correctly, I can connect to it directly from my Linux machine using the following config:
Code:
[Interface]
PrivateKey = (obfuscated)
Address = 10.8.0.3/24
DNS = 172.31.0.2

PostUp = ip rule add table 200 from 192.168.1.13
PostUp = ip route add table 200 default via 192.168.1.1
PreDown = ip rule delete table 200 from 192.168.1.13
PreDown = ip route delete table 200 default via 192.168.1.1

[Peer]
PublicKey = (obfuscated)
AllowedIPs = 0.0.0.0/0
Endpoint = (obfuscated, x.x.x.x):51817


My server is configured as IPv4 only.

Any suggestions will be highly appreciated. I will be glad to provide any additional information. Thanks!
Sponsor
Per Yngve Berg
DD-WRT Guru


Joined: 13 Aug 2013
Posts: 6868
Location: Romerike, Norway

PostPosted: Thu Mar 23, 2023 5:47    Post subject: Reply with quote
You are running a very old build. Newer builds have PBR build into the gui for WG.
Latest build is 52095

https://download1.dd-wrt.com/dd-wrtv2/downloads/betas/2023/
AndyIdol
DD-WRT Novice


Joined: 12 Sep 2010
Posts: 12

PostPosted: Thu Mar 23, 2023 7:10    Post subject: Reply with quote
Per Yngve Berg wrote:
You are running a very old build. Newer builds have PBR build into the gui for WG.
Latest build is 52095

https://download1.dd-wrt.com/dd-wrtv2/downloads/betas/2023/


I'm afraid this is the latest build available for my router:
Code:
https://dd-wrt.com/support/router-database/?model=RT-AC66U%20(AC1750)_-
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12889
Location: Netherlands

PostPosted: Thu Mar 23, 2023 7:13    Post subject: Reply with quote
No it is not, please read the forum guidelines with helpful pointers about how to research your router, where and what firmware to download, where and how to post and many other helpful tips:
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087

Coming from such an old build a reset to defaults *after* update is highly recommended.
Put settings in manually, never restore from a backup (to a different build).

_________________
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
AndyIdol
DD-WRT Novice


Joined: 12 Sep 2010
Posts: 12

PostPosted: Thu Mar 23, 2023 7:23    Post subject: Reply with quote
egc wrote:
No it is not, please read the forum guidelines with helpful pointers about how to research your router, where and what firmware to download, where and how to post and many other helpful tips:
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087

Coming from such an old build a reset to defaults *after* update is highly recommended.
Put settings in manually, never restore from a backup (to a different build).


Hmm, thanks Shocked

To be honest, this is somewhat counterintuitive, I was just following the most obvious path from the DD-WRT website. What is the purpose of the router database then?

Thanks again, I will try to use more recent version of the DD-WRT then and will get back to update the thread Smile
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12889
Location: Netherlands

PostPosted: Thu Mar 23, 2023 8:18    Post subject: Reply with quote
We do not control the router database Sad , but there is a disclaimer on it:

Quote:
DISCLAIMER

This database may not have up-to-date information and may even recommend a build which might cause issues. As such, you should check the device specific forum (Broadcom, Atheros, MediaTek, etc.) first before flashing any build recommended in this database. There you will find build specific topics that discuss any issues with a particular build/release. For more up-to-date firmware files, please visit the firmware faq.

YOU HAVE BEEN GIVEN FRIENDLY AND FAIR NOTICE 🙂

_________________
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
AndyIdol
DD-WRT Novice


Joined: 12 Sep 2010
Posts: 12

PostPosted: Fri Mar 24, 2023 14:27    Post subject: Reply with quote
egc wrote:
We do not control the router database Sad , but there is a disclaimer on it:

Quote:
DISCLAIMER

This database may not have up-to-date information and may even recommend a build which might cause issues. As such, you should check the device specific forum (Broadcom, Atheros, MediaTek, etc.) first before flashing any build recommended in this database. There you will find build specific topics that discuss any issues with a particular build/release. For more up-to-date firmware files, please visit the firmware faq.

YOU HAVE BEEN GIVEN FRIENDLY AND FAIR NOTICE 🙂


I see. OK.

By the way, I've downloaded the latest available build of DD-WRT and have imported tunnel settings from the config file. Now it works like a charm. Thanks!
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12889
Location: Netherlands

PostPosted: Fri Mar 24, 2023 14:32    Post subject: Reply with quote
Glad to hear it is working Smile

Have fun

_________________
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