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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
|
<?xml version="1.0" encoding="utf-8" ?>
<pfsensewizard>
<copyright>
/* $Id$ */
/*
part of pfSense (http://www.pfsense.org/)
Copyright (C) 2010 Ermal Lui
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
</copyright>
<totalsteps>12</totalsteps>
<step>
<id>1</id>
<title>Choose the type of user authentication you wish to use and click Next.</title>
<description>OpenVPN Remote Access Server Setup Wizard</description>
<fields>
<field>
<type>select</type>
<displayname>Type of Server</displayname>
<name>authtype</name>
<description>Choose authentication backend type.</description>
<bindstofield>ovpnserver->step1->type</bindstofield>
<options>
<option>
<name>Local User Access</name>
<value>local</value>
</option>
<option>
<name>LDAP</name>
<value>ldap</value>
</option>
<option>
<name>Radius</name>
<value>radius</value>
</option>
</options>
</field>
<field>
<name>Next</name>
<type>submit</type>
</field>
</fields>
<stepsubmitphpaction>step1_submitphpaction();</stepsubmitphpaction>
<includefile>/usr/local/www/wizards/openvpn_wizard.inc</includefile>
</step>
<step>
<id>2</id>
<description>OpenVPN Remote Access Server Setup Wizard</description>
<disableheader>on</disableheader>
<fields>
<field>
<type>listtopic</type>
<name>Authentication Servers list</name>
</field>
<field>
<name>authserv</name>
<displayname>Authentication servers</displayname>
<type>select</type>
<bindstofield>ovpnserver->step2->authserv</bindstofield>
<options>
<option>
<name>dummy</name>
<value>dummy</value>
</option>
</options>
</field>
<field>
<type>submit</type>
<name>Add new LDAP server</name>
</field>
<field>
<type>submit</type>
<name>Next</name>
</field>
</fields>
<stepbeforeformdisplay>step2_stepbeforeformdisplay();</stepbeforeformdisplay>
<stepsubmitphpaction>step2_submitphpaction();</stepsubmitphpaction>
<javascriptafterformdisplay>enablechange();</javascriptafterformdisplay>
<includefile>/usr/local/www/wizards/openvpn_wizard.inc</includefile>
</step>
<step>
<id>3</id>
<description>OpenVPN Remote Access Server Setup Wizard</description>
<disableheader>on</disableheader>
<fields>
<field>
<type>listtopic</type>
<name>LDAP authentication server parameters</name>
</field>
<field>
<name>name</name>
<displayname>Name</displayname>
<type>input</type>
<bindstofield>ovpnserver->step2->authtype</bindstofield>
</field>
<field>
<name>ip</name>
<displayname>Hostname or IP address</displayname>
<type>input</type>
<bindstofield>ovpnserver->step2->ip</bindstofield>
</field>
<field>
<name>port</name>
<displayname>Port</displayname>
<type>input</type>
<size>8</size>
<bindstofield>ovpnserver->step2->port</bindstofield>
</field>
<field>
<name>transport</name>
<displayname>Transport</displayname>
<type>select</type>
<bindstofield>ovpnserver->step2->transport</bindstofield>
<options>
<option>
<name>TCP - Standard</name>
<value>tcp</value>
</option>
<option>
<name>SSL - Encrypted</name>
<value>ssl</value>
</option>
</options>
</field>
<field>
<name>scope</name>
<displayname>Search Scope</displayname>
<type>input</type>
<size>30</size>
<bindstofield>ovpnserver->step2->scope</bindstofield>
</field>
<field>
<name>authscope</name>
<displayname>Authentication Containers</displayname>
<type>input</type>
<size>40</size>
<bindstofield>ovpnserver->step2->authscope</bindstofield>
</field>
<field>
<name>userdn</name>
<displayname>User DN</displayname>
<type>input</type>
<size>20</size>
<description>If you leave it blank an anonymous bind will be done.</description>
<bindstofield>ovpnserver->step2->userdn</bindstofield>
</field>
<field>
<name>passdn</name>
<displayname>Password</displayname>
<type>password</type>
<size>20</size>
<bindstofield>ovpnserver->step2->passdn</bindstofield>
</field>
<field>
<name>nameattr</name>
<displayname>User naming attribute</displayname>
<type>input</type>
<bindstofield>ovpnserver->step2->nameattr</bindstofield>
</field>
<field>
<name>memberattr</name>
<displayname>Member naming attribute</displayname>
<type>input</type>
<bindstofield>ovpnserver->step2->memberattr</bindstofield>
</field>
<field>
<name>groupattr</name>
<displayname>Group naming attribute</displayname>
<type>input</type>
<bindstofield>ovpnserver->step2->groupattr</bindstofield>
</field>
<field>
<type>submit</type>
<name>Add new Server</name>
</field>
</fields>
<stepsubmitphpaction>step3_submitphpaction();</stepsubmitphpaction>
<javascriptafterformdisplay>enablechange();</javascriptafterformdisplay>
<includefile>/usr/local/www/wizards/openvpn_wizard.inc</includefile>
</step>
<step>
<id>4</id>
<description>OpenVPN Remote Access Server Setup Wizard</description>
<disableheader>on</disableheader>
<fields>
<field>
<type>listtopic</type>
<name>Authentication Servers list</name>
</field>
<field>
<name>authserv</name>
<displayname>Authentication servers</displayname>
<type>select</type>
<bindstofield>ovpnserver->step2->authserv</bindstofield>
<options>
<option>
<name>dummy</name>
<value>dummy</value>
</option>
</options>
</field>
<field>
<type>submit</type>
<name>Add new RADIUS server</name>
</field>
<field>
<type>submit</type>
<name>Next</name>
</field>
</fields>
<stepbeforeformdisplay>step4_stepbeforeformdisplay();</stepbeforeformdisplay>
<stepsubmitphpaction>step4_submitphpaction();</stepsubmitphpaction>
<javascriptafterformdisplay>enablechange();</javascriptafterformdisplay>
<includefile>/usr/local/www/wizards/openvpn_wizard.inc</includefile>
</step>
<step>
<id>5</id>
<description>OpenVPN Remote Access Server Setup Wizard</description>
<disableheader>on</disableheader>
<fields>
<field>
<type>listtopic</type>
<name>Add a new authentication server</name>
</field>
<field>
<name>name</name>
<displayname>Name</displayname>
<type>input</type>
<bindstofield>ovpnserver->step2->authtype</bindstofield>
</field>
<field>
<name>ip</name>
<displayname>Hostname or IP address</displayname>
<type>input</type>
<bindstofield>ovpnserver->step2->ip</bindstofield>
</field>
<field>
<name>port</name>
<displayname>Authentication Port</displayname>
<type>input</type>
<size>8</size>
<bindstofield>ovpnserver->step2->port</bindstofield>
</field>
<field>
<name>secret</name>
<displayname>Shared Secret</displayname>
<type>password</type>
<size>20</size>
<bindstofield>ovpnserver->step2->password</bindstofield>
</field>
<field>
<name>Add new Server</name>
<type>submit</type>
</field>
</fields>
<stepsubmitphpaction>step5_submitphpaction();</stepsubmitphpaction>
<includefile>/usr/local/www/wizards/openvpn_wizard.inc</includefile>
</step>
<step>
<id>6</id>
<description>OpenVPN Remote Access Server Setup Wizard</description>
<disableheader>on</disableheader>
<fields>
<field>
<name>Choose Certificate Authority</name>
<type>listtopic</type>
</field>
<field>
<type>certca_selection</type>
<name>certca</name>
<displayname>Certificate Authority</displayname>
<bindstofield>ovpnserver->step6->authcertca</bindstofield>
</field>
<field>
<type>submit</type>
<name>Add new CA</name>
</field>
<field>
<name>Next</name>
<type>submit</type>
</field>
</fields>
<stepbeforeformdisplay>step6_stepbeforeformdisplay();</stepbeforeformdisplay>
<stepsubmitphpaction>step6_submitphpaction();</stepsubmitphpaction>
<includefile>/usr/local/www/wizards/openvpn_wizard.inc</includefile>
</step>
<step>
<id>7</id>
<description>OpenVPN Remote Access Server Setup Wizard</description>
<disableheader>on</disableheader>
<fields>
<field>
<name>Create a new CA certificate</name>
<type>listtopic</type>
</field>
<field>
<name>name</name>
<displayname>Descriptive name</displayname>
<description>This is the same as common-name for Certificates</description>
<type>input</type>
<bindstofield>ovpnserver->step6->certca</bindstofield>
</field>
<field>
<name>keylength</name>
<displayname>Key length</displayname>
<type>select</type>
<value>2048</value>
<bindstofield>ovpnserver->step6->keylength</bindstofield>
<options>
<option>
<name>512</name>
<value>512</value>
</option>
<option>
<name>1024</name>
<value>1024</value>
</option>
<option>
<name>2048</name>
<value>2048</value>
</option>
<option>
<name>4096</name>
<value>4096</value>
</option>
</options>
</field>
<field>
<name>lifetime</name>
<displayname>Lifetime</displayname>
<type>input</type>
<size>10</size>
<value>3650</value>
<description>Lifetime in days</description>
<bindstofield>ovpnserver->step6->lifetime</bindstofield>
</field>
<field>
<name>country</name>
<displayname>Country Code</displayname>
<type>input</type>
<size>5</size>
<bindstofield>ovpnserver->step6->country</bindstofield>
</field>
<field>
<name>state</name>
<displayname>State or Province</displayname>
<type>input</type>
<size>30</size>
<bindstofield>ovpnserver->step6->state</bindstofield>
</field>
<field>
<name>city</name>
<displayname>City</displayname>
<type>input</type>
<size>30</size>
<bindstofield>ovpnserver->step6->city</bindstofield>
</field>
<field>
<name>organization</name>
<displayname>Organization</displayname>
<type>input</type>
<size>30</size>
<bindstofield>ovpnserver->step6->organization</bindstofield>
</field>
<field>
<name>email</name>
<displayname>E-mail</displayname>
<type>input</type>
<size>30</size>
<bindstofield>ovpnserver->step6->email</bindstofield>
</field>
<field>
<name>Add new CA</name>
<type>submit</type>
</field>
</fields>
<stepsubmitphpaction>step7_submitphpaction();</stepsubmitphpaction>
<includefile>/usr/local/www/wizards/openvpn_wizard.inc</includefile>
<javascriptafterformdisplay>enablechange();</javascriptafterformdisplay>
</step>
<step>
<id>8</id>
<description>OpenVPN Remote Access Server Setup Wizard</description>
<disableheader>on</disableheader>
<fields>
<field>
<name>Choose Certificate</name>
<type>listtopic</type>
</field>
<field>
<type>cert_selection</type>
<name>certname</name>
<displayname>Certificate</displayname>
<bindstofield>ovpnserver->step9->authcertname</bindstofield>
</field>
<field>
<type>submit</type>
<name>Add new Certificate</name>
</field>
<field>
<name>Next</name>
<type>submit</type>
</field>
</fields>
<stepbeforeformdisplay>step8_stepbeforeformdisplay();</stepbeforeformdisplay>
<stepsubmitphpaction>step8_submitphpaction();</stepsubmitphpaction>
<includefile>/usr/local/www/wizards/openvpn_wizard.inc</includefile>
</step>
<step>
<id>9</id>
<description>OpenVPN Remote Access Server Setup Wizard</description>
<disableheader>on</disableheader>
<fields>
<field>
<name>Create a new certificate</name>
<type>listtopic</type>
</field>
<field>
<name>name</name>
<displayname>Descriptive name</displayname>
<type>input</type>
<bindstofield>ovpnserver->step9->certname</bindstofield>
</field>
<field>
<name>keylength</name>
<displayname>Key length</displayname>
<type>select</type>
<value>2048</value>
<bindstofield>ovpnserver->step9->keylength</bindstofield>
<options>
<option>
<name>512</name>
<value>512</value>
</option>
<option>
<name>1024</name>
<value>1024</value>
</option>
<option>
<name>2048</name>
<value>2048</value>
</option>
<option>
<name>4096</name>
<value>4096</value>
</option>
</options>
</field>
<field>
<name>lifetime</name>
<displayname>Lifetime</displayname>
<type>input</type>
<size>10</size>
<value>3650</value>
<description>Lifetime in days</description>
<bindstofield>ovpnserver->step9->lifetime</bindstofield>
</field>
<field>
<name>country</name>
<displayname>Country Code</displayname>
<type>input</type>
<size>5</size>
<bindstofield>ovpnserver->step9->country</bindstofield>
</field>
<field>
<name>state</name>
<displayname>State or Province</displayname>
<type>input</type>
<size>30</size>
<bindstofield>ovpnserver->step9->state</bindstofield>
</field>
<field>
<name>city</name>
<displayname>City</displayname>
<type>input</type>
<size>30</size>
<bindstofield>ovpnserver->step9->city</bindstofield>
</field>
<field>
<name>organization</name>
<displayname>Organization</displayname>
<type>input</type>
<size>30</size>
<bindstofield>ovpnserver->step9->organization</bindstofield>
</field>
<field>
<name>email</name>
<displayname>E-mail</displayname>
<type>input</type>
<size>30</size>
<bindstofield>ovpnserver->step9->email</bindstofield>
</field>
<field>
<name>Create new Certificate</name>
<type>submit</type>
</field>
</fields>
<stepbeforeformdisplay>step9_stepbeforeformdisplay();</stepbeforeformdisplay>
<stepsubmitphpaction>step9_submitphpaction();</stepsubmitphpaction>
<includefile>/usr/local/www/wizards/openvpn_wizard.inc</includefile>
</step>
<step>
<id>10</id>
<description>OpenVPN Remote Access Server Setup Wizard</description>
<disableheader>on</disableheader>
<fields>
<field>
<type>listtopic</type>
<name>General Information</name>
</field>
<field>
<name>interface</name>
<type>interfaces_selection</type>
<displayname>Interface</displayname>
<bindstofield>ovpnserver->step10->interface</bindstofield>
</field>
<field>
<name>Protocol</name>
<type>select</type>
<bindstofield>ovpnserver->step10->protocol</bindstofield>
<options>
<option>
<name>UDP</name>
<value>udp</value>
</option>
<option>
<name>TCP</name>
<value>tcp</value>
</option>
</options>
</field>
<field>
<name>localport</name>
<displayname>Local port</displayname>
<type>input</type>
<size>10</size>
<bindstofield>ovpnserver->step10->localport</bindstofield>
</field>
<field>
<name>description</name>
<displayname>Description</displayname>
<type>input</type>
<size>30</size>
<bindstofield>ovpnserver->step10->descr</bindstofield>
</field>
<field>
<type>listtopic</type>
<name>Cryptographic Settings</name>
</field>
<field>
<name>TLS Authentication</name>
<type>checkbox</type>
<value>on</value>
<description>Enable authentication of TLS packets.</description>
<bindstofield>ovpnserver->step10->tlsauth</bindstofield>
</field>
<field>
<displayname>Automatically generate a TLS key</displayname>
<name>generatetlskey</name>
<disablefields>tlssharedkey</disablefields>
<value>on</value>
<type>checkbox</type>
<description>Automatically generate a shared TLS authentication key.</description>
<bindstofield>ovpnserver->step10->gentlskey</bindstofield>
</field>
<field>
<name>tlssharedkey</name>
<type>textarea</type>
<cols>30</cols>
<rows>5</rows>
<bindstofield>ovpnserver->step10->tlskey</bindstofield>
</field>
<field>
<displayname>DH Parameters Length</displayname>
<name>dhparameters</name>
<type>select</type>
<bindstofield>ovpnserver->step10->dhkey</bindstofield>
<options>
<option>
<name>1024</name>
<value>1024</value>
</option>
<option>
<name>2048</name>
<value>2048</value>
</option>
<option>
<name>4096</name>
<value>4096</value>
</option>
</options>
</field>
<field>
<name>crypto</name>
<type>select</type>
<displayname>Encryption algorithm</displayname>
<bindstofield>ovpnserver->step10->crypto</bindstofield>
<options>
<option>
<name>dummy</name>
<value>dummy</value>
</option>
</options>
</field>
<field>
<type>listtopic</type>
<name>Tunnel Settings</name>
</field>
<field>
<displayname>Tunnel network</displayname>
<name>tunnelnet</name>
<type>input</type>
<size>20</size>
<bindstofield>ovpnserver->step10->tunnelnet</bindstofield>
</field>
<field>
<displayname>Redirect Gateway</displayname>
<name>redirectgw</name>
<type>checkbox</type>
<description>Force all client generated traffic through the tunnel.</description>
<bindstofield>ovpnserver->step10->rdrgw</bindstofield>
</field>
<field>
<displayname>Remote network</displayname>
<name>remotenet</name>
<type>input</type>
<size>20</size>
<bindstofield>ovpnserver->step10->remotenet</bindstofield>
</field>
<field>
<displayname>Local network</displayname>
<name>localnet</name>
<type>input</type>
<size>20</size>
<bindstofield>ovpnserver->step10->localnet</bindstofield>
</field>
<field>
<displayname>Concurrent Connections</displayname>
<name>concurrentcon</name>
<description>Specify the maximum number of clients allowed to concurrently connect to this server.</description>
<type>input</type>
<size>10</size>
<bindstofield>ovpnserver->step10->concurrentcon</bindstofield>
</field>
<field>
<displayname>Compression</displayname>
<name>compression</name>
<type>checkbox</type>
<description>Compress tunnel packets using the LZO algorithm.</description>
<bindstofield>ovpnserver->step10->compression</bindstofield>
</field>
<field>
<displayname>Type-of-Service</displayname>
<name>tos</name>
<type>checkbox</type>
<description>Set the TOS IP header value of tunnel packets to match the encapsulated packet value.</description>
<bindstofield>ovpnserver->step10->tos</bindstofield>
</field>
<field>
<displayname>Inter-client communication</displayname>
<name>interclient</name>
<type>checkbox</type>
<description>Allow communication between clients connected to this server.</description>
<bindstofield>ovpnserver->step10->interclient</bindstofield>
</field>
<field>
<type>listtopic</type>
<name>Client Settings</name>
</field>
<field>
<displayname>Address Pool</displayname>
<name>addrpool</name>
<type>checkbox</type>
<value>on</value>
<description>Provide a virtual adapter IP address to clients (see Tunnel Network).</description>
<bindstofield>ovpnserver->step10->addrpool</bindstofield>
</field>
<field>
<displayname>DNS Default Domain</displayname>
<name>defaultdomain</name>
<type>input</type>
<description>Provide a default domain name to clients.</description>
<bindstofield>ovpnserver->step10->defaultdomain</bindstofield>
</field>
<field>
<displayname>DNS Server 1</displayname>
<name>dnsserver1</name>
<type>input</type>
<bindstofield>ovpnserver->step10->dns1</bindstofield>
</field>
<field>
<displayname>DNS Server 2</displayname>
<name>dnserver2</name>
<type>input</type>
<bindstofield>ovpnserver->step10->dns2</bindstofield>
</field>
<field>
<displayname>DNS Server 3</displayname>
<name>dnserver3</name>
<type>input</type>
<bindstofield>ovpnserver->step10->dns3</bindstofield>
</field>
<field>
<displayname>DNS Server 4</displayname>
<name>dnserver4</name>
<type>input</type>
<bindstofield>ovpnserver->step10->dns4</bindstofield>
</field>
<field>
<displayname>NTP Server</displayname>
<name>ntpserver1</name>
<type>input</type>
<bindstofield>ovpnserver->step10->ntp1</bindstofield>
</field>
<field>
<displayname>NTP Server 2</displayname>
<name>ntpserver2</name>
<type>input</type>
<bindstofield>ovpnserver->step10->ntp2</bindstofield>
</field>
<field>
<name>nbtenable</name>
<type>checkbox</type>
<displayname>Enable NetBios option</displayname>
</field>
<field>
<displayname>NetBios Node Type</displayname>
<name>nbttype</name>
<type>select</type>
<bindstofield>ovpnserver->step10->nbttype</bindstofield>
<options>
<option>
<name>dummy</name>
<value>dummy</value>
</option>
</options>
</field>
<field>
<displayname>NetBios Scope</displayname>
<name>nbtscope</name>
<type>input</type>
<bindstofield>ovpnserver->step10->nbtscope</bindstofield>
</field>
<field>
<displayname>WINS Server 1</displayname>
<name>winsserver1</name>
<type>input</type>
<bindstofield>ovpnserver->step10->wins1</bindstofield>
</field>
<field>
<displayname>WINS Server 2</displayname>
<name>winsserver2</name>
<type>input</type>
<bindstofield>ovpnserver->step10->wins2</bindstofield>
</field>
<field>
<name>Advanced</name>
<type>textarea</type>
<cols>30</cols>
<rows>5</rows>
<description>Enter any additional options you would like to add to the OpenVPN server configuration here, separated by a semicolon. EXAMPLE: push "route 10.0.0.0 255.255.255.0"</description>
<bindstofield>ovpnserver->step10->advanced</bindstofield>
</field>
<field>
<name>Next</name>
<type>submit</type>
</field>
</fields>
<stepbeforeformdisplay>step10_stepbeforeformdisplay();</stepbeforeformdisplay>
<stepsubmitphpaction>step10_submitphpaction();</stepsubmitphpaction>
<includefile>/usr/local/www/wizards/openvpn_wizard.inc</includefile>
</step>
<step>
<id>11</id>
<description>OpenVPN Remote Access Server Setup Wizard</description>
<disableheader>on</disableheader>
<fields>
<field>
<type>listtopic</type>
<name>Firewall Rules configuration</name>
</field>
<field>
<type>text</type>
<description>Firewall Rules control what network traffic is permitted. You must add rules to allow traffic to the OpenVPN server's IP and port, as well as allowing traffic from connected clients through the tunnel. These rules can be auto-added here, or configured manually after completing the wizardr.</description>
</field>
<field>
<type>listtopic</type>
<name>Traffic from clients to server</name>
</field>
<field>
<name>ovpnrule</name>
<displayname>Firewall Rule</displayname>
<description>Automatically add rule to permit</description>
<type>checkbox</type>
<bindstofield>ovpnserver->step11->ovpnrule</bindstofield>
</field>
<field>
<type>listtopic</type>
<name>Traffic from clients through VPN</name>
</field>
<field>
<name>ovpnallow</name>
<displayname>OpenVPN rule</displayname>
<description>Add a rule to allow all traffic from connected clients</description>
<type>checkbox</type>
<bindstofield>ovpnserver->step11->ovpnallow</bindstofield>
</field>
<field>
<name>Next</name>
<type>submit</type>
</field>
</fields>
</step>
<step>
<id>12</id>
<description>OpenVPN Remote Access Server Setup Wizard</description>
<disableheader>on</disableheader>
<fields>
<field>
<type>listtopic</type>
<name>Configuration Complete!</name>
</field>
<field>
<type>text</type>
<description>Your configuration is now complete.</description>
</field>
<field>
<type>text</type>
<description>To be able to export client configurations, browse to System->Packages and install the OpenVPN Client Export package.</description>
</field>
<field>
<type>submit</type>
<name>Finish</name>
</field>
</fields>
<stepsubmitphpaction>step12_submitphpaction();</stepsubmitphpaction>
<includefile>/usr/local/www/wizards/openvpn_wizard.inc</includefile>
</step>
</pfsensewizard>
|