networking - Enable outgoing traffic on google compute engine machine without assigning an external ip -
i have 2 machines on google compute engine,
machine 1 x.x.x.x machine 2 y.y.y.y
machine 1 has external ip address , machine 2 no.
i need mahcine 2 consume services on net on port 80 , 443 using 3rd party library.
in gce default instances without external ip addresses not send packets outside network
routing packets net currently, packets sent net must sent instance has external ip address. if create route sends packets net particular instance, instance must have external ip. if create route sends packets net gateway, source instance doesn't have external ip address, packet dropped.
in machine 1 setup squid proxy http , https connections 3rd party library not allow setup proxy , not take care http_proxy , https_proxy variables.
is there way create default gateway on machine 1 , setup in machine 2 ? other solution?
you can utilize add together route going nat packages machine 1. visit https://developers.google.com/compute/docs/networking#addingroute more info. need configure ip tables, traffic gets routed machine 1. can visit topic @ google groups (https://groups.google.com/forum/#!topic/gce-discussion/ehyhch6ykym) process explained in more detail.
networking google-compute-engine gateway
No comments:
Post a Comment