Posted: Mon Mar 04, 2024 9:08 Post subject: Wireguard tunnel freezes TL-WR841N router network
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)
Joined: 18 Mar 2014 Posts: 12923 Location: Netherlands
Posted: Tue Mar 05, 2024 15:40 Post subject:
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.