No traffic is routed via Wireguard

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Goto page 1, 2  Next
Author Message
San_Bastiano_90
DD-WRT Novice


Joined: 09 Feb 2025
Posts: 14

PostPosted: Mon Feb 10, 2025 9:08    Post subject: No traffic is routed via Wireguard Reply with quote
Hey community,
I recently setup my Asus RT-AC56U with dd-wrt (v3.0-r59429 std (01/31/25)). The router is configured as 'repeater bridge' and is connected successfully to my main router. Additional to that, I setup (see attached screenshot) a WireGuard tunnel (provider: Surfshark) by using a config file and their provided tutorial. Accordingly to the WireGuard status, it successfully established a connection to Surfshark (status: endpoint: 185.141.119.68:51820 latest handshake: 4 minutes, 8 seconds ago transfer: 92 B received, 320.72 KiB sent). But as you can see, there is no traffic routed via this tunnel. I also followed the setup guide pdf provided in this forum.
When I enter the command 'ip route show', I can see that the default is not the tunnel. So, I manually changed that to the tunnel (oet1) by entering the command 'ip route add default dev oet1'.

0.0.0.0/1 dev oet1 scope link
default dev oet1 scope link
10.14.0.0/24 dev oet1 scope link src 10.14.0.2
127.0.0.0/8 dev lo scope link
128.0.0.0/1 dev oet1 scope link
149.154.159.92 dev oet1 scope link
162.252.172.57 dev oet1 scope link
192.168.178.0/24 dev br0 scope link src 192.168.178.2

Result: There is still no traffic routed via the tunnel.
By visiting e.g. https://whatismyipaddress.com/, I noticed that it still exposes my real IP.
I would really appreciate your help for figuring out the problem.



config.png
 Description:
WireGuard configuration
 Filesize:  59.02 KB
 Viewed:  293 Time(s)

config.png


Sponsor
Wizo
DD-WRT User


Joined: 08 Jun 2023
Posts: 96
Location: Essex. England.

PostPosted: Mon Feb 10, 2025 9:37    Post subject: Reply with quote
https://support.surfshark.com/hc/en-us/articles/7161303618834-How-to-set-up-WireGuard-on-a-DD-WRT-router

MTU to low :1420
Keep alive :30
San_Bastiano_90
DD-WRT Novice


Joined: 09 Feb 2025
Posts: 14

PostPosted: Mon Feb 10, 2025 10:01    Post subject: Reply with quote
Thanks for the respond, but the problem persists.
Wizo
DD-WRT User


Joined: 08 Jun 2023
Posts: 96
Location: Essex. England.

PostPosted: Mon Feb 10, 2025 10:15    Post subject: Reply with quote
Works great here, must be your network settings.


firefox_LI7Rl011GF.png
 Description:
 Filesize:  94.99 KB
 Viewed:  268 Time(s)

firefox_LI7Rl011GF.png


San_Bastiano_90
DD-WRT Novice


Joined: 09 Feb 2025
Posts: 14

PostPosted: Mon Feb 10, 2025 10:22    Post subject: Reply with quote
Maybe I give you some background information on my setup. My main router has the IP: 192.168.178.1. The Asus router has the ip: 192.168.178.2 and its gateway/local dns: 192.168.178.1.
Basically, I followed the instructions I found online for setting it up as a repeater (see attachement). Do you think this could cause a problem (the repeater function works perfectly)?



Wlan Repeater - DD-WRT.pdf
 Description:

Download
 Filename:  Wlan Repeater - DD-WRT.pdf
 Filesize:  749.22 KB
 Downloaded:  3 Time(s)

Wizo
DD-WRT User


Joined: 08 Jun 2023
Posts: 96
Location: Essex. England.

PostPosted: Mon Feb 10, 2025 10:28    Post subject: Reply with quote
Sorry I am not knowledgeable in such matters, One of the bigger boys will need to comment on that!
But wireguard Surfshark works fine with DDWRT.



nPerfGui_PFYSJfPfDA.png
 Description:
 Filesize:  85.43 KB
 Viewed:  264 Time(s)

nPerfGui_PFYSJfPfDA.png


San_Bastiano_90
DD-WRT Novice


Joined: 09 Feb 2025
Posts: 14

PostPosted: Mon Feb 10, 2025 10:47    Post subject: Reply with quote
Ok, thanks anyway. I guess your router is directly connected to the internet, right? Hopefully someone has an idea...
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 13647
Location: Netherlands

PostPosted: Mon Feb 10, 2025 16:39    Post subject: Reply with quote
Quote:
When I enter the command 'ip route show', I can see that the default is not the tunnel. So, I manually changed that to the tunnel (oet1) by entering the command 'ip route add default dev oet1'.

Please do not do that.

The default route is already going via the tunnel.

The "problem" is you are setting this VPN up on a repeater bridge.

All traffic will just bypass this router and thus the VPN on its way to the main router, only traffic which goes through your router will use the VPN, e.g. a guest wifi (unbridged VAP) will use the VPN.

The WireGuard advanced setup guide has a paragraph about a "Client on a WAP", a repeater bridge in this case is similar to a Wireless Access Point (WAP) so research VAP on a WAP

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


Joined: 09 Feb 2025
Posts: 14

PostPosted: Tue Feb 11, 2025 13:03    Post subject: Reply with quote
Thanks for the tip. I will try it and keep you posted.
San_Bastiano_90
DD-WRT Novice


Joined: 09 Feb 2025
Posts: 14

PostPosted: Wed Feb 12, 2025 9:16    Post subject: Reply with quote
I followed the instructions stated in "DDWRT WireGuard Advanced Setup v26.pdf".
Instructions on page 2:

    DHCP server Disabled (=off and NOT set as Forwarder!) (deactivated any when using repeater bridge)
    IP outside DHCP range
    Gateway and Local DNS pointing to primary router
    DNSMasq enabled
    Router in Gateway mode
    Computer is connected wirelessly to the repeater
    Firewall is off

I also added to the firewall the following commands:

    iptables -t raw -D PREROUTING -j NOTRACK >/dev/null 2>&1
    iptables -t raw -D PREROUTING -j CT --notrack >/dev/null 2>&1

Instructions on page 6 (Client on WAP):

    NAT via Tunnel: Enable
    Allowed IP's: 0.0.0.0/1,128.0.0.0/1
    Route Allowed IP's enabled
    Endpoint address: servers address and port

Result: Afer rebooting, the Asus router is working as repeater and the WireGuard tunnel itself is running (handshake took place). But, my real IP is still exposed => For some reason the tunnel is still not used Sad .
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 13647
Location: Netherlands

PostPosted: Wed Feb 12, 2025 10:04    Post subject: Reply with quote
that is expected as traffic just bypasses your router as it is a repeater/WAP.

Only if you use a guest wifi (VAP on a WAP) then your traffic will go through the router and thus will use the VPN.

Alternatively point your LAN clients (computer/laptop) to use the repeater as gateway

For VAP on a WAP see the paragraph in my notes: https://github.com/egc112/ddwrt/blob/main/DDWRT%20Virtual%20Access%20Point-9.pdf

You can download it by clicking the download icon

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


Joined: 09 Feb 2025
Posts: 14

PostPosted: Wed Feb 12, 2025 10:08    Post subject: Reply with quote
I think I setup already a "guest" WIFI (see attached screenshot). The Fritzbox is the primary router the Asus connects to. Please correct me if I am wrong


Selection_001.png
 Description:
 Filesize:  100.56 KB
 Viewed:  219 Time(s)

Selection_001.png


egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 13647
Location: Netherlands

PostPosted: Wed Feb 12, 2025 10:58    Post subject: Reply with quote
Not really it is just another SSID on the same bridge/subnet

Use the 5 GHz Radio as the 2.4 GHz is already doing the back-haul

On the 5 GHz Radio setup a guest wifi according to the doc I linked, use the "Bridge Setup" that way you can also add some LAN ports to this guest wifi if needed

_________________
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


Last edited by egc on Wed Feb 12, 2025 12:21; edited 1 time in total
San_Bastiano_90
DD-WRT Novice


Joined: 09 Feb 2025
Posts: 14

PostPosted: Wed Feb 12, 2025 11:24    Post subject: Reply with quote
Ok. Is it also necessary to setup it's own DHCP Server or should I go with the simple setup as described?
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 13647
Location: Netherlands

PostPosted: Wed Feb 12, 2025 12:21    Post subject: Reply with quote
San_Bastiano_90 wrote:
Ok. Is it also necessary to setup it's own DHCP Server or should I go with the simple setup as described?


Yes it has to be on its own subnet so has to have its own DHCP server that is what a guest wifi is about 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
Goto page 1, 2  Next Display posts from previous:    Page 1 of 2
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