Connecting to a WireGuard VPN from Windows (2024)

Connecting to a WireGuard VPN from Windows

Starting from KeeneticOS version 3.3, you can useWireGuard VPNto connect to the local network of the Keenetic router remotely.

First, you need to configure the WireGuard server on the Keenetic device. Thefollowing instruction shows the process: 'Configuring a WireGuard VPN between two Keenetic routers'. Then move on to the VPN client setup.

Importante

If you want to configure a Keenetic router as a VPN server, make sure that it has apublic IP address, and when using theKeenDNSservice, that it works in the 'Direct access' mode. If any of these conditions are not met, connecting to such a server from the Internet will be impossible.

Below is an example of connecting to a server from a Windows operating system, usingWindows 10 1909 (19H2)as a reference.

To connect to the Keenetic WireGuard server on a Windows-based computer, you will need to download and install theWireGuardprogram from the official website.

  1. Launch the program and click on the down arrow next to 'Add Tunnel' in the lower-left corner. Select 'Add empty tunnel... [Ctrl+N]'.

    Connecting to a WireGuard VPN from Windows (1)

    The configuration window for connection to the remote WireGuard server Keenetic - 'Create new tunnel' - will open.

    Connecting to a WireGuard VPN from Windows (2)

    Importante

    Leave this window open, do not close it.

  2. Downloadwg-client.conffile to your computer. You can save it to your Desktop. Open it in a text editor, for example, inNotepad++.

    Connecting to a WireGuard VPN from Windows (3)

    You will see a ready-made configuration in which you will need to enter the settings for the Windows WireGuard client [Interface] and the remote WireGuard server Keenetic [Peer].

    Connecting to a WireGuard VPN from Windows (4)

    Importante

    Leave this window open, do not close it.

  3. Go back to the 'Create new tunnel' window of step 1 and copy the Windows WireGuard client private key to your computer clipboard from the 'PrivateKey =' field.

    Connecting to a WireGuard VPN from Windows (5)

    Importante

    Leave this window open, do not close it.

  4. The copied WireGuard client private key must be inserted into the ready-made configuration from step 2 into the 'PrivateKey =' line.

    Connecting to a WireGuard VPN from Windows (6)

    Importante

    Leave this window open, do not close it.

  5. Now, set up a remote connection on the previously configuredWireGuard serverside.

    Connect to the router'sweb interfaceand go to the 'Internet' - 'Other connections' menu. Click on the previously created WireGuard connection ('WG-S') and then the 'Add Peer' button. Enter the name of the tunnel 'wg-windows-client' in the opened form of the peer settings.

    In the 'Public key' field of the web interface, insert the Windows WireGuard client key from step 1, which should be copied from the 'Public key' field to the clipboard.

    Connecting to a WireGuard VPN from Windows (7)

    You can close the 'Create new tunnel' window, click 'Cancel'.

    Importante

    Leave the WireGuard connection window open, do not close it.

    In the 'Allowed IPs' fields, specify the address from which traffic will be allowed to the server in IP/bitmask format — 172.16.82.6/32.

    In the 'Persistent keepalive' field, specify the frequency of attempts to check the availability of the remote connection side. Usually, a 10-15 second interval between checks is sufficient. By default, the 'Persistent keepalive' value in peer settings is 30 seconds.

    Click 'Save'.

    Connecting to a WireGuard VPN from Windows (8)

  6. Back to configuringwg-client.conf

    [Interface]PrivateKey = wAG52nyfQEEMOnt1W9Y4SdEOQB8XYaggenoUI6Thz3A=Address = 172.16.82.6/24[Peer]PublicKey = 1YVx+x3C817V9YdhUtpUhzyDLVj5tnK2m//WjFGynm4=AllowedIPs = 172.16.82.1/32, 192.168.22.0/24Endpoint = enpwgwrkserver.dynns.com:16631PersistentKeepalive = 5

    Configuring the client [Interface]:

    In the 'PrivateKey' field of the [Interface], you have already entered the Windows WireGuard client key in step 4.

    Set the IP address in the 'Address' field of the WireGuard client in IP/bitmask format — 172.16.82.6/24 (internal tunnel address). It is possible to use a different subnet, choosing it from theprivate address rangeand avoiding overlapping with other subnets configured on these devices.

    Configuring the server [Peer]:

    In the 'PublicKey' field, insert the public key of the server, which can be copied to the clipboard from WireGuard settings in the web interface of the router:

    Connecting to a WireGuard VPN from Windows (9)

    In the 'Allowed IPs' field, enter the allowed IP addresses in IP/bitmask format — 172.16.82.1/32 (internal server address) and 192.168.22.0/24 (local segment address of the Keenetic router).

    In the 'Endpoint' field, enter the public IP address or domain name of the WireGuard server and the listening port on which the WireGuard client will set the connection.

    In the 'PersistentKeepalive' field, specify the frequency of attempts to verify the availability of the connection's remote side. Usually, a 10-15 second interval between checks is sufficient.

    Press the Ctrl+S key combination or select the 'File' > 'Save' menu.

  7. In the open WireGuard connection settings window from step 6, click on 'Import tunnel(s) from file' and select 'wg-client.conf' on the Desktop, click on 'Open'.

    Connecting to a WireGuard VPN from Windows (10)

  8. After adding the 'wg-client' configuration to WireGuard, a new connection will appear in the 'Tunnels' list.

    Click 'Activate'.

    Connecting to a WireGuard VPN from Windows (11)

    If the setting is correct, you will see a green indicator in front of the 'Status' line.

    Connecting to a WireGuard VPN from Windows (12)

    You can send ICMP packets to its IP address at the Windows command line to verify server availability.

    Connecting to a WireGuard VPN from Windows (13)

    Check the availability of the server web interface (in our example, it is a Keenetic with IP address 192.168.22.1).

    Connecting to a WireGuard VPN from Windows (14)

    The setup is complete.

