summaryrefslogtreecommitdiffstats
path: root/usr/local/pkg/openvpn_csc.xml
blob: 93e0fb8dad095cffdbe8a3fbffb3beb9a68bae61 (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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<packagegui>
	<name>openvpncsc</name>
	<title>OpenVPN: Client-specific configuration</title>
	<include_file>openvpn.inc</include_file>
	<delete_string>An OpenVPN client-specific configuration has been deleted.</delete_string>
	<addedit_string>An OpenVPN client-specific configuration has been created/modified.</addedit_string>
	<tabs>
		<tab>
			<text>Server</text>
			<url>/pkg.php?xml=openvpn.xml</url>
		</tab>
		<tab>
			<text>Client</text>
			<url>/pkg.php?xml=openvpn_cli.xml</url>
		</tab>
		<tab>
			<text>Client-specific configuration</text>
			<url>/pkg.php?xml=openvpn_csc.xml</url>
			<active/>
		</tab>
	</tabs>
	<adddeleteeditpagefields>
		<columnitem>
			<fieldname>disable</fieldname>
			<fielddescr>Disabled</fielddescr>
			<type>checkbox</type>
		</columnitem>
		<columnitem>
			<fieldname>commonname</fieldname>
			<fielddescr>Common name</fielddescr>
		</columnitem>
		<columnitem>
			<fieldname>description</fieldname>
			<fielddescr>Description</fielddescr>
		</columnitem>
	</adddeleteeditpagefields>
	<fields>
		<field>
			<fieldname>disable</fieldname>
			<fielddescr>Disabled</fielddescr>
			<description>Set this option to disable this client-specific configuration without removing it from the list.</description>
			<required/>
			<type>checkbox</type>
		</field>
		<field>
			<fieldname>commonname</fieldname>
			<fielddescr>Common name</fielddescr>
			<description>Enter the client's X.509 common name here.</description>
			<required/>
			<type>input</type>
		</field>
		<field>
			<fieldname>block</fieldname>
			<fielddescr>Blocked</fielddescr>
			<description>Check this to block (disable) this client, based on its common name. Don't use this option to disable a client due to key or password compromise. Use a CRL (certificate revocation list) instead.</description>
			<type>checkbox</type>
		</field>
		<field>
			<fieldname>push_reset</fieldname>
			<fielddescr>Push reset</fielddescr>
			<description>Setting this option will make this client not inherit the global push options.</description>
			<type>checkbox</type>
		</field>
		<field>
			<fieldname>ifconfig_push</fieldname>
			<fielddescr>Interface IP</fielddescr>
			<description>Set this option to push an IP to the client's interface. Expressed as a CIDR range (e.g. 10.5.0.0/16). The first IP in the range will be used as the remote IP of the interface, and the second IP will be used as the local IP of the interface.</description>
			<type>input</type>
		</field>
		<field>
			<fieldname>custom_options</fieldname>
			<fielddescr>Custom options</fielddescr>
			<description>You can put your own custom options here, separated by semi-colons (;). They'll be added to the client-specific configuration.</description>
			<type>input</type>
		</field>
		<field>
			<fieldname>description</fieldname>
			<fielddescr>Description</fielddescr>
			<description>You may enter a description here for your reference (not parsed).</description>
			<type>input</type>
		</field>
	</fields>
	<custom_php_validation_command>
		openvpn_validate_input_csc($_POST, &amp;$input_errors);
	</custom_php_validation_command>
	<custom_php_resync_config_command>
		openvpn_resync_csc($id);
	</custom_php_resync_config_command>
</packagegui>
OpenPOWER on IntegriCloud