1 |
7c172009
|
Scott Ullrich
|
<packagegui>
|
2 |
|
|
<name>openvpnclient</name>
|
3 |
|
|
<title>OpenVPN: Client</title>
|
4 |
|
|
<include_file>openvpn.inc</include_file>
|
5 |
|
|
<delete_string>An OpenVPN client has been deleted.</delete_string>
|
6 |
|
|
<addedit_string>An OpenVPN client has been created/modified.</addedit_string>
|
7 |
|
|
<tabs>
|
8 |
|
|
<tab>
|
9 |
|
|
<text>Server</text>
|
10 |
|
|
<url>/pkg.php?xml=openvpn.xml</url>
|
11 |
|
|
</tab>
|
12 |
|
|
<tab>
|
13 |
|
|
<text>Client</text>
|
14 |
|
|
<url>/pkg.php?xml=openvpn_cli.xml</url>
|
15 |
|
|
<active/>
|
16 |
|
|
</tab>
|
17 |
8dc3ef67
|
Scott Ullrich
|
<tab>
|
18 |
|
|
<text>Client-specific configuration</text>
|
19 |
|
|
<url>/pkg.php?xml=openvpn_csc.xml</url>
|
20 |
|
|
</tab>
|
21 |
7c172009
|
Scott Ullrich
|
</tabs>
|
22 |
|
|
<adddeleteeditpagefields>
|
23 |
|
|
<columnitem>
|
24 |
|
|
<fieldname>disable</fieldname>
|
25 |
|
|
<fielddescr>Disabled</fielddescr>
|
26 |
|
|
<type>checkbox</type>
|
27 |
|
|
</columnitem>
|
28 |
|
|
<columnitem>
|
29 |
|
|
<fieldname>serveraddr</fieldname>
|
30 |
|
|
<fielddescr>Server</fielddescr>
|
31 |
|
|
</columnitem>
|
32 |
|
|
<columnitem>
|
33 |
|
|
<fieldname>protocol</fieldname>
|
34 |
|
|
<fielddescr>Protocol</fielddescr>
|
35 |
|
|
</columnitem>
|
36 |
|
|
<columnitem>
|
37 |
|
|
<fieldname>description</fieldname>
|
38 |
|
|
<fielddescr>Description</fielddescr>
|
39 |
|
|
</columnitem>
|
40 |
|
|
</adddeleteeditpagefields>
|
41 |
|
|
<fields>
|
42 |
|
|
<field>
|
43 |
|
|
<fieldname>disable</fieldname>
|
44 |
|
|
<fielddescr>Disable this tunnel</fielddescr>
|
45 |
|
|
<description>This allows you to disable this tunnel without removing it from the list.</description>
|
46 |
a077d420
|
Scott Ullrich
|
<required/>
|
47 |
7c172009
|
Scott Ullrich
|
<type>checkbox</type>
|
48 |
|
|
</field>
|
49 |
|
|
<field>
|
50 |
|
|
<fieldname>protocol</fieldname>
|
51 |
|
|
<fielddescr>Protocol</fielddescr>
|
52 |
|
|
<description>The protocol to be used for the VPN.</description>
|
53 |
a077d420
|
Scott Ullrich
|
<required/>
|
54 |
7c172009
|
Scott Ullrich
|
<type>select</type>
|
55 |
|
|
<options>
|
56 |
|
|
<option>
|
57 |
|
|
<value>TCP</value>
|
58 |
|
|
<name>TCP</name>
|
59 |
|
|
</option>
|
60 |
a077d420
|
Scott Ullrich
|
<option>
|
61 |
|
|
<value>UDP</value>
|
62 |
|
|
<name>UDP</name>
|
63 |
|
|
</option>
|
64 |
7c172009
|
Scott Ullrich
|
</options>
|
65 |
a077d420
|
Scott Ullrich
|
<default_value>UDP</default_value>
|
66 |
7c172009
|
Scott Ullrich
|
</field>
|
67 |
|
|
<field>
|
68 |
a077d420
|
Scott Ullrich
|
<fieldname>serveraddr</fieldname>
|
69 |
|
|
<fielddescr>Server address</fielddescr>
|
70 |
|
|
<description>This is the address OpenVPN will try to connect to in order to establish the tunnel. Set it to the remote endpoint's address.</description>
|
71 |
|
|
<required/>
|
72 |
7c172009
|
Scott Ullrich
|
<type>input</type>
|
73 |
|
|
</field>
|
74 |
|
|
<field>
|
75 |
a077d420
|
Scott Ullrich
|
<fieldname>serverport</fieldname>
|
76 |
|
|
<fielddescr>Server port</fielddescr>
|
77 |
|
|
<description>The port OpenVPN will use to connect to the server. Most people would want to use 1194 here.</description>
|
78 |
|
|
<required/>
|
79 |
7c172009
|
Scott Ullrich
|
<type>input</type>
|
80 |
a077d420
|
Scott Ullrich
|
<default_value>1194</default_value>
|
81 |
|
|
<size>5</size>
|
82 |
7c172009
|
Scott Ullrich
|
</field>
|
83 |
|
|
<field>
|
84 |
a077d420
|
Scott Ullrich
|
<fieldname>interface_ip</fieldname>
|
85 |
|
|
<fielddescr>Interface IP</fielddescr>
|
86 |
|
|
<description>This specifies the IPs to be assigned to the local interface. Expressed as a CIDR range. The first address in the range will be set to the remote endpoint of the interface, and the second will be assigned to the local endpoint. For TLS VPNs, the interface IPs are assigned by the server pool.</description>
|
87 |
7c172009
|
Scott Ullrich
|
<type>input</type>
|
88 |
|
|
</field>
|
89 |
|
|
<field>
|
90 |
a077d420
|
Scott Ullrich
|
<fieldname>remote_network</fieldname>
|
91 |
|
|
<fielddescr>Remote network</fielddescr>
|
92 |
|
|
<description>This is the network that will be accessable from your endpoint. Expressed as a CIDR range. You may leave this blank if all you want is to access the VPN clients. You normally want this set to the remote endpoint's LAN network.</description>
|
93 |
8dc3ef67
|
Scott Ullrich
|
<type>input</type>
|
94 |
|
|
</field>
|
95 |
|
|
<field>
|
96 |
|
|
<fieldname>proxy_hostname</fieldname>
|
97 |
|
|
<fielddescr>Proxy Host</fielddescr>
|
98 |
|
|
<description>Proxy server hostname.</description>
|
99 |
a077d420
|
Scott Ullrich
|
<type>input</type>
|
100 |
7c172009
|
Scott Ullrich
|
</field>
|
101 |
8dc3ef67
|
Scott Ullrich
|
<field>
|
102 |
|
|
<fieldname>proxy_port</fieldname>
|
103 |
|
|
<fielddescr>Proxy port</fielddescr>
|
104 |
|
|
<description>The port OpenVPN will use on the proxy server.</description>
|
105 |
|
|
<type>input</type>
|
106 |
|
|
<default_value>3128</default_value>
|
107 |
|
|
<size>5</size>
|
108 |
|
|
</field>
|
109 |
7c172009
|
Scott Ullrich
|
<field>
|
110 |
|
|
<fieldname>crypto</fieldname>
|
111 |
|
|
<fielddescr>Cryptography</fielddescr>
|
112 |
|
|
<description>Here you can choose the cryptography algorithm to be used.</description>
|
113 |
a077d420
|
Scott Ullrich
|
<required/>
|
114 |
7c172009
|
Scott Ullrich
|
<type>select</type>
|
115 |
a077d420
|
Scott Ullrich
|
<default_value>BF-CBC</default_value>
|
116 |
|
|
</field>
|
117 |
|
|
<field>
|
118 |
|
|
<fieldname>auth_method</fieldname>
|
119 |
|
|
<fielddescr>Authentication method</fielddescr>
|
120 |
|
|
<description>The authentication method to be used.</description>
|
121 |
|
|
<required/>
|
122 |
|
|
<type>select</type>
|
123 |
|
|
<options>
|
124 |
|
|
<option>
|
125 |
|
|
<value>shared_key</value>
|
126 |
|
|
<name>Shared key</name>
|
127 |
|
|
</option>
|
128 |
|
|
<option>
|
129 |
|
|
<value>pki</value>
|
130 |
|
|
<name>PKI (Public Key Infrastructure)</name>
|
131 |
|
|
</option>
|
132 |
|
|
</options>
|
133 |
|
|
<onchange>onAuthMethodChanged()</onchange>
|
134 |
7c172009
|
Scott Ullrich
|
</field>
|
135 |
|
|
<field>
|
136 |
|
|
<fieldname>shared_key</fieldname>
|
137 |
|
|
<fielddescr>Shared key</fielddescr>
|
138 |
|
|
<description>Paste your shared key here.</description>
|
139 |
|
|
<type>textarea</type>
|
140 |
|
|
<encoding>base64</encoding>
|
141 |
|
|
<rows>8</rows>
|
142 |
|
|
<cols>40</cols>
|
143 |
|
|
</field>
|
144 |
a077d420
|
Scott Ullrich
|
<field>
|
145 |
|
|
<fieldname>ca_cert</fieldname>
|
146 |
|
|
<fielddescr>CA certificate</fielddescr>
|
147 |
|
|
<description>Paste the server's CA certificate in X.509 format here.</description>
|
148 |
|
|
<type>textarea</type>
|
149 |
|
|
<encoding>base64</encoding>
|
150 |
|
|
<rows>8</rows>
|
151 |
|
|
<cols>40</cols>
|
152 |
|
|
</field>
|
153 |
|
|
<field>
|
154 |
|
|
<fieldname>client_cert</fieldname>
|
155 |
|
|
<fielddescr>Client certificate</fielddescr>
|
156 |
|
|
<description>Paste your client certificate in X.509 format here.</description>
|
157 |
|
|
<type>textarea</type>
|
158 |
|
|
<encoding>base64</encoding>
|
159 |
|
|
<rows>8</rows>
|
160 |
|
|
<cols>40</cols>
|
161 |
|
|
</field>
|
162 |
|
|
<field>
|
163 |
|
|
<fieldname>client_key</fieldname>
|
164 |
|
|
<fielddescr>Client key</fielddescr>
|
165 |
|
|
<description>Paste your client key in RSA format here.</description>
|
166 |
|
|
<type>textarea</type>
|
167 |
|
|
<encoding>base64</encoding>
|
168 |
|
|
<rows>8</rows>
|
169 |
|
|
<cols>40</cols>
|
170 |
|
|
</field>
|
171 |
7c172009
|
Scott Ullrich
|
<field>
|
172 |
|
|
<fieldname>use_lzo</fieldname>
|
173 |
|
|
<fielddescr>LZO compression</fielddescr>
|
174 |
|
|
<description>Checking this will compress the packets using the LZO algorithm before sending them.</description>
|
175 |
|
|
<type>checkbox</type>
|
176 |
|
|
</field>
|
177 |
a73f01f1
|
Scott Ullrich
|
<field>
|
178 |
|
|
<fieldname>use_dynamicport</fieldname>
|
179 |
|
|
<fielddescr>Dynamic sourceport</fielddescr>
|
180 |
|
|
<description>Checking this will let the openvpn client choose a dynamic sourceport for this connection.</description>
|
181 |
|
|
<type>checkbox</type>
|
182 |
|
|
</field>
|
183 |
8dc3ef67
|
Scott Ullrich
|
<field>
|
184 |
|
|
<fieldname>custom_options</fieldname>
|
185 |
|
|
<fielddescr>Custom options</fielddescr>
|
186 |
|
|
<description>You can put your own custom options here, separated by semi-colons (;). They'll be added to the client configuration.</description>
|
187 |
|
|
<type>input</type>
|
188 |
|
|
</field>
|
189 |
7c172009
|
Scott Ullrich
|
<field>
|
190 |
|
|
<fieldname>description</fieldname>
|
191 |
|
|
<fielddescr>Description</fielddescr>
|
192 |
|
|
<description>You may enter a description here. This is optional and is not parsed.</description>
|
193 |
|
|
<type>input</type>
|
194 |
|
|
</field>
|
195 |
|
|
</fields>
|
196 |
|
|
<custom_php_command_before_form>
|
197 |
01c0ece6
|
Scott Ullrich
|
if(!$config['installedpackages']['openvpnclient'][config][0]['protocol'])
|
198 |
5f7bb797
|
Scott Ullrich
|
unset($evaledvar);
|
199 |
7c172009
|
Scott Ullrich
|
openvpn_get_ciphers(&$pkg);
|
200 |
|
|
</custom_php_command_before_form>
|
201 |
a077d420
|
Scott Ullrich
|
<custom_php_after_head_command>
|
202 |
|
|
openvpn_print_javascript('client');
|
203 |
|
|
</custom_php_after_head_command>
|
204 |
|
|
<custom_php_after_form_command>
|
205 |
|
|
openvpn_print_javascript2();
|
206 |
|
|
</custom_php_after_form_command>
|
207 |
7c172009
|
Scott Ullrich
|
<custom_php_validation_command>
|
208 |
|
|
openvpn_validate_input('client', $_POST, &$input_errors);
|
209 |
|
|
</custom_php_validation_command>
|
210 |
|
|
<custom_php_resync_config_command>
|
211 |
a077d420
|
Scott Ullrich
|
openvpn_resync('client', $id);
|
212 |
7c172009
|
Scott Ullrich
|
</custom_php_resync_config_command>
|
213 |
a73f01f1
|
Scott Ullrich
|
</packagegui>
|