Skip to content
Merged
Changes from 12 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion content/nim/nginx-app-protect/setup-waf-config-management.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,21 +240,24 @@ 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:

- **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.

{{<tabs name="WAF compiler installation in offline environment">}}

{{%tab name="Ubuntu"%}}

### Install on Ubuntu 24.04, 22.04

### Install on Ubuntu 24.04, 22.04, and 20.04

#### Step 1: On a system with internet access

Expand All @@ -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/
```

Expand Down Expand Up @@ -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
Expand All @@ -340,6 +346,7 @@ sudo dpkg -i ./compiler/*.deb

{{%/tab%}}


{{%tab name="RHEL9, Oracle-9 "%}}

### Install on RHEL 9 or Oracle Linux 9
Expand All @@ -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/
```
Expand All @@ -376,6 +384,7 @@ sudo dnf install *.rpm --disablerepo=*

{{%/tab%}}


{{%tab name="Redhat-8, Oracle-8"%}}

### Install on RHEL-8 or Oracle Linux 8
Expand All @@ -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/
```

Expand Down