Hi,
I am trying to get some of my jails to connect to my database jail at port 3306. Ping is not a problem, but connecting to the port is.
I did not face this problem when I first setup the jails. Initially, all of my web jails are using a set of private IP addresses - 192.168.10.x and 10.10.10.x. While for my database jail, it uses the 10.10.10.x IP. The host of my web jails is using a 78.x.x.x IP, and the host of my database jail is using a 85.x.x.x IP.
Until one day, all of my web jails failed to ping and telnet to the 3306 port of the db jail. I have no idea how or why it happened, but switching the host of db jail IP from 85.x.x.x to 78.x.x.x got everything back in place.
Today, I need to give an access to a jail that holds a 85.x.x.x and 10.x.x.x IPs to the db jail. Again, ping is fine, but connecting to the port failed. I have tried to disable the firewall on both sides, but to no avail. But, if I were to remove the 85.x.x.x IP off the jail, leaving only the 10.x.x.x IP alone, telnet works. The rest of the jails in the same host that hold only private IPs, have no problems connecting with the db jail.
Any idea what is wrong with my configuration?
Host of web jail (with IP 78.x.x.x):
Host of db jail (with 78.x.x.x IP):
Thanks!
I am trying to get some of my jails to connect to my database jail at port 3306. Ping is not a problem, but connecting to the port is.
I did not face this problem when I first setup the jails. Initially, all of my web jails are using a set of private IP addresses - 192.168.10.x and 10.10.10.x. While for my database jail, it uses the 10.10.10.x IP. The host of my web jails is using a 78.x.x.x IP, and the host of my database jail is using a 85.x.x.x IP.
Until one day, all of my web jails failed to ping and telnet to the 3306 port of the db jail. I have no idea how or why it happened, but switching the host of db jail IP from 85.x.x.x to 78.x.x.x got everything back in place.
Today, I need to give an access to a jail that holds a 85.x.x.x and 10.x.x.x IPs to the db jail. Again, ping is fine, but connecting to the port failed. I have tried to disable the firewall on both sides, but to no avail. But, if I were to remove the 85.x.x.x IP off the jail, leaving only the 10.x.x.x IP alone, telnet works. The rest of the jails in the same host that hold only private IPs, have no problems connecting with the db jail.
Any idea what is wrong with my configuration?
Host of web jail (with IP 78.x.x.x):
Code:
[8] root@admin [/root] # jls -v
JID Hostname Path
Name State
CPUSetID
IP Address(es)
2 ticket.abc.com /usr/jails/ticket.abc.com
2 ACTIVE
3
78.x.x.x
3 svn.abc.com /usr/jails/svn.abc.com
3 ACTIVE
4
78.x.x.x
4 mail.abc.com /usr/jails/mail.abc.com
4 ACTIVE
5
78.x.x.x
5 forum.abc.com /usr/jails/forum.abc.com
5 ACTIVE
6
85.x.x.x
7 tools.abc.com /usr/jails/tools.abc.com
7 ACTIVE
2
10.10.10.x
85.x.x.x
Host of db jail (with 78.x.x.x IP):
Code:
[5] root@mdb1 [/root] # jls -v
JID Hostname Path
Name State
CPUSetID
IP Address(es)
3 jmem.abc.com /tank/jails/jmem.abc.com
3 ACTIVE
2
192.168.30.x
10.10.10.x
4 jdb1.abc.com /tank/jails/jdb1.abc.com
4 ACTIVE
3
10.10.10.x
Thanks!