diff --git a/content/nim/nginx-app-protect/setup-waf-config-management.md b/content/nim/nginx-app-protect/setup-waf-config-management.md index fa7a56bcc..190c39d4a 100644 --- a/content/nim/nginx-app-protect/setup-waf-config-management.md +++ b/content/nim/nginx-app-protect/setup-waf-config-management.md @@ -240,6 +240,7 @@ error when creating the nginx repo retriever - NGINX repo certificates not found If needed, you can also [install the WAF compiler manually](#install-the-waf-compiler). + ## Install or update the WAF compiler in a disconnected environment To install the WAF compiler on a system without internet access, complete these steps: @@ -247,6 +248,7 @@ To install the WAF compiler on a system without internet access, complete these - **Step 1:** Generate the WAF compiler package on a system that has internet access. - **Step 2:** Move the generated package to the offline target system and install it. + Note : Version of NAP compiler can be referred from the table at the top of this page. Current latest version 5.442.0 at the point of writing this document is used in below commands. @@ -254,6 +256,7 @@ Current latest version 5.442.0 at the point of writing this document is used in {{%tab name="Ubuntu"%}} + ### Install on Ubuntu 24.04, 22.04 #### Step 1: On a system with internet access @@ -276,10 +279,12 @@ sudo tee /etc/apt/sources.list.d/nms.list sudo wget -q -O /etc/apt/apt.conf.d/90pkgs-nginx https://cs.nginx.com/static/files/90pkgs-nginx mkdir -p compiler && cd compiler sudo apt-get update + sudo apt-get download nms-nap-compiler-v5.442.0 cd ../ mkdir -p compiler/compiler.deps sudo apt-get install --download-only --reinstall --yes --print-uris nms-nap-compiler-v5.442.0 | grep ^\' | cut -d\' -f2 | xargs -n 1 wget -P ./compiler/compiler.deps + tar -czvf compiler.tar.gz compiler/ ``` @@ -320,6 +325,7 @@ sudo tee /etc/apt/sources.list.d/nms.list sudo wget -q -O /etc/apt/apt.conf.d/90pkgs-nginx https://cs.nginx.com/static/files/90pkgs-nginx mkdir -p compiler && cd compiler sudo apt-get update + sudo apt-get download nms-nap-compiler-v5.442.0 cd ../ mkdir -p compiler/compiler.deps @@ -340,6 +346,7 @@ sudo dpkg -i ./compiler/*.deb {{%/tab%}} + {{%tab name="RHEL9, Oracle-9 "%}} ### Install on RHEL 9 or Oracle Linux 9 @@ -359,6 +366,7 @@ sudo wget -P /etc/yum.repos.d https://cs.nginx.com/static/files/nms.repo sudo yum-config-manager --disable rhel-9-appstream-rhui-rpms sudo yum update -y sudo mkdir -p nms-nap-compiler + sudo yumdownloader --resolve --destdir=nms-nap-compiler nms-nap-compiler-v5.442.0 tar -czvf compiler.tar.gz nms-nap-compiler/ ``` @@ -376,6 +384,7 @@ sudo dnf install *.rpm --disablerepo=* {{%/tab%}} + {{%tab name="Redhat-8, Oracle-8"%}} ### Install on RHEL-8 or Oracle Linux 8 @@ -401,7 +410,9 @@ EOF sudo yum update -y sudo mkdir -p nms-nap-compiler + sudo yumdownloader --resolve --destdir=nms-nap-compiler nms-nap-compiler-v5.442.0 + tar -czvf compiler.tar.gz nms-nap-compiler/ ```