# Add host to es.reindex.remote.whitelist via ES\_OPTS not working

**URL:** <https://discuss.elastic.co/t/add-host-to-es-reindex-remote-whitelist-via-es-opts-not-working/205243>\
**Category:** Elasticsearch\
**Created:** [October 25, 2019, 11:27am UTC](https://discuss.elastic.co/t/add-host-to-es-reindex-remote-whitelist-via-es-opts-not-working/205243 "2019-10-25T11:27:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jillesvangurp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jillesvangurp/32/3863_2.png) [@jillesvangurp](https://discuss.elastic.co/u/jillesvangurp)\
**Post date:** [October 25, 2019, 11:27am UTC](https://discuss.elastic.co/t/add-host-to-es-reindex-remote-whitelist-via-es-opts-not-working/205243/1 "2019-10-25T11:27:54Z")

</div>

I'm trying to index from elastic cloud locally in a docker container (7.4.0) but having a hard time whitelisting the remote host.

I've added this to the ES\_OPTS and can see this option being logged when ES starts:

`-Des.reindex.remote.whitelist=[XXXXX.XXXXX.aws.cloud.es.io:9243]`

However, when I try to reindex from that host, I get an error about the host not being whitelisted. So it is ignoring the setting.

What do I need to do to make this work? I've tried variations of this without the brackets, with quotes, etc.

---

<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:** [November 22, 2019, 11:27am UTC](https://discuss.elastic.co/t/add-host-to-es-reindex-remote-whitelist-via-es-opts-not-working/205243/2 "2019-11-22T11:27:59Z")

</div>

Closed on November 22, 2019, 11:27am UTC

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