说明:http://www.openvpn.net/index.php/access ... -v123.html
http://www.openvpn.net/index.php/access ... pn-as.html
http://www.openvpn.net/images/download/ ... 8.i386.deb
http://www.openvpn.net/images/download/ ... amd_64.deb
http://www.openvpn.net/images/download/ ... 9.i386.deb
http://www.openvpn.net/images/download/ ... amd_64.deb
Introduction:
OpenVPN Access Server (OpenVPN-AS) is a set of installation and configuration tools that simplify the rapid deployment of a VPN remote access solution. It is based on the popular OpenVPN open-source software, making the deployed VPN immediately compatible with OpenVPN client software across multiple user platforms. OpenVPN-AS features include:
*
OpenVPN Access Server System Administrator GuideA simple, Web-based Admin UI for configuration and management.
*
An easy-to-use, GUI-based OpenVPN Client software package for Windows.
*
A Client Web Server that automatically generates a client configuration and a pre-configured Windows VPN Client software installer for the user upon successful login.
*
Integration with existing authentication systems using RADIUS, LDAP, and PAM
OpenVPN-AS gives you the broad support and robust security of the OpenVPN open-source software project, coupled with the configuration and management tools needed to deploy the VPN solution easily and quickly.
Note:
If you are interested in installing OpenVPN Access Server on a VPS container, please read this HOWTO page.
Installation Overview:
If you are upgrading from the Access Server v1.1.3, v1.2.0, v1.2.1 or v1.2.2 release, please see the instructions in the Access Server v1.2.3 Release Notes page.
Instructions:
1.
Download the OpenVPN-AS package file for your Linux platform (by selecting your Operating System and Version from the drop-down boxes above)
2.
As root, install the OpenVPN-AS package. For example,
Fedora/RedHat/CentOS:
rpm -i openvpn-as-1.2.3-Fedora9.x86_64.rpm
Ubuntu:
dpkg -i openvpn-as-1.2.3-Ubuntu8.amd_64.deb
3.
Run the “ovpn-init” program to choose initial settings
/usr/local/openvpn_as/bin/ovpn-init
4.
Access the Admin Web UI to continue configuration
5.
Obtain a license key from the License Page and activate it via the Admin Web UI
6.
Using the Admin Web UI, configure the desired network and authentication settings, then start the VPN Server
7.
Remote users login to the Client Web Server and download a pre-configured Windows VPN Client software installer or client configuration file
8.
Immediately after installing the Windows VPN Client software, remote users can access the VPN
DEB安装完毕后开始配置
输入
代码: 全选
sudo /usr/local/openvpn_as/bin/ovpn-init
代码: 全选
may@may-desktop:~$ sudo /usr/local/openvpn_as/bin/ovpn-init
[sudo] password for may:
OpenVPN Access Server v1.1
Initial Configuration Tool
------------------------------------------------------
OpenVPN Access Server End User License Agreement (OpenVPN-AS EULA)
1. Copyright Notice: OpenVPN Access Server License;
Copyright (c) 2009 OpenVPN Technologies, Inc.. All rights reserved.
2. Redistribution of OpenVPN Access Server binary forms and documents,
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. 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 PARTICULAR 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 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.
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.
Please specify the network interface and IP address to be
used by the Admin Web UI:
(1) all interfaces: 0.0.0.0
(2) ppp0: 222.185.86.243
(3) ppp0: 192.168.1.7
Please enter the option number from the list above (1-3).
> Press Enter for default [2]: 1
Please specify the port number for the Admin Web UI.
> Press ENTER for default [943]:
Please specify the TCP port number for the OpenVPN Daemon
> Press ENTER for default [443]:
Should client traffic be routed by default through the VPN?
> Press ENTER for default [yes]: yes
Should RFC1918 private subnets be accessible to clients by default?
> Press ENTER for default [yes]: yes
To initially login to the Admin Web UI, you must use a
username and password that successfully authenticate 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 'root' with your existing
root password or specify a different user account to use for this
purpose. If you choose to use a non-root account, you can create
a new user account or specify an existing user account.
Do you wish to login as 'root'?
> Press ENTER for default [yes]: n
> Specify the username for an existing user or for the new user account: may
Note: This user already exists.
Initializing 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: may-desktop
Preparing web certificates...
Getting web user account...
Adding web group account...
Adding web user account...
Adding web group...
Adjusting license directory ownership...
Initializing userdb...
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 configuring OpenVPN Access Server by
directing your Web browser to this URL:
https://222.185.86.243:943/admin
Login as "may" with the same password used to authenticate
to this UNIX host.
See the Release Notes for this release at:
http://www.openvpn.net/access-server/rn/openvpn_as_1_3_0.html
许可证密钥
每个许可证密钥激活了OpenVPN的连接到接入服务器客户的具体数量。
免费的许可证密钥的目的是让你和运行,将启动(2)客户端。
您可以购买更多的客户5.00美元/每客户端。最低购买10 $ 50(美元)并发客户端。
http://www.openvpn.net/index.php/access ... e-key.html
浏览器输入 https://222.185.86.243:943/admin 管理
新建用户件下图,
然后让用户访问 https://222.185.86.243:943 下载 配置文件或者软件来链接你的VPN
写了个脚本方便连接openvpn!!
-------说明-------
1、没有按照lsb-init的规则来写,只是怎么方便怎么写。
2、有什么BUG,添加了新功能跟帖
3、没什么别的意思,有违反什么规则的,版主删贴。
-------用法-------
看脚本
------安装-------
把ca.crt和client.conf复制到/etc/openvpn里面就OK了。
你不愿意?改脚本。
-----依赖------
废话,openvpn,bash.没了。
-----追加-----
需要ultravpn的帐号。
===================================
今天有重新安装了一次,截图下
临时地址是:https://222.185.86.243:943/ 添加新用户,可以本机添加 用户权限管理界面 找人测试中。。。
网页登入OK,VPN使用应该也问题的说。
------
自己虚拟机拨号测试了,反正也一样,可以的独立IP 链接上后的