https://rancher.com/ logo
#rancher-desktop
Title
# rancher-desktop
b

bored-farmer-36655

03/23/2023, 2:59 AM
Hi, I'm on openSUSE Tumbleweed (RD 1.7.0) and can't get the external ip to work with nginx-ingress, It's all running but when running curl I get
Failed to connect to 192.168.10.185 port 80 after 3073 ms: Couldn't connect to server
I am at this point: https://github.com/nginxinc/nginx-ingress-workshops/blob/main/Rancher/labs/lab3/readme.md#verify-access-to-the-ingres[…]roller-using-the-external-ip
f

fast-garage-66093

03/23/2023, 4:14 AM
Did you adjust the privileged port setting to allow user-level processes to bind to port 80?
Copy code
sudo sysctl -w net.ipv4.ip_unprivileged_port_start=80
Rancher Desktop runs as your regular user, not as
root
, so it can't bind the ingress ports without it
b

bored-farmer-36655

03/23/2023, 11:29 AM
@fast-garage-66093 Hi, yes I have that set, now I have multiple network interfaces (1 primary, 2 bridges and 2 unconfigured), could that be an issue?
w

white-xylophone-9961

03/23/2023, 12:37 PM
Doesn't Traefik use 80? I had to disable, but my situation was probably different.
b

bored-farmer-36655

03/23/2023, 1:27 PM
@white-xylophone-9961 Hi traefix is disabled and removed, then install metallb
And it all appears to be working if I port forward 80 to the localhost as a test... On the host if I run
ip neigh show dev eno1
it shows
192.168.10.185 FAILED
f

fast-garage-66093

03/23/2023, 6:59 PM
I'm confused now, isn't
192.168.10.185
the ip address of your host?
Unless I'm even more confused than usual, there isn't any external network attached to the VM on Linux. All you have is the slirp user-mode network, plus the port forwarding to the host. So any routable IP address would have to be the host IP address.
b

bored-farmer-36655

03/23/2023, 8:53 PM
@fast-garage-66093 on MacOS this is possible (as per the demo?), but not Linux, so just port forward to localhost?
f

fast-garage-66093

03/23/2023, 9:11 PM
Yes. On macOS we can create a bridged or shared network adapter via VMNET, but there is nothing implemented for it on Linux yet.
b

bored-farmer-36655

03/23/2023, 9:19 PM
@fast-garage-66093 OK, so port forward to localhost then is fine? What about passt (I see that's active)as an alternative?
f

fast-garage-66093

03/23/2023, 9:19 PM
Sorry, I don't follow
b

bored-farmer-36655

03/23/2023, 9:21 PM
@fast-garage-66093 following the nginx demo, just port forward. It seems passt is the replacement for slirp?
f

fast-garage-66093

03/23/2023, 9:23 PM
We (both Rancher Desktop and Lima) are looking at using gVisor network tunnelling as the possible replacement for slirp.
Rancher Desktop 1.8.0 has an experimental implementation of it (for Windows only)
b

bored-farmer-36655

03/23/2023, 9:27 PM
@fast-garage-66093 ahh ok, looks interesting 🙂 Thanks for your help today 🙂
f

fast-garage-66093

03/23/2023, 9:27 PM
You are welcome!
6 Views