Skip to content

binxio/gcp-squid-proxy-multi-nic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Use Squid Proxy To Connect Two VPCs

There are tons of ways to connect VPCs in Google Cloud. This example uses a Squid Proxy VM to allow Source VPC Clients to access resources in the Destination VPC.

Connectivity overview

Read the associated blog post: How To Use Squid Proxy To Connect Two VPCs.

Deployment

Use Terraform to deploy the example setup.

  1. Set the required Terraform variables

    variables.tf

  2. Deploy the example infrastructure

    cd terraform
    terraform init
    terraform apply
  3. Try it for yourself

    Log in to the client VM:

    gcloud compute ssh client --tunnel-through-iap --project <project_id>

    Invoke a service in the destination VPC:

    curl -x http://proxy.xebia:3128 http://example-server.xebia/

    Invoke an internet url via the proxy:

    curl -x http://proxy.xebia:3128 https://www.google.com/

Clean up

Use Terraform to destroy the example setup.

  1. Set the required Terraform variables

    variables.tf

  2. Destroy the example infrastructure

    cd terraform
    terraform init
    terraform destroy

About

Use Squid Proxy To Connect Two VPCs

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published