/* $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.
*/
121Choose the type of user authentication you wish to use.OpenVPN Remote Access Server Setup WizardselectType of ServerauthtypeChoose authentication backend type.ovpnserver->step1->typeNextsubmitstep1_submitphpaction();/usr/local/www/wizards/openvpn_wizard.inc2OpenVPN Remote Access Server Setup WizardonlisttopicAuthentication Servers listauthservAuthentication serversselectovpnserver->step2->authservsubmitAdd new LDAP serversubmitNextstep2_stepbeforeformdisplay();step2_submitphpaction();enablechange();/usr/local/www/wizards/openvpn_wizard.inc3OpenVPN Remote Access Server Setup WizardonlisttopicLDAP authentication server parametersnameNameinputovpnserver->step2->authtypeipHostname or IP addressinputovpnserver->step2->ipportPortinput8ovpnserver->step2->porttransportTransportselectovpnserver->step2->transportscopeSearch Scopeinput30ovpnserver->step2->scopeauthscopeAuthentication Containersinput40ovpnserver->step2->authscopeuserdnUser DNinput20If you leave it blank an anonymous bind will be done.ovpnserver->step2->userdnpassdnPasswordpassword20ovpnserver->step2->passdnnameattrUser naming attributeinputovpnserver->step2->nameattrmemberattrMember naming attributeinputovpnserver->step2->memberattrgroupattrGroup naming attributeinputovpnserver->step2->groupattrsubmitAdd new Serverstep3_submitphpaction();enablechange();/usr/local/www/wizards/openvpn_wizard.inc4OpenVPN Remote Access Server Setup WizardonlisttopicAuthentication Servers listauthservAuthentication serversselectovpnserver->step2->authservsubmitAdd new RADIUS serversubmitNextstep4_stepbeforeformdisplay();step4_submitphpaction();enablechange();/usr/local/www/wizards/openvpn_wizard.inc5OpenVPN Remote Access Server Setup WizardonlisttopicAdd a new authentication servernameNameinputovpnserver->step2->authtypeipHostname or IP addressinputovpnserver->step2->ipportAuthentication Portinput8ovpnserver->step2->portsecretShared Secretpassword20ovpnserver->step2->passwordAdd new Serversubmitstep5_submitphpaction();/usr/local/www/wizards/openvpn_wizard.inc6OpenVPN Remote Access Server Setup WizardonChoose Certificate Authoritylisttopiccertca_selectioncertcaCertificate Authorityovpnserver->step6->authcertcasubmitAdd new CANextsubmitstep6_stepbeforeformdisplay();step6_submitphpaction();/usr/local/www/wizards/openvpn_wizard.inc7OpenVPN Remote Access Server Setup WizardonCreate a new CA certificatelisttopicnameDescriptive nameThis is the same as common-name for Certificatesinputovpnserver->step6->certcakeylengthKey lengthselect2048ovpnserver->step6->keylengthlifetimeLifetimeinput103650Lifetime in daysovpnserver->step6->lifetimecountryCountry Codeinput5ovpnserver->step6->countrystateState or Provinceinput30ovpnserver->step6->statecityCityinput30ovpnserver->step6->cityorganizationOrganizationinput30ovpnserver->step6->organizationemailE-mailinput30ovpnserver->step6->emailAdd new CAsubmitstep7_submitphpaction();/usr/local/www/wizards/openvpn_wizard.incenablechange();8OpenVPN Remote Access Server Setup WizardonChoose Certificatelisttopiccert_selectioncertnameCertificateovpnserver->step9->authcertnamesubmitAdd new CertificateNextsubmitstep8_stepbeforeformdisplay();step8_submitphpaction();/usr/local/www/wizards/openvpn_wizard.inc9OpenVPN Remote Access Server Setup WizardonCreate a new certificatelisttopicnameDescriptive nameinputovpnserver->step9->certnamekeylengthKey lengthselect2048ovpnserver->step9->keylengthlifetimeLifetimeinput103650Lifetime in daysovpnserver->step9->lifetimecountryCountry Codeinput5ovpnserver->step9->countrystateState or Provinceinput30ovpnserver->step9->statecityCityinput30ovpnserver->step9->cityorganizationOrganizationinput30ovpnserver->step9->organizationemailE-mailinput30ovpnserver->step9->emailCreate new Certificatesubmitstep9_submitphpaction();/usr/local/www/wizards/openvpn_wizard.inc10OpenVPN Remote Access Server Setup WizardonlisttopicGeneral Informationinterfaceinterfaces_selectionInterfaceovpnserver->step10->interfaceProtocolselectovpnserver->step10->protocollocalportLocal portinput10ovpnserver->step10->localportdescriptionDescriptioninput30ovpnserver->step10->descrlisttopicCryptographic SettingsTLS AuthenticationcheckboxonEnable authentication of TLS packets.ovpnserver->step10->tlsauthAutomatically generate a TLS keygeneratetlskeytlssharedkeyoncheckboxAutomatically generate a shared TLS authentication key.ovpnserver->step10->gentlskeytlssharedkeytextarea305ovpnserver->step10->tlskeyDH Parameters Lengthdhparametersselectovpnserver->step10->dhkeycryptoselectEncryption algorithmovpnserver->step10->cryptolisttopicTunnel SettingsTunnel networktunnelnetinput20ovpnserver->step10->tunnelnetRedirect GatewayredirectgwcheckboxForce all client generated traffic through the tunnel.ovpnserver->step10->rdrgwRemote networkremotenetinput20ovpnserver->step10->remotenetLocal networklocalnetinput20ovpnserver->step10->localnetConcurrent ConnectionsconcurrentconSpecify the maximum number of clients allowed to concurrently connect to this server.input10ovpnserver->step10->concurrentconCompressioncompressioncheckboxCompress tunnel packets using the LZO algorithm.ovpnserver->step10->compressionType-of-ServicetoscheckboxSet the TOS IP header value of tunnel packets to match the encapsulated packet value.ovpnserver->step10->tosInter-client communicationinterclientcheckboxAllow communication between clients connected to this server.ovpnserver->step10->interclientlisttopicClient SettingsAddress PooladdrpoolcheckboxProvide a virtual adapter IP address to clients (see Tunnel Network).ovpnserver->step10->addrpoolDNS Default DomaindefaultdomaininputProvide a default domain name to clients.ovpnserver->step10->defaultdomainDNS Server 1dnsserver1inputovpnserver->step10->dns1DNS Server 2dnserver2inputovpnserver->step10->dns2DNS Server 3dnserver3inputovpnserver->step10->dns3DNS Server 4dnserver4inputovpnserver->step10->dns4NTP Serverntpserver1inputovpnserver->step10->ntp1NTP Server 2ntpserver2inputovpnserver->step10->ntp2nbtenablecheckboxEnable NetBios optionNetBios Node Typenbttypeselectovpnserver->step10->nbttypeNetBios Scopenbtscopeinputovpnserver->step10->nbtscopeWINS Server 1winsserver1inputovpnserver->step10->wins1WINS Server 2winsserver2inputovpnserver->step10->wins2Advancedtextarea305Enter 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"ovpnserver->step10->advancedNextsubmitstep10_stepbeforeformdisplay();step10_submitphpaction();/usr/local/www/wizards/openvpn_wizard.inc11OpenVPN Remote Access Server Setup WizardonlisttopicTraffic from clients to serverovpnruleFirewall RuleAutomatically add rule to permitcheckboxovpnserver->step11->ovpnrulelisttopicTraffic from clients through VPNovpnallowOpenVPN ruleAdd a rule to allow all traffic from connected clientscheckboxovpnserver->step11->ovpnallowNextsubmit12OpenVPN Remote Access Server Setup WizardontextConfiguration CompletesubmitFinishstep12_submitphpaction();/usr/local/www/wizards/openvpn_wizard.inc