Advertisement
Guest User

Untitled

a guest
Apr 19th, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. [connection]
  2. id=<<id>>
  3. uuid=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx
  4. type=vpn
  5. permissions=user:<<permissions_user>>:;
  6. autoconnect=false
  7.  
  8. [vpn]
  9. password-flags=0
  10. service-type=org.freedesktop.NetworkManager.pptp
  11. require-mppe-128=yes
  12. mppe-stateful=yes
  13. user=<<user>>
  14. refuse-eap=yes
  15. refuse-chap=yes
  16. gateway=<<gateway>>
  17. refuse-pap=yes
  18.  
  19. [vpn-secrets]
  20. password=<<password>>
  21.  
  22. [ipv4]
  23. method=auto
  24.  
  25. cd /etc/NetworkManager/system-settings
  26. cp "existing-working-vpn-config-file" "new-vpn-config-file"
  27.  
  28. sed -i "s/<<permissions_user>>/my_permissions_user/g" new-vpn-config-file
  29. sed -i "s/<<user>>/my_user/g" new-vpn-config-file
  30. sed -i "s/<<gateway>>/my_gateway/g" new-vpn-config-file
  31. sed -i "s/<<password>>/my_password/g" new-vpn-config-file
  32.  
  33. service network-manager restart
  34.  
  35. nmcli connection import type openvpn file ~/myconfig.ovpn
  36.  
  37. nmcli connection show
  38. nmcli connection modify myvpnconnectionname +vpn.data username=myusername
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement