nebula icon indicating copy to clipboard operation
nebula copied to clipboard

how to detect duplicate nebula IPs

Open theblop opened this issue 3 years ago • 2 comments

I recently had a problem that took me a while to debug: I mistakenly configured 2 nebula certs with the same IP and this (unsurprisingly) resulted in random connection problems to applications running on these servers.

Is there a way to detect if the same IP is configured on more than one node from inside the mesh? Maybe a nebula network summary view from the command line?

theblop avatar Jan 19 '22 08:01 theblop

Hi, not a direct solution, but what do you think of using terraform with custom provider for managing your entire cluster certificates? A terraform module is also available for quick setup. The module will throw error if duplicate IPs is detected in the input variable. Examples of input variables are here

rucciva avatar Feb 24 '22 02:02 rucciva

The module will throw error if duplicate IPs is detected in the input variable. Examples of input variables are here

Thank you for pointing me towards this new terraform module! I already have a script to generate certs that checks for duplicate IPs but the terraform module will be much better than my script.

It doesn't really solve my problem though, in my case someone also recently cloned a VM that already contained a cert to test something... So ideally I'd like to check for duplicates with our monitoring/alerting tool.

theblop avatar Feb 24 '22 07:02 theblop