How to set up WireGuard® on a DD-WRT router


In this article, you will learn how to set up DD-WRT VPN using a WireGuard® connection on your DD-WRT firmware router.

 

To proceed, you need to have DD-WRT build of 43045 or higher and an active Surfshark subscription. You can find the available plans on Surfshark’s pricing page.

 

Credentials and server selection

Before setting up the router, you will need to obtain the credentials for the manual setup and select a server to connect to.
 

NOTE: These are not your regular credentials, such as your email and password.
 

  1. Head to the Surfshark login page and log in. Then, click on VPN -> manual setup.



  2. Select set up manually.



  3. Choose the WireGuard protocol.



  4. Once there, select I don't have a key pair.



    NOTE: If you have already created a key pair, simply press I have a key pair, and enter your public key.


  5. Enter a name for the keypair, and click next.



  6. Click generate new key pair.



  7. You will be able to see a public and a private key pair. Make sure to save both of them.

 

Choose a Surfshark VPN server

  1. Head to the Locations tab and locate the server that you wish to connect to.


     
  2. Click on the download icon to the right of the server name.



  3. Click on the download icon.



Configure WireGuard

  1. Open the control panel of your router. You can reach it by entering the IP address of your router into the URL bar in your browser.

    Most often, this IP address is used to reach the DD-WRT router: 192.168.1.1

  2. Once you log into the router panel, go to the Setup tab and select Tunnels. Click on Add Tunnel.
    ddwrt1.png

  3. Click on Enable next to the Tunnel setting, and select WireGuard as your protocol. Once selected, click Save.
    mceclip0.png

  4. First, paste the Private Key (refer to Get your key pair sections in this article) in the Local Public Key field. Then, fill in the following information:

    DNS Servers via Tunnel: 162.252.172.57, 149.154.159.92
    Firewall inbound: Check
    Kill Switch: Check
    Listen port: 51820
    MTU: 1420


    new_ddwrt_333333333.png

  5. Click on Add Peer and fill in the following information:
    Endpoint: Enable
    Endpoint Address: Enter the address of the Surfshark server (refer to Choose a Surfshark server section in this article)
    Allowed IPs: 0.0.0.0/0
    Persistent Keepalive: 30
    Use Pre-shared Key: Disable
    Peer Public Key: Enter your public key (refer to Get your key pair sections in this article)

    wgddwrtfixed1.png

  6. Hit Apply Settings and Save.

 

Ensure the connection is successful

We always recommend checking if Surfshark VPN is working after setting it up for the first time. You can easily do it by performing Surfshark IP leak test and a DNS leak test. For your convenience, both are available on our website.




You may also be interested in:

Was this article helpful?
Thank you for your feedback!