Comment on page
Create your VPN network
After successful deployment of your Defguard instance first screen you'll see will look like this
First screen after logging to your freshly installed instance
Nothing fancy in this step just pick your network name and type
First step on network creation wizard
Currently only supported network type is regular but we hope it'll change in a short future
After choosing a name for your network you"ll be on to the next step which is network configuration this is where things might feel a little bit complicated but no worries it be as painless as possible.
Network configuration setup
It’s the IP address of the network interface that Wireguard sets up for the peer.
The IP address for a WireGuard interface is defined with a network prefix, which tells the local host what other IP addresses are available on the same virtual subnet as the interface. In the above placeholder, this prefix is /24. That indicate to the localhost that other addresses in the same /24 block as the address itself (10.1.1.0 to 10.1.1.255) are routable through the interface.
Port on which Wireguard listens on the gateway
It's IP address of your gateway in Wireguard words Endpoint is the remote peer's "real" IP address and port, outside of the WireGuard VPN. This setting tells the localhost how to connect to the remote peer in order to set up a WireGuard tunnel.
Network port and gateway endpoint port can be different if Wireguard server is behind NAT/Firewall
is the set of IP addresses the localhost should route to the remote peer through the WireGuard tunnel. This setting tells the localhost what goes in a tunnel.
DNS specifies DNS resolvers to query when the Wireguard interface is up and domains to search for unqualified hostnames.
No worries if you get something wrong you can always change it later
After completing all steps from above you will be redirected to Network overview page which detect if your gateway is connected or not if your gateway never connected to Defguard you'll see modal looking like this
Modal with docker command to copy to start your gateway server
Wireguard Gateway is a client program which connects to Defguard in order to setup your network and send all information about your network and it's users. You can think about it like waiter which delivers food(data eg. stats, configuration) between client(Defguard server) and server(wireguard server) and takes orders from Defguard server to setup your network.
After creating your network on Defguard you'll see modal pop-up as in picture above with docker run command to start your gateway server but there are other options to start your server.
If you're using docker image you can pass this value as environmental variables on binary you can pass them as arguments
-u- Use userspace wireguard implementation, useful on systems without native wireguard support
-g- Defguard server gRPC endpoint URL default is https://localhost:50055
-p- Defines how often (seconds) should interface statistics be sent to Defguard server
-t- Token received on Defguard after completing network wizard