项目作者: rhamdeew

项目描述 :
Ansible Playbook for starting OpenVPN server on CentOS 8
高级语言: Makefile
项目地址: git://github.com/rhamdeew/ansible-docker-compose-openvpn-secure-centos8.git
创建时间: 2021-03-22T07:26:43Z
项目社区:https://github.com/rhamdeew/ansible-docker-compose-openvpn-secure-centos8

开源协议:MIT License

下载


Ansible Playbook for starting OpenVPN server on CentOS 8

Screencast on YouTube

You can see this playbook in action (from 1:06 to 4:05).

Software will be installed:

  • python 3
  • pip3
  • curl
  • git
  • vim
  • firewalld
  • tmux
  • make
  • fail2ban
  • docker
  • docker-compose

Usage

1. Init config file

  1. make i

2. Add your public SSH-key to authorized_keys (optional)

  1. cat ~/.ssh/id_rsa.pub > files/authorized_keys

3. Add server address to ansible_hosts

  1. vim ~/.ansible_hosts

Example:

  1. [test]
  2. test_server1 ansible_user=root ansible_host=0.0.0.0

4. Edit main.yml

  1. vim main.yml

username - the username on the server

uid - id of this user

security_ssh_port - custom SSH-port

variable_host - hostname from ansible_hosts file (example - test_server1)

5. Run The Playbook

  1. make s

or without strict host checking

  1. make ns