Author
Message
omgddwrt DD-WRT Novice Joined: 02 Nov 2023 Posts: 3
Posted: Thu Mar 07, 2024 4:30 Post subject: How to route all traffic over Wireguard to my home router?
I've got a TP-Link TL-WDR3600 v1 running DD-WRT v3.0-r46788 std (05/28/21).
I've already set up a Wireguard tunnel to it successfully to access my LAN.
I'd like to be able to connect my laptop to it while on a public wifi and route all my traffic over Wireguard to exit over my home ISP.
I thought that might be what "Access Point Mode" is from https://wiki.dd-wrt.com/wiki/index.php/Wireguard#Setup_Instructions , but I ran the command mentioned there:
Code: iptables -t nat -I POSTROUTING -o br0 -j SNAT --to $(nvram get lan_ipaddr)
, but although I could connect to the tunnel (wireguard settings attached) - says that it was handshaking, I couldn't connect to any websites, I guess outgoing traffic is being blocked at the router end.
How can I get Wireguard to tunnel all my traffic to my home router and exit from there?
Can anyone point me to a guide for it, or explain how I can do it? I've attached pictures of the settings on the router and Wireguard on the laptop.
Back to top
Sponsor
egc DD-WRT Guru Joined: 18 Mar 2014 Posts: 12922 Location: Netherlands
Posted: Thu Mar 07, 2024 8:57 Post subject:
Welcome to our forum
Unfortunately you are running an outdated build.
Upgrade to a current build (latest is 55303)
After upgrade reset to defaults and rebuild from scratch do not restore from a backup!
WireGuard docs are a sticky in this forum:
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=327397
You need the WireGuard Server setup guide.
General must read information, see 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 _________________ 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
Back to top
omgddwrt DD-WRT Novice Joined: 02 Nov 2023 Posts: 3
Posted: Fri Mar 08, 2024 3:14 Post subject:
egc wrote: Welcome to our forum
Thanks!
I will do the update soon but what settings should I be changing once I do that?
I looked at the wireguard setup guide from the link you posted but it's pretty complex...
Or do you think the same settings that I have shown will work once I update?
Edit: hmm I just noticed in the server setup guide there is a checkbox that I don't have on mine, "Allow Clients WAN Access"...
Back to top
omgddwrt DD-WRT Novice Joined: 02 Nov 2023 Posts: 3
Posted: Sun Mar 17, 2024 21:55 Post subject:
egc wrote: Unfortunately you are running an outdated build.
Upgrade to a current build (latest is 55303)
After upgrade reset to defaults and rebuild from scratch do not restore from a backup!
Well, it took a LONG time to manually input all my settings again, but I can happily say that after updating the Wireguard tunnel works perfectly.
Thanks!
Back to top