# Can't connect to web ui

**URL:** <https://forums.suse.com/t/cant-connect-to-web-ui/39440>\
**Category:** SUSE Rancher Prime\
**Created:** [November 11, 2022, 11:07pm UTC](https://forums.suse.com/t/cant-connect-to-web-ui/39440 "2022-11-11T23:07:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ncage](https://avatars.discourse-cdn.com/v4/letter/n/3d9bf3/32.png) [@ncage](https://forums.suse.com/u/ncage)\
**Post date:** [November 11, 2022, 11:07pm UTC](https://forums.suse.com/t/cant-connect-to-web-ui/39440/1 "2022-11-11T23:07:50Z")

</div>

Try to use rancher for the first time today. I setup a new vm for the purpose. Its running centos stream. I cannot connect to the rancher UI after starting the container (i’m getting an err\_connection\_refused remotely).

Installed docker: Version: 20.10.21  
Linux Kernel Version: 5.14.0-183.el9.x86\_64

Then downloaded/ran the latest version:

```auto
docker run -d --restart=unless-stopped \
  -p 80:80 -p 443:443 \
  --privileged \
  rancher/rancher:latest

```

docker container is running file:

```auto
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
902d1d55685a rancher/rancher:latest "entrypoint.sh" 9 seconds ago Up 5 seconds 0.0.0.0:80->80/tcp, :::80->80/tcp, 0.0.0.0:443->443/tcp, :::443->443/tcp nice_satoshi

```

When i run:

```auto
curl -vLk https://127.0.0.1

```

this is what i get:

```auto
 * Trying 127.0.0.1:443...
* Connected to 127.0.0.1 (127.0.0.1) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
* TLSv1.0 (OUT), TLS header, Certificate Status (22):
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (OUT), TLS alert, decode error (562):
* error:0A000126:SSL routines::unexpected eof while reading
* Closing

```

When i run:

```auto
curl -vLk https://127.0.0.1

```

i get :

```auto
* Trying 127.0.0.1:80...
* Connected to 127.0.0.1 (127.0.0.1) port 80 (#0)
> GET / HTTP/1.1
> Host: 127.0.0.1
> User-Agent: curl/7.76.1
> Accept: */*
>
* Recv failure: Connection reset by peer
* Closing connection 0
curl: (56) Recv failure: Connection reset by peer

```

I read something about CentOS & `net.ipv4.ip_forward` so i had a look & :

```auto
sysctl net.ipv4.ip_forward
net.ipv4.ip_forward = 1

```

so everything looks fine there. Any help would be appreciated.
