# Downloading plugins behind a proxy

**URL:** <https://discuss.elastic.co/t/downloading-plugins-behind-a-proxy/25661>\
**Category:** Elasticsearch\
**Created:** [July 15, 2015, 5:58pm UTC](https://discuss.elastic.co/t/downloading-plugins-behind-a-proxy/25661 "2015-07-15T17:58:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bluethundr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bluethundr/32/409_2.png) [@bluethundr](https://discuss.elastic.co/u/bluethundr)\
**Post date:** [July 15, 2015, 5:58pm UTC](https://discuss.elastic.co/t/downloading-plugins-behind-a-proxy/25661/1 "2015-07-15T17:58:59Z")

</div>

Hey all,

I'm having some trouble downloading elasticsearch plugins from within a heavily firewalled environment.

This is what happens:

```
[root@aoaapld00135la ~]# /usr/share/elasticsearch/bin/plugin -i elasticsearch/marvel/latest --verbose
-> Installing elasticsearch/marvel/latest...
Trying http://download.elasticsearch.org/elasticsearch/marvel/marvel-latest.zip...
Failed: UnknownHostException[download.elasticsearch.org]
Trying http://search.maven.org/remotecontent?filepath=elasticsearch/marvel/latest/marvel-latest.zip...
Failed: UnknownHostException[search.maven.org]
Trying https://oss.sonatype.org/service/local/repositories/releases/content/elasticsearch/marvel/latest/marvel-latest.zip...
Failed: UnknownHostException[oss.sonatype.org]
Trying https://github.com/elasticsearch/marvel/archive/latest.zip...
Failed: UnknownHostException[github.com]
Trying https://github.com/elasticsearch/marvel/archive/master.zip...
Failed: UnknownHostException[github.com]
Failed to install elasticsearch/marvel/latest, reason: failed to download out of all possible locations..., use --verbose to get detailed information

```

I have an http proxy setup that allows me to pull down the file using wget:

```
[root@aoaapld00135la ~]# wget http://download.elasticsearch.org/elasticsearch/marvel/marvel-latest.zip
--2015-07-15 13:56:59-- http://download.elasticsearch.org/elasticsearch/marvel/marvel-latest.zip
Connecting to 173.213.208.231:80... connected.
Proxy request sent, awaiting response... 200 OK
Length: 2001380 (1.9M) [application/zip]
Saving to: “marvel-latest.zip”

100%[======================================================================================================================================================================================================================================>] 2,001,380 --.-K/s in 0.1s

2015-07-15 13:56:59 (13.3 MB/s) - “marvel-latest.zip” saved [2001380/2001380]

[root@aoaapld00135la ~]# echo $http_proxy
xx.xx.xx.xx.:80

```

Is there someplace I can set the proxy information that will me to use the plugin command directly?

Thanks

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [July 15, 2015, 6:22pm UTC](https://discuss.elastic.co/t/downloading-plugins-behind-a-proxy/25661/2 "2015-07-15T18:22:08Z")

</div>

See: [https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-plugins.html#\_proxy\_settings](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-plugins.html#_proxy_settings)

---

<div class="post-metadata">

**Author:** ![bluethundr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bluethundr/32/409_2.png) [@bluethundr](https://discuss.elastic.co/u/bluethundr)\
**Post date:** [July 15, 2015, 6:35pm UTC](https://discuss.elastic.co/t/downloading-plugins-behind-a-proxy/25661/3 "2015-07-15T18:35:16Z")

</div>

Cool! That worked. Thanks Magnusbaeck!

---

<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, 12:01am UTC](https://discuss.elastic.co/t/downloading-plugins-behind-a-proxy/25661/4 "2017-07-06T00:01:13Z")

</div>


