Public IP Error

87 views
Skip to first unread message

Cybersecurity

unread,
Aug 14, 2024, 2:36:31 AM8/14/24
to Wazuh | Mailing List
When trying to install wazuh on my virtual private server, specifically at the certificate deployment step, I get an error stating that the IP is public and the installation process halts there. How can I work around this ?

Awwal Ishiaku

unread,
Aug 14, 2024, 3:14:53 AM8/14/24
to Wazuh | Mailing List
Hello,
It seems you are using the installation script for your setup.
For security reasons, the installation script has been configured to prevent unexpected exposure of services to the internet.
You need to install each of the central components using the step-by-step installation method.
This way, you can be sure of the services you are exposing to the internet.

Alternatively, if you are sure that you want to use the script while exposing all the services, you can find and remove the following lines from the wazuh-install.sh script before running it.
Starting from line 3812 to 3820 in the 4.8.1 installation script.

        for ip in "${all_ips[@]}"; do
            isIP=$(echo "${ip}" | grep -P "^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$")
            if [[ -n "${isIP}" ]]; then
                if ! cert_checkPrivateIp "$ip"; then
                    common_logger -e "The IP ${ip} is public."
                    exit 1
                fi
            fi
        done


Regards.
Reply all
Reply to author
Forward
0 new messages