jymcheong / OpenEDRclient

Open Endpoint Defense & Response
Other
0 stars 1 forks source link

Do port checks before proceeding with installation #13

Open jymcheong opened 3 years ago

jymcheong commented 3 years ago

Why?

Pre-emptive step to reduce support issues. The backend usually have no problem churning out the 1-liner Powershell command for client-side to install.

Unfortunately, there are cases where either the first IP address that installation uses is not the actual address for client to download configuration & upload events, &/or there's some firewall configurations to be added.

When & How

When $SFTPCONFURL is defined, we use the address to check against port 2222 (sftp service) & 8888 (to download the sftpconf.zip).

Proceed only when both port are reachable, otherwise abort & prompt error message-box.

jymcheong commented 3 years ago

https://stackoverflow.com/a/9614040