Установка и настройка OpenVPN на Debian 8: различия между версиями
Материал из support.qbpro.ru
imported>Supportadmin Нет описания правки |
imported>Supportadmin Нет описания правки |
||
Строка 1: | Строка 1: | ||
Генерация сертификатов как [http://support.qbpro.ru/index.php?title=Debian_squeeze_open-vpn здесь]. | Генерация сертификатов как [http://support.qbpro.ru/index.php?title=Debian_squeeze_open-vpn здесь]. | ||
Подключить [https://community.openvpn.net/openvpn/wiki/OpenvpnSoftwareRepos репозиторий] | |||
На всякий случай продублирую | |||
<nowiki> | |||
Using OpenVPN apt repositories | |||
We maintain several OpenVPN (OSS) software repositories. To setup the repositories you need to change to the root user. Typically this is done using sudo: | |||
$ sudo -s | |||
Then import the public GPG key that is used to sign the packages: | |||
$ wget -O - https://swupdate.openvpn.net/repos/repo-public.gpg|apt-key add - | |||
Next you need to create a sources.list fragment (as root) so that apt can find the new OpenVPN packages. One way to do it is this: | |||
$ echo "deb http://build.openvpn.net/debian/openvpn/<version> <osrelease> main" > /etc/apt/sources.list.d/openvpn-aptrepo.list | |||
Where <version> can be one of | |||
stable: stable releases only - no alphas, betas or RCs | |||
testing: latest releases, including alphas/betas/RCs | |||
release/2.3: OpenvPN 2.3 releases | |||
release/2.4: OpenVPN 2.4 releases, including alphas/betas/RCs | |||
and <osrelease> depends your distribution: | |||
wheezy (Debian 7.x) | |||
jessie (Debian 8.x) | |||
precise (Ubuntu 12.04) | |||
trusty (Ubuntu 14.04) | |||
xenial (Ubuntu 16.04) | |||
Examples: | |||
$ echo "deb http://build.openvpn.net/debian/openvpn/testing jessie main" > /etc/apt/sources.list.d/openvpn-aptrepo.list | |||
$ echo "deb http://build.openvpn.net/debian/openvpn/release/2.3 wheezy main" > /etc/apt/sources.list.d/openvpn-aptrepo.list | |||
Now you're set for installing OpenVPN. Note that packages built for older operating system releases might work just fine on newer release of the same operating system. | |||
Installing OpenVPN | |||
On Debian/Ubuntu use | |||
$ apt-get update && apt-get install openvpn</nowiki> |
Версия от 13:38, 12 января 2017
Генерация сертификатов как здесь.
Подключить репозиторий
На всякий случай продублирую
Using OpenVPN apt repositories We maintain several OpenVPN (OSS) software repositories. To setup the repositories you need to change to the root user. Typically this is done using sudo: $ sudo -s Then import the public GPG key that is used to sign the packages: $ wget -O - https://swupdate.openvpn.net/repos/repo-public.gpg|apt-key add - Next you need to create a sources.list fragment (as root) so that apt can find the new OpenVPN packages. One way to do it is this: $ echo "deb http://build.openvpn.net/debian/openvpn/<version> <osrelease> main" > /etc/apt/sources.list.d/openvpn-aptrepo.list Where <version> can be one of stable: stable releases only - no alphas, betas or RCs testing: latest releases, including alphas/betas/RCs release/2.3: OpenvPN 2.3 releases release/2.4: OpenVPN 2.4 releases, including alphas/betas/RCs and <osrelease> depends your distribution: wheezy (Debian 7.x) jessie (Debian 8.x) precise (Ubuntu 12.04) trusty (Ubuntu 14.04) xenial (Ubuntu 16.04) Examples: $ echo "deb http://build.openvpn.net/debian/openvpn/testing jessie main" > /etc/apt/sources.list.d/openvpn-aptrepo.list $ echo "deb http://build.openvpn.net/debian/openvpn/release/2.3 wheezy main" > /etc/apt/sources.list.d/openvpn-aptrepo.list Now you're set for installing OpenVPN. Note that packages built for older operating system releases might work just fine on newer release of the same operating system. Installing OpenVPN On Debian/Ubuntu use $ apt-get update && apt-get install openvpn