Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [connection]
- id=<<id>>
- uuid=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx
- type=vpn
- permissions=user:<<permissions_user>>:;
- autoconnect=false
- [vpn]
- password-flags=0
- service-type=org.freedesktop.NetworkManager.pptp
- require-mppe-128=yes
- mppe-stateful=yes
- user=<<user>>
- refuse-eap=yes
- refuse-chap=yes
- gateway=<<gateway>>
- refuse-pap=yes
- [vpn-secrets]
- password=<<password>>
- [ipv4]
- method=auto
- cd /etc/NetworkManager/system-settings
- cp "existing-working-vpn-config-file" "new-vpn-config-file"
- sed -i "s/<<permissions_user>>/my_permissions_user/g" new-vpn-config-file
- sed -i "s/<<user>>/my_user/g" new-vpn-config-file
- sed -i "s/<<gateway>>/my_gateway/g" new-vpn-config-file
- sed -i "s/<<password>>/my_password/g" new-vpn-config-file
- service network-manager restart
- nmcli connection import type openvpn file ~/myconfig.ovpn
- nmcli connection show
- nmcli connection modify myvpnconnectionname +vpn.data username=myusername
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement