aprt5pr.ocserv

Ansible Role: Ocserv

Build Status

This role sets up OpenConnect SSL VPN Server (ocserv).

What is Ocserv?

Ocserv is a free SSL VPN server. For more information, visit https://gitlab.com/ocserv/ocserv.

Requirements

  • You need Ansible version 2.0 or higher.

Usage

NOTE: This role is designed to work with default settings, so you don’t need to change anything to get started.

If you want to run Ansible on the same machine where you’re installing Ocserv, and you’re using a RHEL-like operating system, follow these steps:

  1. Install Ansible
$ sudo dnf install ansible # or use yum install ansible
  1. Install the role from Ansible Galaxy
$ sudo ansible-galaxy install aprt5pr.ocserv
  1. Update your Ansible inventory
$ echo "127.0.0.1" | sudo tee -a /etc/ansible/hosts
  1. Create a playbook
$ mkdir my-playbook
$ cd my-playbook
$ echo -e "---\n\n- hosts: all\n  roles:\n    - aprt5pr.ocserv" > site.yml
  1. Run the playbook!
$ ansible-playbook site.yml --become --ask-sudo-pass

If everything works well, Ocserv will be set up with a basic user named alice.

Important Notes

  • This role does not:
    • Set up source NAT. You need to do this manually (e.g., firewall-cmd --zone=public --add-masquerade).
    • Manage the firewall.
      • Clients may not be able to connect to the VPN. To allow connections, run:
        • firewall-cmd --zone=public --add-port=443/tcp
        • firewall-cmd --zone=public --add-port=443/udp
      • Once connected, clients can access services listening on all addresses.

How can I contribute to this project?

  • Fork this project.
  • Make your changes.
  • Open a Merge Request.
Informazioni sul progetto

OpenConnect SSL VPN Server (ocserv)

Installa
ansible-galaxy install aprt5pr.ocserv
Licenza
other
Download
116
Proprietario