Install NGINX Agent
To onboard your F5 WAF for NGINX instances to NGINX Instance Manager, install and configure NGINX Agent on each instance.
-
Use SSH to connect to an F5 WAF for NGINX instance.
Repeat these steps for each instance you want to onboard. -
Download the NGINX Agent package from your NGINX Instance Manager host and run the installation script.
You can group instances that use the same version of F5 WAF for NGINX by including the optional
--instance-groupflag in the install command.Make suregpgis installed on your system before continuing. You can install NGINX Agent using command-line tools likecurlorwget.If your NGINX Instance Manager host doesn’t use valid TLS certificates, you can use the insecure flags to bypass verification. Here are some example commands:
-
Secure:
curl https://<NIM_FQDN>/install/nginx-agent | sudo sh -
Insecure:
curl --insecure https://<NIM_FQDN>/install/nginx-agent | sudo sh
To add the instance to a specific instance group during installation, use the
--instance-group(or-g) flag:shell curl https://<NIM_FQDN>/install/nginx-agent -o install.sh chmod u+x install.sh sudo ./install.sh --instance-group <instance group>By default, the install script uses a secure connection to download packages. If it can’t establish one, it falls back to an insecure connection and logs this message:
Warning: An insecure connection will be used during this nginx-agent installationTo enforce a secure connection, set the
--skip-verifyflag to false:shell curl https://<NIM_FQDN>/install/nginx-agent -o install.sh chmod u+x install.sh sudo ./install.sh --skip-verify false-
Secure:
wget https://<NIM_FQDN>/install/nginx-agent -O - | sudo sh -s --skip-verify false -
Insecure:
wget --no-check-certificate https://<NIM_FQDN>/install/nginx-agent -O - | sudo sh
To add your instance to a group during installation, use the
--instance-group(or-g) flag:shell wget https://<NIM_FQDN>/install/nginx-agent -O install.sh chmod u+x install.sh sudo ./install.sh --instance-group <instance group> -