Browse Source

nmcli-connection: add import VPN example (#6185)

Co-authored-by: Axel Navarro <navarroaxel@gmail.com>
CleanMachine1 3 years ago
parent
commit
13840352d1
1 changed files with 4 additions and 0 deletions
  1. 4 0
      pages/linux/nmcli-connection.md

+ 4 - 0
pages/linux/nmcli-connection.md

@@ -26,3 +26,7 @@
 - Create a static IPv4-only connection:
 
 `nmcli connection add ifname {{interface_name}} type {{ethernet}} ip4 {{10.0.0.7/8}} gw4 {{10.0.0.1}} ipv4.dns {{10.0.0.1}} ipv6.method {{ignore}}`
+
+- Create a VPN connection using OpenVPN from a OVPN file:
+
+`nmcli connection import type {{openvpn}} file {{path/to/vpn_config.ovpn}}`