vpnc-script.xml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <PAGE>
  2. <INCLUDE file="inc/header.tmpl" />
  3. <VAR match="VAR_SEL_STARTED" replace="selected" />
  4. <VAR match="VAR_SEL_VPNCSCRIPT" replace="selected" />
  5. <PARSE file="menu1.xml" />
  6. <PARSE file="menu2-started.xml" />
  7. <INCLUDE file="inc/content.tmpl" />
  8. <h1>Install a <tt>vpnc-script</tt>.</h1>
  9. <p>OpenConnect just handles the communication with the VPN server; it does
  10. not know how to configure the network routing and name service on all the
  11. various operating systems that it runs on.</p>
  12. <p>To set the routing and name service up, it uses an external script
  13. which is usually called <tt>vpnc-script</tt>. It's exactly the same script that
  14. <a href="https://www.unix-ag.uni-kl.de/~massar/vpnc/">vpnc</a> uses.
  15. You may already have a <tt>vpnc-script</tt> installed on your system,
  16. perhaps in a location such as <tt>/etc/vpnc/vpnc-script</tt>.</p>
  17. <p>If you don't already have it, you can get a current version from <a
  18. href="https://gitlab.com/openconnect/vpnc-scripts/raw/master/vpnc-script">here</a>.
  19. Even if you already have a copy from vpnc, you may wish to install this updated
  20. version which has support for IPv6, and for running on Solaris and on newer Linux
  21. kernels amongst other bug fixes.</p>
  22. <p>Note that the script needs to be executable, and stored somewhere
  23. where SELinux or similar security systems won't prevent the root user
  24. from accessing it.</p>
  25. <p>Current versions of OpenConnect <i>(since version 3.17)</i> are configured
  26. with the location of the script at build time, and will use the script
  27. automatically. If you are using a packaged build of OpenConnect rather than
  28. building it yourself, then the OpenConnect package should have a dependency
  29. on a suitable version of <tt>vpnc-script</tt> and should be built to look in
  30. the right place for it. Hopefully your distributions gets that right.</p>
  31. <p>If you're using an older version of OpenConnect, or if you want to use
  32. a script other than the one that OpenConnect was configured to use, you
  33. can use the <tt>--script</tt> argument on the command line. For example:
  34. <ul><li><tt>openconnect --script /etc/vpnc/vpnc-script https://vpn.example.com/</tt></li></ul></p>
  35. <p>If OpenConnect is invoked without a suitable script, it will not be able
  36. to configure the routing or name service for the VPN.</p>
  37. <h1>Windows</h1>
  38. <p>On Windows, the default configuration of OpenConnect will look for
  39. a script named <tt>vpnc-script-win.js</tt> in the same directory as the
  40. <tt>openconnect.exe</tt> executable, and will execute it with the
  41. <a href="https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/cscript">command-based
  42. script host (<tt>CScript.exe</tt>)</a>.</p>
  43. <p>The current version of this script can be found <a
  44. href="https://gitlab.com/openconnect/vpnc-scripts/raw/master/vpnc-script-win.js">here</a>.</p>
  45. <p>Note that although the script is basically functional for
  46. configuring both IPv6 and Legacy IP, it does not fully tear down the
  47. configuration on exit so stale IP address might be left around on the
  48. interface.</p>
  49. <INCLUDE file="inc/footer.tmpl" />
  50. </PAGE>