在Docker容器上安装Pentaho如果防火墙启动,则无法连接主机mysql

Pentaho安装了以下configuration的docker容器

docker0: inet 172.17.0.1 netmask 255.255.0.0 

我能够连接MySQL(安装在主机上)与pentaho,如果防火墙closures主机rhel 7.3

当防火墙启动时,pentaho无法连接到主机mysql

有什么办法连接主机mysql,而防火墙启动?

 1.i tried adding iptables rules to open port 3306 2.tried changing bind addresss =0.0.0.0 in my.cnf 

请帮助我解决上述问题