Use docker image from https://hub.docker.com/r/hwdsl2/ipsec-vpn-server. Easily deploy and run 'IPSEC over L2TP VPN Server' on your projects by Google Cloud Build.
Enable following service on your project. You can access to link that easily do it.
- Cloud Build API
- Cloud Storage API
- Compute Engine API
- Service Networking API
https://cloud.google.com/build/docs/securing-builds/configure-access-for-cloud-build-service-account
🌐https://cloud.google.com/sdk/gcloud
[email protected]:yaztak1227/deploy_vpn.git
OR
https://github.com/yaztak1227/deploy_vpn.git
Open vpn.env file. Please replace <任意>
to your vpn settings and saving file.
VPN_IPSEC_PSK=<任意>
VPN_USER=<任意>
VPN_PASSWORD=<任意>
Put the command following text on terminal.
gcloud builds submit --config vpndeploy.yaml
Put the command following text on terminal.
gcloud compute firewall-rules create vpn --direction=INGRESS --priority=1000 --network=default --action=ALLOW --rules=udp:500,udp:4500 --source-ranges=0.0.0.0/0 --target-tags=vpn
Access to external ip. It has showed by terminal below the 'EXTERNAL_IP', If success of deployment.