You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -7,7 +7,7 @@ It is designed to be faster, simpler, and more functional than IPsec and OpenVPN
7
7
and easy-to-configure VPN solution that uses cutting-edge cryptography.
8
8
It is designed to be simpler to configure than OpenVPN and to offer a lower attack surface.
9
9
10
-
NethSecurity provides a WireGuard server and client that can be configured from the command line interface.
10
+
NethSecurity provides a WireGuard server and client that can be configured from the web interface.
11
11
12
12
Features:
13
13
@@ -19,230 +19,80 @@ Features:
19
19
- Enhanced security with optional pre-shared keys
20
20
- Standard WireGuard configuration file import capability
21
21
22
-
Current limitations:
22
+
Server Configuration
23
+
====================
23
24
24
-
- Supported networks are restricted to /24 subnet masks
25
-
- Peer IP addresses are fixed and cannot be modified after creation
26
-
- WireGuard interfaces appear as "unknown interface" in the Network page
25
+
It's possible to create multiple WireGuard server instances, each with its own isolated network zone. NethSecurity will automatically open the necessary firewall ports
26
+
to allow incoming connections to the WireGuard server and create a VPN zone to allow management of how the traffic is routed between zones.
27
27
28
-
Quickstart
29
-
==========
28
+
On the contrary of the OpenVPN server, there's no ties to the users database, accounts (peers) are created and managed directly inside the WireGuard interface.
30
29
31
-
The configuration is composed by the following steps:
30
+
To create a WireGuard server, click on :guilabel:`Add server`, then fill the form with the desired configuration. The fields are the following:
32
31
33
-
1. Get good defaults to avoid conflicts with existing configurations
34
-
2. Create the server instance
35
-
3. Add a new account (peer)
32
+
- `Status`: enable or disable the WireGuard server instance
33
+
- `Name`: the name of the WireGuard server instance, this is not the name of the network interface, it will be automatically created as `wgX`, where `X` is a number
34
+
- `VPN network`: the network CIDR that will be used by the WireGuard server, the server will automatically get the first IP of the network. Make sure this network does not overlap with any existing one
35
+
- `UDP port`: the port on which the WireGuard server listens for incoming connections
36
+
- `Public endpoint`: the public IP address or FQDN of the server
36
37
37
-
The following examples use the ``ns.wireguard`` API to configure the WireGuard server and peers.
38
+
Under advanced settings, it's possible to configure additional options:
38
39
39
-
Get good defaults
40
-
-----------------
40
+
- `MTU`: to manually set the MTU of the WireGuard interface
41
+
- `DNS servers`: to set custom DNS servers that will be pushed to the clients, useful to avoid DNS leaks
41
42
42
-
Before creating an instance, retrieve some valid defaults. Use the calculated defaults to create the instance:
43
+
After creating the server, it's possible to add new clients (peers) directly from the WireGuard interface, click :guilabel:`Add peer` and fill the form as the following:
- `Reserved IP`: the static IP address that will be assigned to the peer, must be inside the VPN network, it will be pre-filled with the next available IP
48
+
- `Pre-shared key`: if enabled, a pre-shared key will be automatically created to enhance security
49
+
- `Route all traffic`: if enabled, when the client connects, it will send all the traffic to the server
50
+
- `Server networks`: which networks the peer can access, all LAN networks will be automatically added
51
+
- `Peer networks`: networks reachable on the peer side. Always fill this field when you want to create a net2net tunnel
It's possible to create a client-to-site (Road Warrior) connection by leaving empty the `Peer networks` entries. This will allow the client to access the server networks.
Once the peer is saved, it's possible to download the configuration file in text format or as a QR code using the menu on the right side of the peer entry.
159
58
59
+
The server and peers configuration can be edited by the context menu on the right side of each entry.
160
60
161
-
Configure a mobile device
162
-
~~~~~~~~~~~~~~~~~~~~~~~~~
61
+
.. warning::
163
62
164
-
Many mobile WireGuard clients allows to import the configuration using a QR code:
63
+
After modifying the WireGuard server or peers, remember that such changes needs to be applied to the peer by re-downloading the configuration file.
Once the app is installed, open it and import the configuration using the QR code:
68
+
Nethsecurity can be configured as a WireGuard client (peer) to connect to another WireGuard server. On the :guilabel:`Peer tunnels` tab, it's possible to add manually a new tunnel by clicking on :guilabel:`Add peer tunnel` or import a generic wireguard configuration file using :guilabel:`Import peer tunnel`.
0 commit comments