# Rancher behind proxy cannot create cluster

**URL:** https://forums.suse.com/t/rancher-behind-proxy-cannot-create-cluster/14607
**Category:** SUSE Rancher Prime
**Created:** [June 21, 2019, 10:29am UTC](https://forums.suse.com/t/rancher-behind-proxy-cannot-create-cluster/14607 "2019-06-21T10:29:26Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![donaldh](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/donaldh/32/5336_2.png) [@donaldh](https://forums.suse.com/u/donaldh)
#### Post date: [June 21, 2019, 10:29am UTC](https://forums.suse.com/t/rancher-behind-proxy-cannot-create-cluster/14607/1 "2019-06-21T10:29:26Z")

</div>

I am trying to set up a cluster using the rancher/rancher:2.2.4 container on a host behind a proxy. I have run rancher using the following command:

> docker run -d --name rancher --restart=unless-stopped -p 443:443 -e HTTP\_PROXY=‘redacted’ -e HTTPS\_PROXY=‘redacted’ -e NO\_PROXY=‘localhost,127.0.0.1,0.0.0.0,redacted.0/24,[redacted.com](http://redacted.com)’ rancher/rancher:v2.2.4

When I try to create a cluster, I get this error for all nodes:

> Error creating machine: Error in driver during machine creation: Get [https://releases.rancher.com/os/latest/rancheros-vmware.iso:](https://releases.rancher.com/os/latest/rancheros-vmware.iso:) dial tcp 104.24.16.51:443: connect: connection timed out; Timeout waiting for ssh key

When I check the container, it seems to be trying to connect externally without using the proxy:

> # netstat -tnp | grep SYN
> 
> tcp 0 1 172.17.0.3:55612 104.24.16.51:443 SYN\_SENT 255/docker-machine  
> tcp 0 1 172.17.0.3:43446 104.24.17.51:443 SYN\_SENT 233/docker-machine  
> tcp 0 1 172.17.0.3:43444 104.24.17.51:443 SYN\_SENT 217/docker-machine  
> tcp 0 1 172.17.0.3:55610 104.24.16.51:443 SYN\_SENT 236/docker-machine

Have I missed a configuration step, or do I need to investigate a bug?

Many thanks,  
Donald Hunter

---

<div class="post-metadata">

### Author: ![cjellick](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/cjellick/32/2876_2.png) [@cjellick](https://forums.suse.com/u/cjellick)
#### Post date: [June 21, 2019, 3:54pm UTC](https://forums.suse.com/t/rancher-behind-proxy-cannot-create-cluster/14607/2 "2019-06-21T15:54:55Z")

</div>

I believe you are hitting this issue

> <https://github.com/rancher/rancher/issues/20709>

Will be fixed in v2.2.5

---

<div class="post-metadata">

### Author: ![donaldh](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/donaldh/32/5336_2.png) [@donaldh](https://forums.suse.com/u/donaldh)
#### Post date: [June 22, 2019, 3:44pm UTC](https://forums.suse.com/t/rancher-behind-proxy-cannot-create-cluster/14607/3 "2019-06-22T15:44:11Z")

</div>

Thanks for your help. I can confirm that 2.2.5-rc6 resolves this issue.
