Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rishavnandi/ansible_selfhost_vpn
Ansible Playbooks To Turn A VPS Into A Wireguard VPN Server
https://github.com/rishavnandi/ansible_selfhost_vpn
ansible devops hacktoberfest hacktoberfest-accepted hactoberfest2022 vps wireguard wireguard-vpn
Last synced: about 1 month ago
JSON representation
Ansible Playbooks To Turn A VPS Into A Wireguard VPN Server
- Host: GitHub
- URL: https://github.com/rishavnandi/ansible_selfhost_vpn
- Owner: rishavnandi
- License: wtfpl
- Created: 2022-10-17T10:54:18.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2022-12-31T15:26:05.000Z (almost 2 years ago)
- Last Synced: 2023-04-26T22:14:16.617Z (over 1 year ago)
- Topics: ansible, devops, hacktoberfest, hacktoberfest-accepted, hactoberfest2022, vps, wireguard, wireguard-vpn
- Homepage:
- Size: 16.6 KB
- Stars: 43
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Ansible playbooks to setup a self-hosted WireGuard VPN server
![Screenshot (1)](https://user-images.githubusercontent.com/101431112/209468911-88c70c8d-c686-4dac-b4c7-bc3b1fb67568.png)
## Usage
- Clone the repo
```bash
git clone https://github.com/rishavnandi/ansible_selfhost_vpn
```
- Then modify the variables in the group_vars/all/vars.yml based on your needs and add your server's IP and path of the ssh key(if you are using one) in the inventory file- Then simply run the playbook
```bash
ansible-playbook run.yml -K
```
- Then you can visit the nginx proxy manager at your server's IP and port 81 to configure a domain that points to nginx and WireGuard sites## References and Info
This repository contains Ansible playbooks to setup a self-hosted WireGuard VPN server. It is based on [wg-easy](https://github.com/WeeJeWel/wg-easy) which provides a nice web interface to add and remove clients.
It also sets up nginx proxy manager so you can access your services from the internet using a domain name.
You can obtain a free domain name from [DuckDNS](https://www.duckdns.org/). You can also use a domain name you already own.
Make sure the domain name is pointing to your server's public IP address.Then you can use nginx proxy manager to manage your domains and reverse proxy your services.