# Accessing Rancher on multiple interfaces

**URL:** <https://forums.suse.com/t/accessing-rancher-on-multiple-interfaces/19768>\
**Category:** SUSE Rancher Prime\
**Created:** [March 12, 2021, 3:08am UTC](https://forums.suse.com/t/accessing-rancher-on-multiple-interfaces/19768 "2021-03-12T03:08:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nikhil\_no\_1](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/nikhil_no_1/32/6900_2.png) [@nikhil\_no\_1](https://forums.suse.com/u/nikhil_no_1)\
**Post date:** [March 12, 2021, 3:08am UTC](https://forums.suse.com/t/accessing-rancher-on-multiple-interfaces/19768/1 "2021-03-12T03:08:02Z")

</div>

We have a unique network topology where Rancher is running on a server with dual interfaces. For simplicity lets call them IP1 and IP2. Now IP1 network is only accessible from our lab network, whereas IP2 is accessible from outside. I am running Rancher on IP1, since all the devices in our lab need to find and reach the rancher server. This means that Rancher UI is also accessible over IP1.  
This is a problem, since users have to go through some hoops to access the Rancher UI.

I want them to be able to access the UI through IP2 as well, since they can reach this IP directly from their laptops without going through any intermediate steps.

What are my options to get this to work? Security is not so much of a concern. I am also exploring some kind of proxy server approach if that helps here. Any ideas/suggestions are welcome. Thanks.

---

<div class="post-metadata">

**Author:** ![vincent](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/vincent/32/7156_2.png) [@vincent](https://forums.suse.com/u/vincent)\
**Post date:** [March 13, 2021, 5:25pm UTC](https://forums.suse.com/t/accessing-rancher-on-multiple-interfaces/19768/2 "2021-03-13T17:25:56Z")

</div>

You haven’t described how you installed Rancher or what it’s running on, but default for host ports in k8s (which is usually how the ingress controller is exposed) and port mapping in docker is to bind to 0.0.0.0, which makes it available from all interfaces.

---

<div class="post-metadata">

**Author:** ![nikhil\_no\_1](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/nikhil_no_1/32/6900_2.png) [@nikhil\_no\_1](https://forums.suse.com/u/nikhil_no_1)\
**Post date:** [March 15, 2021, 2:01am UTC](https://forums.suse.com/t/accessing-rancher-on-multiple-interfaces/19768/3 "2021-03-15T02:01:50Z")

</div>

Apologies.  
It is running on a 2 node K3S cluster. When I access rancher through IP2 FQDN ([rancher.mydomain2.com](http://rancher.mydomain2.com)), I get a 404 page not found error.  
It works only when I use IP1 FQDN ([rancher.mydomain1.com](http://rancher.mydomain1.com)).  
During installation it asks what FQDN to use and I have selected FQDN1.  
Is there any way to fix the 404 error?

---

<div class="post-metadata">

**Author:** ![nikhil\_no\_1](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/nikhil_no_1/32/6900_2.png) [@nikhil\_no\_1](https://forums.suse.com/u/nikhil_no_1)\
**Post date:** [March 17, 2021, 3:35am UTC](https://forums.suse.com/t/accessing-rancher-on-multiple-interfaces/19768/4 "2021-03-17T03:35:24Z")

</div>

Hi @vincent, any comment you have? I have provided more details.

---

<div class="post-metadata">

**Author:** ![vincent](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/vincent/32/7156_2.png) [@vincent](https://forums.suse.com/u/vincent)\
**Post date:** [March 18, 2021, 3:54am UTC](https://forums.suse.com/t/accessing-rancher-on-multiple-interfaces/19768/5 "2021-03-18T03:54:43Z")

</div>

Ok, that’s multiple names; them resolving to different IPs or listening on different interfaces is not really relevant. The ingress rule is for a particular hostname, and there is none that matches your other name, so you’d need to add another one for that name.

---

<div class="post-metadata">

**Author:** ![nikhil\_no\_1](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/nikhil_no_1/32/6900_2.png) [@nikhil\_no\_1](https://forums.suse.com/u/nikhil_no_1)\
**Post date:** [March 19, 2021, 11:46am UTC](https://forums.suse.com/t/accessing-rancher-on-multiple-interfaces/19768/6 "2021-03-19T11:46:03Z")

</div>

Thanks @vincent . This worked and solved our pain point.
