This Ansible playbook automates the setup of a VPN (Virtual Private Network) server. You can use it to quickly deploy a VPN server for secure and private network connections.
Before using this playbook, ensure that you have the following prerequisites in place:
- Ansible installed on your local machine.
-
Clone this repository to your local machine:
git clone https://github.com/javascriptizer1/ansible-vpn.git
-
Navigate to the playbook directory:
cd ansible-vpn
-
Edit the inventory.ini file to define your target hosts.
-
Customize the defaults/main.yaml file to configure your VPN settings.
-
Run the playbook using the following command:
ansible-playbook -i inventories/inventory.ini -l vpn playbook.yaml --diff -v -vvvv
Follow the prompts and provide any additional information required during the playbook execution.
Once the playbook completes, your VPN server should be up and running.
You can customize your VPN setup by editing the defaults/main.yaml file. Here are some of the parameters you can configure:
- VPN server type (OpenVPN, WireGuard, etc.)
- VPN server port
- DNS server settings
- VPN client settings
- Additional server hardening options
None