I know it is an old question but for anybody coming here, the solution, at least on Linux, is to…
Container communicates with host using docker0
interface. To allow traffic from container add:
-A INPUT -i docker0 -j ACCEPT
Container communicates with host using docker0
interface. To allow traffic from container add:
-A INPUT -i docker0 -j ACCEPT