📜 ⬆️ ⬇️

OpenVPN server on CentOS

Installing the OpenVPN server on CentOS and working with it seemed too difficult for me, so I tried to automate these processes as much as possible. The server is configured automatically and starts working immediately after installation.

When creating a user, a configuration file is generated, or a Windows client for it.


Team to manage users:
openvpnuser -h

All server settings are in / etc / openvpn / .
Main configuration file: /etc/openvpn/server.conf .
Client configuration files or the Windows clients themselves are located in / etc / openvpn / clients / .

Installation
')
1. Download the packages for installing OpenVPN:
wget --no-check-certificate \
sites.google.com/site/smkuzmin/home/openvpn/openvpn_public_version.tgz \
-O openvpn_public_version.tgz

2. Unpack them into / progs / packets / :
mkdir / progs / packets
tar xf openvpn_public_version.tgz - C / progs / packets /

3. In /progs/packets/openvpn/config/openvpnuser.pwl write your password list
- it will be used when creating new users.

4. In / progs / packets / openvpn / config / openvpnuser.cfg select:
CERT_PASSWORD - password for the user certificate created during installation.
WINDOWS_CLIENTS_TYPE = 'ZIP | EXE' is the type of Windows clients generated
WINDOWS_CLIENTS_TO_DIR = 'YES | NO' - whether to save Windows clients to a directory
WINDOWS_CLIENTS_TO_FAS = 'YES | NO' - whether to save Windows clients to FAS
If you do not select any save method, then only
client configuration files.

5. Go to the / progs / packets / openvpn / directory :
cd / progs / packets / openvpn /

6. Install the OpenVPN server from a local source :
bash -c ". ./install"
or from the Internet:
bash -c ". ./install -net"


Source: https://habr.com/ru/post/146450/


All Articles