DDWRT router as WireGuard client to PIVPN server

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


Joined: 13 Jan 2022
Posts: 2

PostPosted: Thu Jan 13, 2022 22:52    Post subject: DDWRT router as WireGuard client to PIVPN server Reply with quote
Are there any tutorials or guides on connecting a DDWRT router as WireGuard client to a personal Wireguard PiVPN server? I have seen guide for commercial provider but none to a personal server on a Raspberry Pi. Thank you.
Sponsor
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 9605
Location: Netherlands

PostPosted: Fri Jan 14, 2022 11:01    Post subject: Reply with quote
All relevant guides can be found as a sticky in this forum, link also in my signature at the bottom of this post.

For a client simply add/import the client config file which is made by the server.

To get the best out of DDWRT and the forum read the forum guidelines full of helpful pointers:
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087

_________________
Routers:Netgear R7800, R6400v1, R6400v2, Linksys EA8500, EA6900 (XvortexCFE), E2000 (converted WRT320N), 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
maestrojoe
DD-WRT Novice


Joined: 13 Jan 2022
Posts: 2

PostPosted: Fri Jan 14, 2022 16:19    Post subject: Reply with quote
egc wrote:
For a client simply add/import the client config file which is made by the server.

Thank you. I did that, but is there a command on the Wireguard PIVPN server to add to the client config file the "Local Public Key" generated by DDWRT?
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 9605
Location: Netherlands

PostPosted: Fri Jan 14, 2022 16:29    Post subject: Reply with quote
It works the other way around, usually the server generates the key pair for the client (at least that is how it works in DDWRT and other implementations).

The server saves the public key and uses that. Furthermore the server adds the private key to the config file for the client to use together with the other necessary settings.

The client then uses that private key (and calculates the public key again from it and will show that)

The client *can* generate its own key pair in that case you have to transfer the public key to the server.

_________________
Routers:Netgear R7800, R6400v1, R6400v2, Linksys EA8500, EA6900 (XvortexCFE), E2000 (converted WRT320N), 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 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