Connecting to a WireGuard VPN from Android (2024)

Connecting to a WireGuard VPN from Android

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 smartphone running the Android operating system.

To connect to the Keenetic WireGuard server on your Android mobile device, you can use the free applicationWireGuard.

But you can also use other applications that support WireGuard VPN, for example,VPN Client Pro.

  1. Install theWireGuard client, find the WireGuard shortcut on the desktop, or search and launch it.

    Connecting to a WireGuard VPN from Android (1)

  2. The main program window will open. In the lower right corner of the screen, click on the '+' icon to configure the WireGuard client on your phone. Then click on 'Create from scratch'.

    Connecting to a WireGuard VPN from Android (2)

  3. Configuring the WireGuard client on your phone.

    In the 'Name' field, enter a name for the connection, for example, 'Keenetic-C' (you can specify any name you like).

    Go on to the creation of the Private and Public keys. Click on theConnecting to a WireGuard VPN from Android (3)symbol to generate a pair of keys. Save the Public key value for future use. You'll need it in the next steps.

    Connecting to a WireGuard VPN from Android (4)

    Set the IP address in the 'Addresses' field of the WireGuard client in IP/bitmask format — 172.16.82.4/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.

    Save the settings by clicking on the floppy disk icon in the upper right corner of the screen.

    Connecting to a WireGuard VPN from Android (5)

  4. If you haven't already configured the WireGuard server, do it according to the following instructions:Configuring WireGuard VPN between two Keenetic routers.

    After that, in the settings of the WireGuard connection created in the previous step, click 'Add peer'. A form with peer settings will open. Specify the name of the tunnel 'Keenetic-C'.

    In the 'Public Key' field, specify the key that was generated earlier in step 3 of this article.

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

    In the 'Persistent keepalive' field, specify the frequency of attempts to check the remote connection side's availability. 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 Android (6)

  5. On the same WireGuard connection settings page, copy the previously generated server public key to the phone clipboard by clicking on 'Copy public key to clipboard' (you will need it in the next step).

    Connecting to a WireGuard VPN from Android (7)

  6. Go back to the WireGuard client settings on your phone.

    Click on 'Add Peer' and add a connection to the WireGuard server.

    In the 'Public key' field, insert the server key that was saved in the previous step.

    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.

    Save the settings by clicking on the floppy disk icon in the upper right corner of the screen.

    Connecting to a WireGuard VPN from Android (8)

  7. Enable the WireGuard server on the Keenetic router and WireGuard client on your smartphone, and check server availability on the client side.

    Once enabled, if the configuration is correct, the server's web interface will be available. In our example, it is a Keenetic router with the IP address 192.168.22.1.

    Connecting to a WireGuard VPN from Android (9)

    To check the server's availability, you can send ICMP packets to an IP address, for example, using the programPingTools Network Utilities.

    Connecting to a WireGuard VPN from Android (10)

    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.

In questa sezione:

Connecting to a WireGuard VPN from Android (2024)

References

Top Articles
Latest Posts
Article information

Author: Carmelo Roob

Last Updated:

Views: 5723

Rating: 4.4 / 5 (65 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Carmelo Roob

Birthday: 1995-01-09

Address: Apt. 915 481 Sipes Cliff, New Gonzalobury, CO 80176

Phone: +6773780339780

Job: Sales Executive

Hobby: Gaming, Jogging, Rugby, Video gaming, Handball, Ice skating, Web surfing

Introduction: My name is Carmelo Roob, I am a modern, handsome, delightful, comfortable, attractive, vast, good person who loves writing and wants to share my knowledge and understanding with you.