## IPsec VPN Server Auto Setup Script for CentOS/RHEL - - - ### This project has moved to a GitHub repository: ### [https://github.com/hwdsl2/setup-ipsec-vpn](https://github.com/hwdsl2/setup-ipsec-vpn) - - - Script for automatic setup of an IPsec VPN server, with both IPsec/L2TP and Cisco IPsec on CentOS/RHEL. Works on any dedicated server or virtual private server (VPS) except OpenVZ. It can also be used as Amazon EC2 "user data" with the official [CentOS AMIs](https://www.centos.org/download/aws-images/). [**» Related tutorial: IPsec VPN Server Auto Setup with Libreswan**](https://blog.ls20.com/ipsec-l2tp-vpn-auto-setup-for-ubuntu-12-04-on-amazon-ec2/) [Alternative VPN script for Ubuntu/Debian](https://gist.github.com/hwdsl2/9030462) ↓  ↓  ↓ Scroll down for the script ↓  ↓  ↓ ### License Copyright (C) 2015-2025 [Lin Song](https://github.com/hwdsl2) [![View my profile on LinkedIn](https://static.licdn.com/scds/common/u/img/webpromo/btn_viewmy_160x25.png)](https://www.linkedin.com/in/linsongui) Based on [the work of Thomas Sarlandie](https://github.com/sarfata/voodooprivacy) (Copyright 2012) [![Creative Commons License](https://i.creativecommons.org/l/by-sa/3.0/88x31.png)](http://creativecommons.org/licenses/by-sa/3.0/) This work is licensed under the [Creative Commons Attribution-ShareAlike 3.0 Unported License](http://creativecommons.org/licenses/by-sa/3.0/) Attribution required: please include my name in any derivative and let me know how you have improved it!