Rapid deployment of temporary OPENVPNAccessServer in centos

Source: Internet
Author: User
Download OpenVPNAccessServer: openvpn.netindex.phpaccess-serverdownload-openvpn-as.html wgetswupdate. openvpn. orgasopenvpn-as-1.8.3-CentOS5.i386.rpm installation: rpm-ivhopenvpn-as-1.8.3-CentOS5.i386.rpm run

Download the appropriate version of OpenVPN Access Server: http://openvpn.net/index.php/access-server/download-openvpn-as.html wget http://swupdate.openvpn.org/as/openvpn-as-1.8.3-CentOS5.i386.rpm installation: rpm-ivh openvpn-as-1.8.3-CentOS5.i386.rpm run

Download the OpenVPN Access Server from the URL:
Http://openvpn.net/index.php/access-server/download-openvpn-as.html

Wget http://swupdate.openvpn.org/as/openvpn-as-1.8.3-CentOS5.i386.rpm

Installation:
Rpm-ivh openvpn-as-1.8.3-CentOS5.i386.rpm

Run:
/Usr/local/openvpn_as/bin/ovpn-init

[Root @ localhost ~] #/Usr/local/openvpn_as/bin/ovpn-init
Detected an existing OpenVPN-AS configuration.
Continuing will delete this configuration and restart from scratch.
Please enter 'delete' to DELETE existing configuration:
OpenVPN-AS configuration has not been modified.
[Root @ localhost ~] #/Usr/local/openvpn_as/bin/ovpn-init
Detected an existing OpenVPN-AS configuration.
Continuing will delete this configuration and restart from scratch.
Please enter 'delete' to DELETE existing configuration: delete
Stopping openvpnas daemon...

OpenVPN Access Server
Initial Configuration Tool
------------------------------------------------------
OpenVPN Access Server End User License Agreement (OpenVPN-as eula)

1. Copyright Notice: OpenVPN Access Server License;
Copyright (c) 2009-2011 OpenVPN Technologies, Inc. All rights reserved.
"OpenVPN" is a trademark of OpenVPN Technologies, Inc.
2. Redistribution of OpenVPN Access Server binary forms and parameters ENTs,
Are permitted provided that redistributions of OpenVPN Access Server
Binary forms and documents must reproduce the above copyright notice.
3. You agree not to reverse engineer, decompile, disassemble, modify, translate,
Make any attempt to discover the source code of this software, or create
Derivative works from this software.
4. The OpenVPN Access Server is bundled with other open source software
Components, some of which fall under different licenses. By using
OpenVPN or any of the bundled components, you agree to be bound
The conditions of the license for each respective component.
See/usr/local/openvpn_as/license.txt in the Access Server distribution
For more info.
5. this software is provided "as is" and any expressed or implied warranties,
INCLUDING, but not limited to, THE IMPLIED WARRANTIES OF MERCHANTABILITY
And fitness for a participant purpose are disclaimed. IN NO EVENT SHALL
Openvpn technologies, inc 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
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.

Please enter 'yes' to indicate your agreement [no]: yes

Once you provide a few initial configuration settings,
OpenVPN Access Server can be configured by accessing
Its Admin Web UI using your Web browser.

Will this be the primary Access Server node?
(Enter 'no' to configure as a backup or standby node)
> Press ENTER for default [yes]:

Please specify the network interface and IP address to be
Used by the Admin Web UI:
(1) all interfaces: 0.0.0.0
(2) eth0: 10.0.2.15
(3) eth1: 192.168.56.150
Please enter the option number from the list above (1-3 ).
> Press Enter for default [2]: 3

Please specify the port number for the Admin Web UI.
> Press ENTER for default [2, 943]:

Please specify the TCP port number for the OpenVPN Daemon
> Press ENTER for default [2, 443]:

Shocould client traffic be routed by default through the VPN?
> Press ENTER for default [yes]:

Shocould client DNS traffic be routed by default through the VPN?
> Press ENTER for default [yes]:

Use local authentication via internal DB?
> Press ENTER for default [no]:

Private subnets detected: ['10. 0.2.0/24', '192. 168.56.0/24']

Shocould private subnets be accessible to clients by default?
> Press ENTER for default [yes]:

To initially login to the Admin Web UI, you must use
Username and password that successfully authenticates you
With the host UNIX system (you can later modify the settings
So that RADIUS or LDAP is used for authentication instead ).

You can login to the Admin Web UI as "openvpn" or specify
A different user account to use for this purpose.

Do you wish to login to the Admin UI as "openvpn "?
> Press ENTER for default [yes]:

> Please specify your OpenVPN-AS license key (or leave blank to specify later ):


Initializing OpenVPN...
Adding new user login...
Useradd-s/sbin/nologin "openvpn"
Writing as configuration file...
Perform sa init...
Wiping any previous userdb...
Creating default profile...
Modifying default profile...
Adding new user to userdb...
Modifying new user as superuser in userdb...
Getting hostname...
Hostname: localhost. localdomain
Preparing web certificates...
Getting web user account...
Adding web group account...
Adding web group...
Adjusting license directory ownership...
Initializing confdb...
Generating init scripts...
Generating PAM config...
Generating init scripts auto command...
Starting openvpnas...

NOTE: Your system clock must be correct for OpenVPN Access Server
To perform correctly. Please ensure that your time and date
Are correct on this system.

Initial Configuration Complete!

You can now continue login ing OpenVPN Access Server
Directing your Web browser to this URL:

Https: // 192.168.56.150: 943/admin
Login as "openvpn" with the same password used to authenticate
To this UNIX host.

During normal operation, OpenVPN AS can be accessed via these URLs:
Admin UI: https: // 192.168.56.150: 943/admin
Client UI: https: // 192.168.56.150: 943/

See the Release Notes for this release:
Http://www.openvpn.net/access-server/rn/openvpn_as_1_8_3.html

Set the logon vpn user password:
Passwd openvpn

Logon management interface:
Https: // 192.168.56.150: 943/admin

Share blog, declined to reprint!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.