<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Ufw on the art of simplicity</title><link>https://naoko.github.io/tags/ufw/</link><description>Recent content in Ufw on the art of simplicity</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Wed, 22 Aug 2018 00:00:00 +0000</lastBuildDate><atom:link href="https://naoko.github.io/tags/ufw/index.xml" rel="self" type="application/rss+xml"/><item><title>Elasticsearch Access</title><link>https://naoko.github.io/posts/2018-08-22-es-access-from-outside/</link><pubDate>Wed, 22 Aug 2018 00:00:00 +0000</pubDate><guid>https://naoko.github.io/posts/2018-08-22-es-access-from-outside/</guid><description>&lt;h3 id="the-problem"&gt;The problem:&lt;/h3&gt;
&lt;p&gt;You installed Elasticsearch on server. You can run
&lt;code&gt;curl localhost:9200&lt;/code&gt; and all looks good but the access is denied from outside
when &lt;code&gt;curl &amp;lt;server-ip&amp;gt;:9200&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id="how-to-solve-it"&gt;How to solve it&lt;/h3&gt;
&lt;p&gt;So first thing first. Elasticsearch do need to listen to ip you are accessing.
To make it listen to all, you can simply change / add
&lt;code&gt;network.host: 0.0.0.0&lt;/code&gt; to
&lt;code&gt;/etc/elasticsearch/elasticsearch.yml&lt;/code&gt;
and restart elasticsearch server.
Try &lt;code&gt;curl &amp;lt;server-ip&amp;gt;:9200&lt;/code&gt; and works? That&amp;rsquo;s great. Your server is configured / ready for port 9200.&lt;/p&gt;</description></item></channel></rss>