I am a bit confused by how things work here.
I want to direct internet traffic to a container from my host and/or from an external server.
I thought host would be easier but still didn’t have success yet.
I notice I can ping the container from the host.
I thought to setup an ssh socks tunnel to the container but it seems to work for a minute then stop working for some reason- I can load pages in firefox and in tcpdump on the container it shows activity but then suddently it won’t work and keeps saying page cannot be loaded and I don’t know how to make it work again, even restarting the tunnel command doesn’t work, but a reboot seemed to earlier so I don’t know what causes that. I also wasn’t sure how to direct it to port 8080 yet as the IP of host as source for IPtables redirect didn’t seem to work- I’ll keep experimenting there.
Is there an easier way to direct internet traffic from the host (not all but just say a browser or specific progam - ie i don’t want to set the gateway to do it) to the container? Like maybe doing it via the bridge. I am not sure what is going on in terms of the network since its all shared resources and all.