[SOLVED]Wireguard: No traffic

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


Joined: 18 Jan 2018
Posts: 8

PostPosted: Mon Dec 28, 2020 9:39    Post subject: [SOLVED]Wireguard: No traffic Reply with quote
Hi
I wanted to set up wireguard on my TP-Link WDR3600 alongside OpenVPN to compare speeds.
I have a Fritzbox as my modem and router. The DD-WRT router gets port 51820 (tcp/udp) forwarded and acts as an access point.
However I can't get it to work.

I got the setup PDF from here: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=322206
I made the neccesary things and tried to connect from my phone.
I get no traffic at all. No peer connection in the peer view on the router.
Wireguard on the phone shows almost no traffic.

Any help what to change to make it work?
Sponsor
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12917
Location: Netherlands

PostPosted: Mon Dec 28, 2020 10:25    Post subject: Reply with quote
On a first glance I do not see anything obviously wrong.

The problem I think is that you have setup the WG server on a WAP ( https://wiki.dd-wrt.com/wiki/index.php/Wireless_Access_Point )

You need some extra rules when setting up a VPN server on a WAP (setting up on a WAP is described in the Advanced setup guide).

Basically try with adding this to the firewall of the WAP:
Code:
iptables -t nat -I POSTROUTING -o br0 -j SNAT --to $(nvram get lan_ipaddr)


also check if the port forwarding is working as intended

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


Joined: 18 Jan 2018
Posts: 8

PostPosted: Mon Dec 28, 2020 10:36    Post subject: Reply with quote
Hi egc

it finally works. Seems the keys change with every change made and I didn't update them. Also added your rule and it finally works Smile

Thanks
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