summaryrefslogtreecommitdiffstats
path: root/openvpn-clientconfig-html.lsp
blob: 1aa2bc3638a5125d4a51bdd18d36650107ebb20f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<% local view = ... %>
<html>
<body>
<h1>Client config '<%= view.config.name %>'</h1>

<h2>Client settings</h2>

<dt>Mode</dt>
<dd>client</dd>

<dt>User device</dt>
<dd><%= view.config.dev %></dd>

<dt>Remote server</dt>
<dd><%= view.config.remote %>:<%= view.config.remoteport %> (<%= view.config.proto %>)</dd>

<dt>Logfile</dt>
<dd><% if ( view.config.log ) then %><%= html.link{value = view.url .. "/logfile?name=" .. view.config.linkname  , label=view.config.log } %><% else %>Syslog<% end %> (Verbosity level: <%= view.config.verb %>)</dd>

<dt>View/Modify configfile</dt>
<dd><%= html.link{value = view.url .. "/unknown_config?name=" .. view.config.linkname  , label=view.config.name } %></dd>

<% --[[ %>
<h3>Client properties</h3>

<dt>Common name</dt>
<dd>xxx</dd>

<dt>Virtual address</dt>
<dd>xxx.xxx.xxx.xxx</dd>

<dt>Real address</dt>
<dd>xxx.xxx.xxx.xxx:xxxx</dd>

<% --]] %>

<h2>Startup options</h2>

<dt>Process running</dt>
<dd><input type="checkbox" disabled <% if (view.config.status_isrunning ~= "") then io.write("checked='yes'") end %>></dd>

<h2>Certificate files</h2>

<% if (view.config.ca) then %>
<dt>CA Certificate</dt>
<dd><%= view.config.ca %><% -- html.link{value = view.url .. "/pem_info?name=" .. view.config.ca  , label=view.config.ca } %></dd>
<% end %>

<% if (view.config.cert) then %>
<dt>Client Certificate</dt>
<dd><%= view.config.cert %><% -- html.link{value = view.url .. "/pem_info?name=" .. view.config.cert  , label=view.config.cert } %></dd>
<% end %>

<% if (view.config.key) then %>
<dt>Client Private Key</dt>
<dd><%= view.config.key %><% -- html.link{value = view.url .. "/pem_info?name=" .. view.config.key  , label=view.config.key } %></dd>
<% end %>

<% if (view.config.tls) then %>
<dt>TLS Authentication</dt>
<dd><%= view.config.tls %><% -- html.link{value = view.url .. "/pem_info?name=" .. view.config.tls  , label=view.config.tls } %></dd>
<% end %>

<% if (view.config.crl) then %>
<dt>CRL Verify File</dt>
<dd><%= view.config.crl %><% -- html.link{value = view.url .. "/pem_info?name=" .. view.config.crl  , label=view.config.crl } %> (client side)</dd>
<% end %>

</body>
</html>