It's a type of Planche
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

36 lines
1.3KB

  1. #!/usr/bin/env bash
  2. # Networkmanager override to set no-dtls this is required for
  3. # Overstock Juniper Pulse VPN as they do not have proper UDP set up
  4. # and without that, CPU shoots over 100% and the logs fill up fast.
  5. #
  6. # Found the binary path search order in
  7. # https://gitlab.gnome.org/GNOME/NetworkManager-openconnect/\
  8. # blob/master/src/nm-openconnect-service.c
  9. #
  10. # static const char *openconnect_binary_paths[] =
  11. # {
  12. # "/usr/bin/openconnect",
  13. # "/usr/sbin/openconnect",
  14. # "/usr/local/bin/openconnect",
  15. # "/usr/local/sbin/openconnect",
  16. # "/opt/bin/openconnect",
  17. # "/opt/sbin/openconnect",
  18. # NULL
  19. # };
  20. #
  21. # And found the hint of which flag to add on the OpenConnect Wiki
  22. #
  23. # The second phase uses that cookie to connect to a tunnel via HTTPS,
  24. # and data packets can be passed over the resulting connection. When
  25. # possible, a UDP tunnel is also configured: AnyConnect uses DTLS,
  26. # while Juniper and GlobalProtect use UDP-encapsulated ESP. The UDP
  27. # tunnel may be disabled with --no-dtls, but is preferred when
  28. # correctly supported by the server and network for performance
  29. # reasons. (TCP performs poorly and unreliably over TCP-based
  30. # tunnels; see http://sites.inka.de/~W1011/devel/tcp-tcp.html.)
  31. # https://www.infradead.org/openconnect/manual.html
  32. #/usr/sbin/openconnect --no-dtls ${@}
  33. /usr/local/sbin/openconnect