You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
1.1 KiB

  1. The openconnect client expects to be configured using the uci interface.
  2. To setup a VPN connection, add the following to /etc/config/network:
  3. config interface 'MYVPN'
  4. option _orig_ifname 'vpnc'
  5. option _orig_bridge 'false'
  6. option proto 'openconnect'
  7. option server 'vpn.example.com'
  8. option port '4443'
  9. option username 'test'
  10. option password 'secret'
  11. option serverhash 'AE7FF6A0426F0A0CD0A02EB9EC3C5066FAEB0B25'
  12. The additional files are also used:
  13. /etc/openconnect/user-cert-vpn-MYVPN.pem: The user certificate
  14. /etc/openconnect/user-key-vpn-MYVPN.pem: The user private key
  15. /etc/openconnect/ca-cert-vpn-MYVPN.pem: The CA certificate (instead of serverhash)
  16. After these are setup you can initiate the VPN using "ifup MYVPN", and
  17. deinitialize it using ifdown. You may also use the luci web interface
  18. (Network -> Interfaces -> AVPN Connect).
  19. Note that you need to configure the firewall to allow communication between
  20. the MYVPN interface and lan.
  21. There is a luci plugin to allow configuring an openconnect interface from
  22. the web environment; see the luci-protocol-openconnect package.