VPN Flashcards
1
Q
What is a VPN?
A
It allows secure communication between Google network and your external network
2
Q
What are the three components that you set up when setting up a VPN?
A
- Gateway
- Tunnels
- Routing
3
Q
What do you set up in the Gateway section of VPN?
A
The GCP side of the VPN
- Network
- Region containing the network
- static IP
4
Q
What do you set up in the tunnels section of the VPN?
A
The other (non GCP) endpoint of the VPN Specify shared secret
5
Q
What routing options do you have when setting up a VPN?
A
- Dynamic - uses BGP to learn routes in your network
- Route Based - requires IP range of remote network
- Policy Based - require remote IP ranges, local sub-networks and local IP ranges
6
Q
How do you create a VPN via the shell?
A
gcloud compute target-vpn-gateways create
gcloud compute forwarding-rules create
gcloud compute vpn-tunnels create