206e2c6fac76bd37ddeba4dbefe4858ad75446b4
[feed/packages.git] / net / ocserv / README
1 The openconnect server expects to be configured using the uci interface.
2
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:
6
7 -----------------------------------------------------------------
8 config ocserv 'config'
9 option port '4443'
10 option dpd '120'
11 option max_clients '8'
12 option max_same '2'
13 option netmask '255.255.255.0'
14 option ipaddr '10.100.3.0'
15 option auth 'plain'
16 option zone 'lan'
17 option enable '1'
18
19 config dns
20 option ip '10.100.2.1'
21
22 config routes
23 option ip '10.100.2.0'
24 option netmask '255.255.255.0'
25
26 config ocservusers
27 option name 'test'
28 option password '$5$unl8uKAGNsdTh9zm$PnUHEGhDc5VHbFE2EfWwW38Bub6Y6EZ5hrFwZE1r2F1'
29
30 -----------------------------------------------------------------
31
32 This configuration also adds the user "test" with password "test". The
33 password is specified in the crypt(3) format.
34
35 The server can be enabled and started using:
36 # /etc/init.d/ocserv enable
37 # /etc/init.d/ocserv start
38
39
40
41 There is a luci plugin to allow configuring the server from
42 the web environment; see the package luci-app-ocserv.