Hello, I'm struggling with port forwarding for requests coming from localhost.
I run some linux container on my ubuntu host. Each one of them are running a
webapp. To be able to access these webapps, I use iptables to forward port:
sudo iptables -t nat -A PREROUTING -p tcp --dport <port> -j DNAT
--to-destination #<container_ip>:<port>
This work well if the traffic comes from outside of my machine. If the request
is done by localhost it doesn't work:
curl <host_ip>:<port> #works (from outside the host)
curl <container_ip>:<port> #works (from inside the host)
curl 127.0.0.1:<port> #doesn't work (from inside the host)
Any clue how to be able to make this last curl command working ?
Regards,
Robin
------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users