Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nicojanssens/ansible-ipsec-raspbian
Ansible playbook implementing @ritazh's post on how to setup your own L2TP/IPsec VPN server on a RPi
https://github.com/nicojanssens/ansible-ipsec-raspbian
ansible ipsec raspberry-pi raspbian vpn
Last synced: 1 day ago
JSON representation
Ansible playbook implementing @ritazh's post on how to setup your own L2TP/IPsec VPN server on a RPi
- Host: GitHub
- URL: https://github.com/nicojanssens/ansible-ipsec-raspbian
- Owner: nicojanssens
- License: mit
- Created: 2017-09-25T22:07:06.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-01T20:10:53.000Z (about 7 years ago)
- Last Synced: 2024-10-24T13:55:44.384Z (21 days ago)
- Topics: ansible, ipsec, raspberry-pi, raspbian, vpn
- Homepage:
- Size: 11.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ansible scripts to setup a L2TP/IPsec VPN server on a RPi
This ansible playbook implements @ritazh's [blog post](https://ritazh.com/setup-your-own-l2tp-vpn-server-with-raspberry-pi-170d3d4df04c) on how to setup your own L2TP/IPsec VPN server on a Raspberry Pi device. Check out Rita Zhang's blog post to find the answer to why, what and how questions.
## Howto
1. Make sure your Raspberry Pi's ip address is static.
1. Forward UDP port 500 and UDP port 4500 from your Router/Gateway to your Raspberry Pi.
1. Copy `config.yml.example` to `config.yml` and change the settings according to you own setup.
1. Run setup playbook
```
ansible-playbook -i 'RPI_ADDRESS,' -u RPI_USER_ID -k setup.yml
```## Compatibility
These scripts have been tested on a Raspberry Pi 3 running Raspbian Stretch 9, while executing the playbook using Ansible 2.2.1.0 on OS X 10.12.6.