Advertisement
Guest User

Untitled

a guest
Sep 11th, 2017
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. # /etc/NetworkManager/system-connections/vpn-Name
  2. # Initiaded with:
  3. # nmcli connection add type vpn ifname tun0 vpn-type l2tp
  4. #
  5. [connection]
  6. id=vpn-<VPN_NAME>
  7. uuid=<SOME_UUID>
  8. type=vpn
  9. permissions=
  10. secondaries=
  11.  
  12. [vpn]
  13. gateway=<VPN_SERVER_IP>
  14. password-flags=0
  15. ipsec-enabled=yes
  16. ipsec-psk=<IPSEC_SHARED_SECRET>
  17. user=<VPN_USERNAME>
  18. service-type=org.freedesktop.NetworkManager.l2tp
  19.  
  20. [vpn-secrets]
  21. password=<VPN_PASSWORD>
  22.  
  23. [ipv4]
  24. dns-search=
  25. method=auto
  26. never-default=true
  27. #route1=192.168.11.0/24,192.168.11.237
  28. #route2=172.31.0.0/16,192.168.11.237
  29.  
  30. [ipv6]
  31. addr-gen-mode=stable-privacy
  32. dns-search=
  33. method=ignore
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement