Wireguard tunnel freezes TL-WR841N router network

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


Joined: 10 Jan 2010
Posts: 2

PostPosted: Mon Mar 04, 2024 9:08    Post subject: Wireguard tunnel freezes TL-WR841N router network Reply with quote
When I configure a Wireguard tunnel on a TL-WR841N router with a recent dd-wrt firmware, a few seconds after the router establishes the Wireguard connection the router can no longer be reached via any interface. The LEDs still show activity.

After some analysis I found out that this is caused by the command "ip -6 route flush cache" which is invoked in the eop-tunnel-raip.sh script. This command somehow kills the network on this router model. This router has only 4MB flash memory and uses busybox for the ip command.

As a workaround you can add the following as Startup commands under Administration/Commands:

Code:
cp /usr/bin/eop-tunnel-raip.sh /tmp/eop-tunnel-raip.sh
sed -i '/ip -6 route flush cache/d' /tmp/eop-tunnel-raip.sh
mount -o bind /tmp/eop-tunnel-raip.sh /usr/bin/eop-tunnel-raip.sh


This deletes the line with the problematic "ip -6 route flush cache" command from the script. After this change wireguard works well also on this router.

Regards,
Max

Basic information:
• Current DD-WRT build number in use: DD-WRT v3.0-r55109 std (02/09/24)
• Router brand / model and hardware version: TPLINK TL-WR841N (v8 and v9)
Sponsor
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12922
Location: Netherlands

PostPosted: Tue Mar 05, 2024 15:40    Post subject: Reply with quote
Adding WireGuard to these 4 MB routers was an afterthought and the router is probably missing some "essential" things.
There probably is no room to add these so I will add a workaround.

Edit: could/should be solved in next public beta

_________________
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