This script will install OpenVpn & IPsec on yours Linux/Unix server and configure them to work as a VPN server.
OpenVpn works with clients on OS Windows, Mac OS, Android. IPsec works with clients on Mac OS & IOS (IKev1)
1. Recommended system requirements:
- OS Unix / Linux ( Ubuntu 14/16 , Debian 7/8/9 )
- Internet access on server
- At least 1024 MB RAM
- At least 5 GB DIsk space
- Clean system (There are should be no other installed packets on server)
- Root access to server ( Login, Password, Port )
2. Installation Packets
- Common Packets :
- curl
- pwgen
- python-pip
- python-dev
- openssl
- build-essential
- autoconf
- libtool
- pkg-config
- ppp
- xl2tpd
- make
- grepcidr
- OpenVpn Packets :
- openvpn
- easy-rsa
- IPsec Packets :
- strongswan (Debian 7 / 8 / 9)
- libcharon-extra-plugins (Debian 7 / 8 / 9)
- strongswan-plugin-xauth-generic (Ubuntu 14 /16)
3. Additional system changes:
- Firewall rule for traffic routing (Iptables)
- systemctl.conf changes ( net.ipv4.ip_forward=1 )