WireGuard
WireGuard¶
Server configuration¶
Follow these steps to configure and start the wireguard server.
-
In the Local IP Address field, enter the server's internal network IP address.
-
In the Local Port ID field, enter the port number used by the server for monitoring.
-
In the Local Public Key field, if no public key exists, click the button to generate the server's public key. This key is used for authentication and establishing a secure connection with clients.
-
In the Allowed-ips field, enter the range of IP addresses that clients are allowed to access.
-
In the Peer Public Key field, enter the client's public key. This key is used for authentication and establishing a secure connection with the server.
-
In the Endpoint field, enter the public IP address and port of the client that will connect to the server.
-
In the Keepalive field, enter the time interval (in seconds) for maintaining the connection (e.g., 25).
Starting the WireGuard Server¶
Click Start to activate the WireGuard server. Without starting the server, you cannot connect to it using the configuration file.
To verify if the WireGuard server is working correctly:
-
Install the official WireGuard client app on a smartphone.
-
Disable the smartphone's Wi-Fi and connect to the Internet via 3G/4G/5G.
-
Open the WireGuard app and import the configuration file using the QR code.
-
Enable the connection and check if the smartphone has Internet access and if its IP address matches the WireGuard server's IP address.
| WireGuard Configuration | Configuration |
|---|---|
| Enable | [Toggle to enable] |
| *Local IP Address | [Enter the server's internal IP] |
| *Local Port ID | [Enter the server's monitoring port] |
| Local Public Key | [Generate or enter the server's public key] |
| *Allowed-ips | [Enter the allowed client IP range] |
| *Peer Public Key | [Enter the client's public key] |
| *Endpoint | [Enter the client's public IP and port] |
| *Keepalive | [Enter the connection keepalive interval] |
| Operation | Save |