If you want to allow the connected clients to access the Internet through this VPN connection, make an additional configuration from this articleInternet access via WireGuard VPN.

Please note that on the VPN client side, in thewg-client.confconfiguration file, in the '[Interface]' section, you need to specify the DNS server in the 'DNS =' field. In our example, the Google DNS server address is set to 8.8.8.8 and 0.0.0.0/0 value for AllowedIPs =

[Interface]PrivateKey = wAG52nyfQEEMOnt1W9Y4SdEOQB8XYaggenoUI6Thz3A=Address = 172.16.82.6/24DNS = 8.8.8.8[Peer]PublicKey = 1YVx+x3C817V9YdhUtpUhzyDLVj5tnK2m//WjFGynm4=AllowedIPs = 172.16.82.1/32, 192.168.22.0/24, 0.0.0.0/0Endpoint = enpwgwrkserver.dynns.com:16631PersistentKeepalive = 5

Nota

Provided that there is one peer in the configuration and the allowed network 'all addresses' is specified, the application will automatically generate a firewall rule on the computer that prohibits traffic past the tunnel.

Connecting to a WireGuard VPN from Windows (15)

The articleConnecting a Windows 7 computer to a remote Keenetic network through the WireGuard tunnelpresents another option when all traffic is routed to the tunnel and the VPN client accesses the Internet through it.

In questa sezione:

Connecting to a WireGuard VPN from Windows (2024)

FAQs

How to connect to WireGuard VPN from Windows? ›

Connect and disconnect
  1. Open the WireGuard app.
  2. Select a Server in the list to the left.
  3. Press "Activate" to connect, and "Deactivate" to disconnect.
  4. You're all set! You can visit our Connection check to check your connection.
Apr 25, 2024

How do I know if my WireGuard connection is working? ›

To check if WireGuard Server is working properly

The simpliest way is to use a cell phone with WireGuard official client app installed, turn off its Wi-Fi connection, and only connect to Internet via 3G/4G/5G.

