Last active
July 6, 2020 15:15
Revisions
-
kylemanna revised this gist
Nov 4, 2016 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,7 @@ #!/bin/bash # # Blog post @ https://blog.kylemanna.com/sharing/gogo-inflight-wireless-with-openvpn/ # # Bail on errors set -e -
kylemanna revised this gist
Nov 4, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -31,7 +31,7 @@ cat <<EOF --------------------------------------- \ ^__^ \ (oo)\_______ (__)\ )\/\ ||----w | || || EOF -
kylemanna revised this gist
Nov 4, 2016 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -12,7 +12,7 @@ docker run -v $OVPN_DATA:/etc/openvpn --rm kylemanna/openvpn ovpn_genconfig -u u echo "[+] Generated server config for $SERVER_IP" echo "[*] Initialzing PKI (insecurely) for the truely lazy" docker run -v $OVPN_DATA:/etc/openvpn --rm -e "EASYRSA_BATCH=1" kylemanna/openvpn ovpn_initpki nopass echo "[+] Initialized PKI magic" echo "[*] OpenVPN server starting up" @@ -21,7 +21,7 @@ echo "[+] OpenVPN server up and running" CLIENT=client1 echo "[*] Generating client certificate for $CLIENT" docker run -v $OVPN_DATA:/etc/openvpn --rm kylemanna/openvpn easyrsa build-client-full $CLIENT nopass docker run -v $OVPN_DATA:/etc/openvpn --rm kylemanna/openvpn ovpn_getclient $CLIENT > $CLIENT.ovpn echo "[*] Client certificate ready at $CLIENT.ovpn" -
kylemanna revised this gist
Nov 4, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -16,7 +16,7 @@ docker run -v $OVPN_DATA:/etc/openvpn --rm -it -e "EASYRSA_BATCH=1" kylemanna/op echo "[+] Initialized PKI magic" echo "[*] OpenVPN server starting up" docker run -v $OVPN_DATA:/etc/openvpn -d -p 3128:1194/udp --cap-add=NET_ADMIN kylemanna/openvpn echo "[+] OpenVPN server up and running" CLIENT=client1 -
kylemanna revised this gist
Nov 4, 2016 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -3,13 +3,13 @@ # Bail on errors set -e SERVER_IP=$(host myip.opendns.com. resolver1.opendns.com | awk '/has address/ { print $4 }') OVPN_DATA="ovpn-data" echo "[*] Generating server config for $SERVER_IP" docker run -v $OVPN_DATA:/etc/openvpn --rm kylemanna/openvpn ovpn_genconfig -u udp://$SERVER_IP:3128 echo "[+] Generated server config for $SERVER_IP" echo "[*] Initialzing PKI (insecurely) for the truely lazy" docker run -v $OVPN_DATA:/etc/openvpn --rm -it -e "EASYRSA_BATCH=1" kylemanna/openvpn ovpn_initpki nopass -
kylemanna revised this gist
Nov 4, 2016 . No changes.There are no files selected for viewing
-
kylemanna created this gist
Nov 4, 2016 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,39 @@ #!/bin/bash # Bail on errors set -e SERVER_IP="" OVPN_DATA="ovpn-data" echo "[*] Generating server config" docker run -v $OVPN_DATA:/etc/openvpn --rm kylemanna/openvpn ovpn_genconfig -u udp://$SERVER_IP:3128 echo "[+] Generated server config" echo "[*] Initialzing PKI (insecurely) for the truely lazy" docker run -v $OVPN_DATA:/etc/openvpn --rm -it -e "EASYRSA_BATCH=1" kylemanna/openvpn ovpn_initpki nopass echo "[+] Initialized PKI magic" echo "[*] OpenVPN server starting up" docker run -v $OVPN_DATA:/etc/openvpn -d -p 1194:3128/udp --cap-add=NET_ADMIN kylemanna/openvpn echo "[+] OpenVPN server up and running" CLIENT=client1 echo "[*] Generating client certificate for $CLIENT" docker run -v $OVPN_DATA:/etc/openvpn --rm -it kylemanna/openvpn easyrsa build-client-full $CLIENT nopass docker run -v $OVPN_DATA:/etc/openvpn --rm kylemanna/openvpn ovpn_getclient $CLIENT > $CLIENT.ovpn echo "[*] Client certificate ready at $CLIENT.ovpn" cat <<EOF _______________________________________ < Server up and running, happy surfing > --------------------------------------- \ ^__^ \ (oo)\_______ (__)\ )\/\ ||----w | || || EOF echo "[?] Copy $CLIENT.ovpn to your client" echo "[x] Exiting"