Closed cainlevy closed 9 years ago
The PREROUTING rules are required for remote access to your server with transparent redirections to the 20559 (http) and 20558 (https) ports. I'm using it combined with Prax for tablets and mobile access. You can remove them. You may also remove the local rules and always deal with the ports.
BTW: I don't have any routing problems using LXC (which Docker is built on) and Vagrant.
When using Prax to provide DNS for a local Docker container, my
iptables -t nat -L
looks like:With this setup, I'm able to access
myapp.dev
running inside the Docker container, but my app is unable to connect to port 80 or 443 in the outside world.Removing Prax's PREROUTING rules fixes the Docker container's networking while still allowing local access to
myapp.dev
. Are the PREROUTING rules necessary for anything crucial? If I've only sacrificedxip.io
support or something, that's fine with me.related: https://github.com/ysbaddaden/prax/issues/90 possibly related: https://github.com/docker/docker/issues/5577