Invalid bindIp in the YAML config file results in mongod listening to all interfaces rather then erroring out
$ cat mongod.conf
net: bindIp: port: 27017
$ mongod --config mongod.conf
2014-10-13T14:05:56.040-0700 [initandlisten] MongoDB starting : pid=11881 port=27017 dbpath=/data/db 64-bit host=toddler.local 2014-10-13T14:05:56.041-0700 [initandlisten] db version v2.6.4 2014-10-13T14:05:56.041-0700 [initandlisten] git version: 3a830be0eb92d772aa855ebb711ac91d658ee910 2014-10-13T14:05:56.041-0700 [initandlisten] build info: Darwin bs-osx108-4 12.5.0 Darwin Kernel Version 12.5.0: Sun Sep 29 13:33:47 PDT 2013; root:xnu-2050.48.12~1/RELEASE_X86_64 x86_64 BOOST_LIB_VERSION=1_49 2014-10-13T14:05:56.041-0700 [initandlisten] allocator: system 2014-10-13T14:05:56.041-0700 [initandlisten] options: { config: "mongod.conf", net: { bindIp: true, port: 27017 } }
$ netstat -na | grep 27017
tcp4 0 0 *.27017 *.* LISTEN
- duplicates
-
SERVER-15656 Improve bind_ip handling of badly formatted Internet address numbers
- Closed
- is related to
-
SERVER-14927 Bad bind_ip should fail, not listen on all addresses
- Closed
- related to
-
SERVER-15656 Improve bind_ip handling of badly formatted Internet address numbers
- Closed