###Prerequisite:###
- You have Google account
- You are familiar with Google cloud platform console.
- You know how to launch Google Computing VM with Debian 7. (Quick Start)
##Instructions:
###On Server:###
- After you launch an instance, download
vpn-installtion.sh
into that instance. - Update the TODO (
IPSEC_PSK
,VPN_USER
,VPN_PASSWORD
,PRIVATE_IP
,PUBLIC_IP
) - run
sudo sh vpn-installtion.sh
4. Setup the network.
![Allow traffic to TCP port 500, and UDP ports 500 and 4500.](https://greenido.files.wordpress.com/2014/08/screenshot-2014-08-10-08-50-20.png?w=696)
###On Client(Mac):###
- Create a new connection.
- Fill in the Server Address and Account Name.
- Click Authentication Settings. Fill in Machine Authentication Shared Secret with IPSEC_PSK
- Click advanced button and check Send all traffic on options tab.
- Click apply and connect.
- [Optional] Setup dns server. In DNS tab, you can copy values in
/etc/resolv.conf
of VPN Server and update the search domain of client.
Feel free to open issues.