Skip to content

Create a Wireguard tunnel

Prerequisites

Before you begin, make sure you have downloaded and installed WireGuard from its official website, suitable for your operating system.

Steps

  1. When we open WireGuard, we select “Add tunnel” at the bottom left, then choose “Add empty tunnel”.

    New Tunnel

  2. We copy the public key provided to us and give our tunnel a name.

  3. In the Alemca application, we access the page for the device we want to connect to remotely. Here, we click on Alpha Remote Extended. Alpha Remote Extended

  4. By clicking on “Declare user access point”, we paste the copied public key (from Wireguard Tunnel) into the corresponding field in the modal that appears. Declare devices

  5. After that, we copy the configurations provided by the application and paste them into the appropriate fields in WireGuard, as shown below. Once this is done, we save (by clicking on “Save”) and activate our tunnel.

    [Interface]
    PrivateKey = ***
    Address = ***
    ListenPort = ***
    
    [Peer]
    PublicKey = ***
    AllowedIPs = ***
    Endpoint = ***
    

Warning

Since the Windows 24H2 update, the WireGuard client requires a different configuration to function or to enable a Windows feature:

  • For the Windows feature, here is the official documentation
  • For the configuration file, change “AllowedIPs = 192.0.2.254/32, 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16” in Peer to:

    [Interface]
    PrivateKey = ***
    Address = ***
    ListenPort = ***
    
    [Peer]
    PublicKey = ***
    AllowedIPs = 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16
    Endpoint = ***
    
  1. In the “Bridge to remote network” section, enter the IP address of the device connected to the network, for example: 192.168.1.10/32. Declare devices

Warning

  • If you want to have access to all the networks on the remote site, you will need to enter its network address, otherwise it will not work despite the confirmation message. (Otherwise, use the machine address, for example 192.168.1.10/32)
  • You can calculate this using the following site
  • Select the desired subnet, for example /24, then enter the IP address you want to use, for example 192.168.1.10, then press Calculate.
    • This will give you: Ipcalc
  • All that remains is to fill in the field correctly in our example 192.168.1.0/24.

  • When you click Connect, you will receive a notification at the bottom as follows: Success

Congratulations, your tunnel has been successfully created.

Tip

  • To check, we can ping the address "192.168.1.10".
  • Please note that the “Remote EXTENDED” solution is only for one user at a time (for now). It is therefore not possible to open a “Remote EXTENDED” bridge on the same device for two different users.