Created
August 19, 2014 03:30
-
-
Save murilopontes/588b62f6b3a28ecd2938 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
apt-get -y install easy-rsa | |
make-cadir /teste4 | |
cd /teste4 | |
source vars | |
./clean-all | |
./build-dh | |
./pkitool --initca | |
./pkitool --server server1 | |
./pkitool client1 | |
openvpn --comp-lzo --verb 3 --dev tap --server 172.27.0.0 255.255.0.0 --server-ipv6 2001:db8:123::/64 --dh keys/dh2048.pem --ifconfig-pool-persist ipp.txt --keepalive 10 120 --ca keys/ca.crt --cert keys/server1.crt --key keys/server1.key | |
openvpn --comp-lzo --verb 3 --dev tap --client --remote x.x.x.x 1194 --resolv-retry infinite --ca ca.crt --cert client1.crt --key client1.key |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment