I'm tryinng to call an api that is only reachable through my VPN, i setup a VPC connector but i think my nat is redirecting it to the internet intead of the vpn, Is there any way to route the egress traffic from cloud run to my cloud VPN?
VPN configuration: I have a classic VPN with IKEv2 route based to 192.168.1.100/32
Internal load balancer with 2 backends
- Instance Groups (subnet 10.1.2.0/24)
- Serverless network endpoint group to my cloud run service
VPC connector with subred range of 192.168.1.0/28
NAT Gateway with the ip address of 35.225.79.89
Routes: IP destination 10.5.1.1 next hoop: my-tunnel-vpn (this route allows me to ping or curl to the destination 10.5.1.1 from another instance with ip 10.1.2.3 successfully)
Firewall: source ip range 192.168.1.100/32, protocols tcp and icmp, target: all instances in the network
cloud run VPC connector with egress-traffic all, route all traffic through vpc yes Ingress controll all