# Need Help configuring squid reverse proxy with Kibana3 and elasticsearch

**URL:** <https://discuss.elastic.co/t/need-help-configuring-squid-reverse-proxy-with-kibana3-and-elasticsearch/12712>\
**Category:** Elasticsearch\
**Created:** [July 9, 2013, 8:01am UTC](https://discuss.elastic.co/t/need-help-configuring-squid-reverse-proxy-with-kibana3-and-elasticsearch/12712 "2013-07-09T08:01:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_3](https://avatars.discourse-cdn.com/v4/letter/j/898d66/32.png) [@John\_3](https://discuss.elastic.co/u/John_3)\
**Post date:** [July 9, 2013, 8:01am UTC](https://discuss.elastic.co/t/need-help-configuring-squid-reverse-proxy-with-kibana3-and-elasticsearch/12712/1 "2013-07-09T08:01:18Z")

</div>

We were able to setup a squid proxy to our Kibana 3 webserver, however we  
want to setup a reverse proxy so that users won't have to manual input the  
proxy information inside their web browser. The forward proxy worked fine,  
however with the reverse proxy, when the page loads, it won't bring up any  
data from the elasticsearch cluster. One of our analysts has determined the  
json code is not being cached. The JVM is redirecting to the elasticsearch  
servers.

squid.conf:

acl mynetwork src xxx.xxx.xxx.0/24  
http\_access allow mynetwork  
http\_port 80 accel defaultsite=  
cache\_peer parent 80 0 no-query originserver

#defaults  
acl manager proto cache\_object  
acl localhost src 127.0.0.1/32 ::1  
acl to\_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1  
acl localnet src 10.0.0.0/8  
acl localnet src 172.16.0.0/12  
acl localnet src 192.168.0.0/16  
acl localnet src fc00::/7  
acl localnet src fe80::/10  
acl SSL\_ports port 443  
acl Safe\_ports port 80  
acl Safe\_ports port 21  
acl Safe\_ports port 443  
acl Safe\_ports port 8080  
acl Safe\_ports port 70  
acl Safe\_ports port 210  
acl Safe\_ports port 1025-65535  
acl Safe\_ports port 280  
acl Safe\_ports port 488  
acl Safe\_ports port 591  
acl Safe\_ports port 777  
acl CONNECT method CONNECT  
http\_access allow manager localhost  
http\_access deny manager  
http\_access deny !Safe\_ports  
http\_access deny CONNECT !SSL\_ports  
http\_access allow localnet  
http\_access allow localhost  
http\_access deny all  
#http\_port 8080  
hierarchy\_stoplist cgi-bin ?  
coredump\_dir /var/spool/squid  
refresh\_pattern ^ftp: 1440 20% 10080  
refresh\_pattern ^gopher: 1440 0% 1440  
refresh\_pattern -i (/cgi-bin/|?) 0 0% 0  
refresh\_pattern . 0 20% 4320

If anyone can help, it will be greatly appreciated.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:** [July 6, 2017, 2:27am UTC](https://discuss.elastic.co/t/need-help-configuring-squid-reverse-proxy-with-kibana3-and-elasticsearch/12712/2 "2017-07-06T02:27:31Z")

</div>

Closed on July 6, 2017, 2:27am UTC


