In other words I am needing to connect directly to my container, but outside the Host network as if it were a vps, I only have a single public ip, I was thinking of some reverse proxy like nginx and connect to the container through sub-domain. But the settings got me a headache
Are you using LXD or LXC?
What service inside your container do you want to connect to?
1 Like
I’m using LXC… And I want to connect to various services… ssh, Python proxy, dropbear, Openvpn… Etc etc
You can use iptables DNAT rules for forwarding ports from the host into the container’s internal IP.
1 Like