{"id":389,"date":"2015-12-01T15:58:51","date_gmt":"2015-12-01T22:58:51","guid":{"rendered":"http:\/\/infinitedisorder.com\/?p=389"},"modified":"2015-12-01T16:43:29","modified_gmt":"2015-12-01T23:43:29","slug":"blocking-access-to-elasticsearch-and-adding-access-to-elasticsearch-plugins","status":"publish","type":"post","link":"https:\/\/infinitedisorder.com\/?p=389","title":{"rendered":"blocking access to elasticsearch and adding access to elasticsearch plugins"},"content":{"rendered":"<p><strong>Apache Site:<\/strong><\/p>\n<pre>\r\n<code>&lt;IfModule mod_ssl.c&gt;\r\n    &lt;VirtualHost _default_:8443&gt;\r\n        ErrorLog ${APACHE_LOG_DIR}\/error.log\r\n        CustomLog ${APACHE_LOG_DIR}\/access.log combined\r\n\r\n        SSLEngine on\r\n        SSLCertificateFile \/etc\/ssl\/ssls-com-wildcard-2015.crt\r\n        SSLCertificateKeyFile \/etc\/ssl\/ssls-com-wildcard-2015.key\r\n\r\n        ProxyRequests Off\r\n        &lt;Location \/&gt;\r\n        ProxyPass http:\/\/127.0.0.1:9200\/\r\n        ProxyPassReverse http:\/\/127.0.0.1:9200\/\r\n        AuthType Basic\r\n        AuthName \"KOPF Web Site: Login with hf-it-ops email address\"\r\n        AuthUserFile \"\/etc\/nginx\/htpasswd.users\"\r\n        Require valid-user\r\n        RewriteEngine on\r\n        RewriteRule ^\/.+\/(.*) http:\/\/127.0.0.1:9200\/$1 [P]\r\n        &lt;\/Location&gt;\r\n    &lt;\/VirtualHost&gt;\r\n&lt;\/IfModule&gt;<\/code>\r\n<\/pre>\n<p><strong>Setup iptables:<\/strong><br \/>\n<code>iptables -A INPUT -p tcp --dport 9200 -s 10.0.0.0\/8 -j ACCEPT<br \/>\niptables -A INPUT -p tcp --dport 9200 -s 127.0.0.1 -j ACCEPT<br \/>\niptables -A INPUT -p tcp --dport 9200 -j REJECT<\/code><\/p>\n<p><strong>Save iptables:<\/strong><br \/>\n<code>sudo apt-get install iptables-persistent<br \/>\nsudo iptables-save<br \/>\nsudo service iptables-persistent start<br \/>\nsudo update-rc.d iptables-persistent enable<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Apache Site: &lt;IfModule mod_ssl.c&gt; &lt;VirtualHost _default_:8443&gt; ErrorLog ${APACHE_LOG_DIR}\/error.log CustomLog ${APACHE_LOG_DIR}\/access.log combined SSLEngine on SSLCertificateFile \/etc\/ssl\/ssls-com-wildcard-2015.crt SSLCertificateKeyFile \/etc\/ssl\/ssls-com-wildcard-2015.key ProxyRequests Off &lt;Location \/&gt; ProxyPass http:\/\/127.0.0.1:9200\/ ProxyPassReverse http:\/\/127.0.0.1:9200\/ AuthType Basic AuthName &#8220;KOPF Web Site: Login with hf-it-ops email address&#8221; AuthUserFile &#8220;\/etc\/nginx\/htpasswd.users&#8221; Require valid-user RewriteEngine on RewriteRule ^\/.+\/(.*) http:\/\/127.0.0.1:9200\/$1 [P] &lt;\/Location&gt; &lt;\/VirtualHost&gt; &lt;\/IfModule&gt; Setup iptables: iptables -A INPUT -p [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-389","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/infinitedisorder.com\/index.php?rest_route=\/wp\/v2\/posts\/389","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/infinitedisorder.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/infinitedisorder.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/infinitedisorder.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/infinitedisorder.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=389"}],"version-history":[{"count":8,"href":"https:\/\/infinitedisorder.com\/index.php?rest_route=\/wp\/v2\/posts\/389\/revisions"}],"predecessor-version":[{"id":414,"href":"https:\/\/infinitedisorder.com\/index.php?rest_route=\/wp\/v2\/posts\/389\/revisions\/414"}],"wp:attachment":[{"href":"https:\/\/infinitedisorder.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=389"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/infinitedisorder.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=389"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/infinitedisorder.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=389"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}