How to setup a VPN tunnel using WireGuard? ›

Tunnel Configuration
  1. Navigate to VPN > WireGuard > Tunnels.
  2. Click Add Tunnel.
  3. Fill in the options using the information determined earlier, with variations noted for each site: Enabled. Checked. HQ Settings. Description. Satellite Office VPN. ...
  4. Copy the public key from each firewall and note which is which.
  5. Click Save.
Apr 3, 2024

How does WireGuard VPN work? ›

How does WireGuard work? WireGuard uses state-of-the-art cryptography and network code to create an encrypted tunnel between two devices based on symmetric encryption, and more. Using some clever strategies, it even works when the client device's IP address changes.

How do I connect to a VPN on Windows? ›

Connect to a VPN from the Windows Settings page:
  1. Select Start > Settings > Network & internet > VPN.
  2. Next to the VPN connection you want to use, select Connect.
  3. If prompted, enter your username and password or other sign in info.

Does Windows VPN support WireGuard? ›

Initially released for the Linux kernel, it is now cross-platform (Windows, macOS, BSD, iOS, Android) and widely deployable.

How to easily configure WireGuard? ›

You can set up WireGuard VPN tunnel by just following the 5 main steps given below:
  1. Download and install WireGuard for both server and clients.
  2. Generate cryptographic key pairs(Public and private keys) for both server and clients.
  3. Configure WireGuard tunnel interfaces on both server and clients.
May 13, 2024

What port does WireGuard VPN use? ›

By default, WireGuard uses UDP port 51820. L2TP (Layer Two Tunneling Protocol) - this one uses various port numbers as well; TCP port 1701, UDP port 4500, and UDP port 500.

Is VPN WireGuard safe? ›

Is WireGuard secure? WireGuard is considered by many to be one of the safest, most secure VPN protocol options available today. Simplified design using less code equals fewer bugs and security vulnerabilities, while WireGuard's faster state-of-the-art cryptography employs superior default security settings.

What is the difference between OpenVPN and WireGuard? ›

As we've discussed, OpenVPN is using the classic SSL data protocol for delivery. WireGuard uses User Datagram Protocol (UDP). The main difference is that SSL requires an authentication procedure, which is called a handshake, while UDP doesn't need a connection to communicate.

Can WireGuard VPN be tracked? ›

WireGuard does not provide obfuscation, meaning that internet service providers (ISPs) can see when you are using it — although, of course, they can't see what you're using it for.

Does Windows 10 support WireGuard? ›

To use WireGuard on Windows, we recommend downloading IVPN's Windows client, which supports the protocol.

How do I run WireGuard on Windows without admin? ›

Wireguard Windows running GUI as non-admin
  1. Install WireGuard configuration file. Start by installing the WireGuard quick configuration file as an administrator. ...
  2. RegEdit editing. Now for some deep dive stuffRun RegEdit as an administrator. ...
  3. Providing permissions to non-admin user. ...
  4. The last step.
Nov 25, 2022

How do I connect to Forticlient VPN on Windows? ›

Connecting to SSL VPN
  1. On the Remote Access tab, select the VPN connection from the dropdown list. ...
  2. Enter your username and password.
  3. Click the Connect button.
  4. After connecting, you can now browse your remote network. ...
  5. Click the Disconnect button when you are ready to terminate the VPN session.

Top Articles
Latest Posts
Article information

Author: Chrissy Homenick

Last Updated:

Views: 6222

Rating: 4.3 / 5 (74 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Chrissy Homenick

Birthday: 2001-10-22

Address: 611 Kuhn Oval, Feltonbury, NY 02783-3818

Phone: +96619177651654

Job: Mining Representative

Hobby: amateur radio, Sculling, Knife making, Gardening, Watching movies, Gunsmithing, Video gaming

Introduction: My name is Chrissy Homenick, I am a tender, funny, determined, tender, glorious, fancy, enthusiastic person who loves writing and wants to share my knowledge and understanding with you.