Created
November 25, 2022 02:41
-
-
Save mjtiempo/8e17f48c9fd5cec17e867d99d0b07c85 to your computer and use it in GitHub Desktop.
openvpn3 commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import config | |
openvpn3 config-import --config myvpnfile.ovpn | |
#show list of reusable configs | |
openvpn3 configs-list | |
#list active connection | |
openvpn3 sessions-list | |
#connect using config already imported | |
openvpn3 session-start --config-path $(openvpn3 configs-list | grep /net) | |
#disconnect current active session | |
openvpn3 session-manage --disconnect --session-path $(openvpn3 sessions-list | grep -oP '(?<=Path: )\/net\/openvpn\/v3\/sessions\/\w+') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment