1 The openconnect server expects to be configured using the uci interface.
3 To setup a server the provides access to LAN with network address
4 10.100.2.0/255.255.255.0 using the VPN address range
5 10.100.3.0/255.255.255.0 add the following to /etc/config/ocserv:
7 -----------------------------------------------------------------
11 option max_clients '8'
13 option netmask '255.255.255.0'
14 option ipaddr '10.100.3.0'
20 option ip '10.100.2.1'
23 option ip '10.100.2.0'
24 option netmask '255.255.255.0'
28 option password '$5$unl8uKAGNsdTh9zm$PnUHEGhDc5VHbFE2EfWwW38Bub6Y6EZ5hrFwZE1r2F1'
30 -----------------------------------------------------------------
32 This configuration also adds the user "test" with password "test". The
33 password is specified in the crypt(3) format.
35 The server can be enabled and started using:
36 # /etc/init.d/ocserv enable
37 # /etc/init.d/ocserv start
41 There is a luci plugin to allow configuring the server from
42 the web environment; see the package luci-app-ocserv.