Niflheim VPN console client
For easy management, we have developed a console utility to manage Niflheim VPN
User management
List of current users
niflheim-cli users -l
Returns a list of existing users
Add new user to vpn server
niflheim-cli users -a user-name
Example:
niflheim-cli users -a newuser
Adding new user - newuser to niflheim vpn in progress. Please wait
deployment in progress.....: 632B [01:22, 7.61B/s]
User newuser has been added to niflheim vpn
Once complete, all necessary configuration files will be created.
find . -name "*newuser*"
./wireguard/apple/macos/newuser.mobileconfig
./wireguard/apple/ios/newuser.mobileconfig
./wireguard/newuser.conf
./wireguard/.pki/public/newuser
./wireguard/.pki/preshared/newuser
./wireguard/.pki/private/newuser
./wireguard/newuser.png
./ipsec/apple/newuser.mobileconfig
./ipsec/manual/newuser.secrets
./ipsec/manual/newuser.conf
./ipsec/manual/newuser.p12
./ipsec/.pki/reqs/newuser.req
./ipsec/.pki/public/newuser.pub
./ipsec/.pki/certs/newuser_crt_generated
./ipsec/.pki/certs/newuser.crt
./ipsec/.pki/private/newuser_ca.p12
./ipsec/.pki/private/newuser.p12
./ipsec/.pki/private/newuser.key
Delete user
niflheim-cli users -d user-name
Deletes the user and their configuration files from the server
Updating the VPN server configuration
The server configuration is available /opt/niflheim/config.cfg
and is generated when the server first starts. You can edit the configuration file, but the settings will not be applied.
To apply configuration changes, use the command:
niflheim-cli server -u