I have a proxy server which accepts connections on port 3459. When I am trying to connect to it from my local computer, I am able to connect. To test I ran this command in terminal:
curl --proxy http://proxy_url:3459 --proxy-user user:password -L icanhazip.com
When I tried to run the same in a GCP Compute Engine VM instance which lies in a non-default VPC (named testing-vpc
), I'm unable to connect to the proxy.
I have created a firewall rule to open port 3459 by following command:
gcloud compute firewall-rules create proxy-allow-egress-port3459 \
--network testing-vpc \
--action allow \
--direction egress \
--rules tcp:3459 \
--destination-ranges 0.0.0.0/0 \
--priority 10 \
--target-tags testing-proxy
and attached the tag testing-proxy
in my instance. Still, its not working. Please let me know what am I missing here.