# Elasticsearch behind NAT

**URL:** <https://discuss.elastic.co/t/elasticsearch-behind-nat/294773>\
**Category:** Elasticsearch\
**Created:** [January 19, 2022, 7:23am UTC](https://discuss.elastic.co/t/elasticsearch-behind-nat/294773 "2022-01-19T07:23:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rudyawall](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rudyawall/32/100466_2.png) [@rudyawall](https://discuss.elastic.co/u/rudyawall)\
**Post date:** [January 19, 2022, 7:23am UTC](https://discuss.elastic.co/t/elasticsearch-behind-nat/294773/1 "2022-01-19T07:23:16Z")

</div>

Hi Everybody,

I already installed the elasticserach but behind the NAT, i'm using google cloud  
I wanna configuration elasticserach can access from external network, using 0.0.0.0 but always failed to connect

when Iam using VM not behind NAT, all worked good with the same config in google cloud  
so how to for elaticserach will access external network in behind nat  
my Elasticsearch using private network, but NAT with ip public in google cloud.  
Please help  
Thank you.

---

<div class="post-metadata">

**Author:** ![FALEN](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/falen/32/82754_2.png) [@FALEN](https://discuss.elastic.co/u/FALEN)\
**Post date:** [January 19, 2022, 11:37am UTC](https://discuss.elastic.co/t/elasticsearch-behind-nat/294773/2 "2022-01-19T11:37:44Z")

</div>

Hi @rudyawall

Its not a good idea to do that, there are robots that scanning for externally accessible applications.

at least Configure a VPN to connect your VPC, or whitelist your home/work ip address to access your cloud apps

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 16, 2022, 11:37am UTC](https://discuss.elastic.co/t/elasticsearch-behind-nat/294773/3 "2022-02-16T11:37:56Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
