Infrastructure : I have 3 virtual machines ip in a DMZ on a same lan. one of them is running mongodb . OS : RHEL
Mongod.conf : I have commented out the bindIP option
But still mongodb is not accpeting connection from other servers on LAN. Telnet is failing from other 2 servers
the netstat output is
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:27017 0.0.0.0:* LISTEN 24251/./mongod
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1508/sshd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1621/master
tcp6 0 0 :::22 :::* LISTEN 1508/sshd
tcp6 0 0 ::1:25 :::* LISTEN 1621/master
i m guessing the foreign address for 27017 port should also look like ":::*" I m not able to catch the problem here.Please help!
:::*
syntax is the IPv6 equivalent of IPv4's0.0.0.0:*
(aka "all addresses"). I would check for firewall rules that may be blocking inbound access to27017
.