openvpn README

The project's README from github.com/OpenVPN/openvpn. As one markdown file: README.md.

OpenVPN -- A Secure tunneling daemon

Copyright (C) 2002-2026 OpenVPN Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.


To get the latest release of OpenVPN, go to:

https://openvpn.net/community-downloads/

To Build and Install,

tar -zxf openvpn-<version>.tar.gz
cd openvpn-<version>
./configure
make
make install

or see the file INSTALL for more info.

For information on how to build OpenVPN on/for Windows with MinGW or MSVC see README.cmake.md.


For detailed information on OpenVPN, including examples, see the man page http://openvpn.net/man.html

For a sample VPN configuration, see http://openvpn.net/howto.html

To report an issue, see https://github.com/OpenVPN/openvpn/issues/new

For a description of OpenVPN's underlying protocol, see the file ssl.h included in the source distribution.


Other Files & Directories:


Note that easy-rsa and tap-windows are now maintained in their own subprojects. Their source code is available here:

https://github.com/OpenVPN/easy-rsa https://github.com/OpenVPN/tap-windows6

Community-provided Windows installers (MSI) and Debian packages are built from

https://github.com/OpenVPN/openvpn-build

See the INSTALL file for usage information.

openvpn (OpenVPN/openvpn)

Searching Database…

14.7K ·GitHub
这是干什么用的?OpenVPN 是一个开源的 VPN 守护进程——也就是一种在后台运行的服务,它能在公共互联网上建立一条安全加密的隧道,让你的设备可以像直连一样访问私有网络。
它是装在服务器上用的,还是普通电脑上也能装?都可以。它是一个守护进程,既可以作为 VPN 服务端运行,也可以作为连接服务端的客户端使用:社区提供了 Windows 安装包(MSI)和 Debian 软件包,在类 Unix 系统上也能从源码编译。
仓库里有没有什么东西是不能用在正式部署中的?有——仓库自带的 sample-keys/ 目录里放的是仅用于测试的 RSA 示例密钥和证书,README 里特意用大写字母警告说它们完全不安全。千万不要在真实环境中使用。
可以免费使用吗,包括商业用途?可以——它是基于 GNU 通用公共许可证第 2 版(GNU GPL v2)发布的自由软件,只要遵守该许可证的条款,你就可以自由使用、修改和再分发,包括用于商业目的。
我在哪里能找到现成的配置文件作为参考?sample/sample-config-files/ 目录收录了官方 HOWTO 中的 OpenVPN 配置文件和脚本,手册页(man page)里还有更详细的说明和示例。
VPN 需要的证书和密钥该怎么生成?用 easy-rsa。它已经不再包含在这个仓库里了——就像 Windows 的 tap-windows 驱动一样,它作为独立子项目单独维护,需要另外获取。
OpenVPN 自己的隧道协议在哪里有文档说明?在源代码里:README 指出,源码包中的 ssl.h 文件对 OpenVPN 的底层协议有具体描述。
Creator
OpenVPN
Size
28.8 MB
Stars
14.7K
Age
14y
Commits · 90 Days