centreon / centreon-vmware

Centreon VMWare connector to check ESX server, VCenter and VMWare guest resources
Apache License 2.0
28 stars 16 forks source link

Only listen to localhost #81

Closed silradsi closed 5 years ago

silradsi commented 5 years ago

Hi there,

I've been through the code and documentation, but didn't find any way to make the daemon only listen to localhost. It's currently listening to all IPs, which for me is a security issue. Is there a way to listen only to 127.0.0.1 ?

Best regards, silradsi

garnier-quentin commented 5 years ago

You cannot. You need to change following line:

zmq_bind($frontend, 'tcp://*:' . $centreon_vmware->{centreon_vmware_config}->{port});