Documentation

Server 3.x

NetworkManager#

NOTE: available with vpn-server-node >= 3.2.0

By default wg-quick is used to manage the WireGuard network interface on the VPN node(s). It is possible to switch to NetworkManager. The reason for doing this is to allow better integration into the OS using the native networking stack.

NetworkManager is used by default on Red Hat Enterprise Linux, AlmaLinux, Rocky Linux and Fedora.

Switching#

Modify /etc/vpn-server-node/config.php and set the networkBackend configuration option to NetworkManager, i.e.:

<?php

return [

    // existing configuration...

    'networkBackend' => 'NetworkManager',
];

Apply Changes#

$ sudo vpn-maint-apply-changes

You can verify the interface is now managed by NetworkManager using the nmcli command, e.g.:

$ $ nmcli dev
DEVICE  TYPE       STATE                   CONNECTION  
eth0    ethernet   connected               System eth0 
wg0     wireguard  connected               wg0         
tun0    tun        connected (externally)  tun0        
lo      loopback   connected (externally)  lo        

The STATE value connected indicates it is managed by NetworkManager.