# Accessing a custom vector map from Kibana's connection and not through browser

**URL:** <https://discuss.elastic.co/t/accessing-a-custom-vector-map-from-kibanas-connection-and-not-through-browser/106813>\
**Category:** Kibana\
**Created:** [November 8, 2017, 7:26am UTC](https://discuss.elastic.co/t/accessing-a-custom-vector-map-from-kibanas-connection-and-not-through-browser/106813 "2017-11-08T07:26:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikorym](https://avatars.discourse-cdn.com/v4/letter/m/8baadc/32.png) [@mikorym](https://discuss.elastic.co/u/mikorym)\
**Post date:** [November 8, 2017, 7:26am UTC](https://discuss.elastic.co/t/accessing-a-custom-vector-map-from-kibanas-connection-and-not-through-browser/106813/1 "2017-11-08T07:26:35Z")

</div>

Hi Kibana users

I have the following setup:

I can access Kibana within my LAN at **a.b.c.d:5601** from my IP at **x.y.z.q**. I have a custom geojson vector map hosted as CORS enabled at the same server **a.b.c.d** using superstatic.

Now, my problem is that I cannot access this vector file within Kibana (from the console it says refused to connect). However, if instead I access Kibana from the machine hosting ES ( **a.b.c.d** ), then I can access my geojson vector file as expected as a region map in Kibana.

Is it possible to force Kibana to load the geojson file through its own IP **a.b.c.d**? If I understand correctly, the problem is that **a.b.c.d** is not accessible from **x.y.z.q** due to the LAN configuration. (I can't for example load **a.b.c.d/test.geojson** from **x.y.z.q** , but I can access it from the host server). And then the problem is that my browser tries to load the vector map from my connection rather than Kibana in the host machine loading it through _that_ connection.

Alternatively, what should also work is if it is possible for Kibana to load the file from a directory within the server, but I have not seen this possibility in the documentation.

---

<div class="post-metadata">

**Author:** ![mikorym](https://avatars.discourse-cdn.com/v4/letter/m/8baadc/32.png) [@mikorym](https://discuss.elastic.co/u/mikorym)\
**Post date:** [November 8, 2017, 8:53am UTC](https://discuss.elastic.co/t/accessing-a-custom-vector-map-from-kibanas-connection-and-not-through-browser/106813/2 "2017-11-08T08:53:21Z")

</div>

Alright, so this does not answer the original question, but it does solve the problem if one has sudo access on the server at **a.b.c.d** , and the server is running Ubuntu 16.04.3 LTS.

Run this in the terminal:

sudo iptables -S

There should be some output relating to the ports for Kibana and ES (5601 and 9200). Copy this and change to the port at which superstatic is hosting the files (default is 3474) and prepend the string with "sudo iptables" so that the commands would be in my case:

sudo iptables -A ufw-user-input -p tcp -m tcp --dport 3474 -j ACCEPT  
sudo iptables -A ufw-user-input -p udp -m udp --dport 3474 -j ACCEPT

This allows connection to the .geojson files.

---

<div class="post-metadata">

**Author:** ![mikorym](https://avatars.discourse-cdn.com/v4/letter/m/8baadc/32.png) [@mikorym](https://discuss.elastic.co/u/mikorym)\
**Post date:** [November 8, 2017, 8:54am UTC](https://discuss.elastic.co/t/accessing-a-custom-vector-map-from-kibanas-connection-and-not-through-browser/106813/3 "2017-11-08T08:54:55Z")

</div>

The original question then remains: is it possible to configure Kibana so that it accessed files through _its_ _own_ internet connection?

---

<div class="post-metadata">

**Author:** ![cjcenizal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cjcenizal/32/11216_2.png) [@cjcenizal](https://discuss.elastic.co/u/cjcenizal)\
**Post date:** [November 9, 2017, 5:53pm UTC](https://discuss.elastic.co/t/accessing-a-custom-vector-map-from-kibanas-connection-and-not-through-browser/106813/4 "2017-11-09T17:53:16Z")

</div>

Hey there, thank you for sharing your solution! I just checked with an engineer on our visualizations team and I have an answer for you. Unfortunately, you can't configure Kibana to do any proxying for you. It seems like you're already following the recommended solution, which is to [set up your own proxy/tile server](https://www.elastic.co/guide/en/kibana/current/settings.html#tilemap-settings). Does this help?

Thanks,  
CJ

---

<div class="post-metadata">

**Author:** ![mikorym](https://avatars.discourse-cdn.com/v4/letter/m/8baadc/32.png) [@mikorym](https://discuss.elastic.co/u/mikorym)\
**Post date:** [November 10, 2017, 7:51am UTC](https://discuss.elastic.co/t/accessing-a-custom-vector-map-from-kibanas-connection-and-not-through-browser/106813/5 "2017-11-10T07:51:58Z")

</div>

Hi CJ

I think that yes, I should be able to achieve what I need to by following that strategy. Thanks for the reply.

Cheers

---

<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:** [December 8, 2017, 7:52am UTC](https://discuss.elastic.co/t/accessing-a-custom-vector-map-from-kibanas-connection-and-not-through-browser/106813/6 "2017-12-08T07:52:02Z")

</div>

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