https://rancher.com/ logo
Title
i

icy-insurance-45500

08/13/2022, 7:38 PM
Hello every1 🙂 Anyone tried configuring Lima VM to expose container access directly to host ? ( access containers from host by their private IP ) If anyone with some experience on the topic or some tips could help, I’d appreciate it a lot 🙂 ty 🖖 ( my original question in #rancher-desktop) https://rancher-users.slack.com/archives/C0200L1N1MM/p1660222613294579
b

best-city-49378

08/14/2022, 8:36 AM
Which OS and network ? Normally the "user" network (slirp) has very limited networking options, and "only" tunnels a SSH connection. On the other hand, it is possible to do a lot with this. You might want to look into something like https://norouter.io/ ?
i

icy-insurance-45500

08/15/2022, 11:51 AM
@best-city-49378 sorry for a late reply 🙂 environment is MacOS ( 12.3.1 ) running on Intel Mac… Network is untouched from original rancher desktop settings except docker daemon (
/etc/docker/daemon.json
)
being configured as follows
{
  "debug": true,
  "default-address-pools": [
    {
      "base": "10.100.0.0/16",
      "size": 24
    }
  ],
  "experimental": true
}
But my investigation led me to similar conclusions so far… ssh is the way to, just find a way to do proper forwarding 🙂
b

best-city-49378

08/15/2022, 12:08 PM
Sounds vanilla… You get some more options if you add a Apple vmnet network to it, instead of just the QEMU slirp.
Not sure what RD uses, but you can check
i

icy-insurance-45500

08/15/2022, 8:54 PM
From what I can see RD is pretty vanilla stuff 🙂 However i find
vde_vmnet
docs pretty scarce ( it might be just me 🤷‍♂️ ) and still trying to figure out my way around it 🙂 But yeah i guess it’ll come down to ssh forwarding or vde enablement… hacky stuff both ways 🙂 Found an interesting article as well about ssh passthrough 🙂
Thank you for the tips and taking a look 😉 🙂