Skip to content

Commit 9029d8f

Browse files
fix: DoS script issues and headline level issues (#1480)
* fix: script issues and headline level issues * fix: moving probe directives to http context as that is the only valid location --------- Co-authored-by: Alan Dooley <[email protected]>
1 parent 7d4978b commit 9029d8f

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

content/nap-dos/deployment-guide/learn-about-deployment.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1378,7 +1378,7 @@ You need root permissions to execute the following steps.
13781378
13791379
# prepare environment
13801380
mkdir -p /var/run/adm /tmp/cores ${LOGDIR}
1381-
chmod55 /var/run/adm /tmp/cores ${LOGDIR}
1381+
chmod 755 /var/run/adm /tmp/cores ${LOGDIR}
13821382
chown ${USER}:${USER} /var/run/adm /tmp/cores ${LOGDIR}
13831383
13841384
# run processes
@@ -1867,7 +1867,8 @@ Make sure to replace upstream and proxy pass directives in this example with rel
18671867
chown ${USER}:${USER} /var/run/adm /tmp/cores ${LOGDIR}
18681868
18691869
# run processes
1870-
/bin/su -s /bin/bash -c "/usr/bin/adminstall > ${LOGDIR}/adminstall.log 2>&1" ${USER}/bin/su -s /bin/bash -c '/opt/app_protect/bin/bd_agent &' ${USER}
1870+
/bin/su -s /bin/bash -c "/usr/bin/adminstall > ${LOGDIR}/adminstall.log 2>&1" ${USER}
1871+
/bin/su -s /bin/bash -c '/opt/app_protect/bin/bd_agent &' ${USER}
18711872
/bin/su -s /bin/bash -c "/usr/share/ts/bin/bd-socket-plugin tmm_count 4 proc_cpuinfo_cpu_mhz 2000000 total_xml_memory 307200000 total_umu_max_size 3129344 sys_max_account_id 1024 no_static_config 2>&1 > /var/log/app_protect/bd-socket-plugin.log &" ${USER}
18721873
/bin/su -s /bin/bash -c "/usr/bin/admd -d --log info > ${LOGDIR}/admd.log 2>&1 &" ${USER}
18731874
/usr/sbin/nginx -g 'daemon off;'
@@ -2237,9 +2238,9 @@ Review the syslog ports by entering the following command:
22372238
semanage port -l | grep syslog
22382239
```
22392240
2240-
### Kubernetes Deployment Examples
2241+
## Kubernetes Deployment Examples
22412242
2242-
#### App Protect DoS
2243+
### App Protect DoS
22432244
22442245
`appprotect-dos.yaml`:
22452246
@@ -2425,6 +2426,9 @@ http {
24252426
app_protect_dos_security_log "/etc/app_protect_dos/log-default.json" /var/log/adm/logger.log;
24262427
# app_protect_dos_security_log "/etc/app_protect_dos/log-default.json" syslog:server=1.2.3.4:5261;
24272428
2429+
app_protect_dos_liveness on; # uri:/app_protect_dos_liveness port:8090
2430+
app_protect_dos_readiness on; # uri:/app_protect_dos_readiness port:8090
2431+
24282432
server {
24292433
listen 80 reuseport;
24302434
server_name serv;
@@ -2447,9 +2451,6 @@ http {
24472451
listen 8090;
24482452
server_name probe;
24492453
2450-
app_protect_dos_liveness on; # uri:/app_protect_dos_liveness port:8090
2451-
app_protect_dos_readiness on; # uri:/app_protect_dos_readiness port:8090
2452-
24532454
location / {
24542455
proxy_pass http://localhost:8091;
24552456
}
@@ -2466,7 +2467,7 @@ http {
24662467
}
24672468
```
24682469
2469-
#### App Protect DoS arb
2470+
### App Protect DoS arb
24702471
24712472
Arbitrator (arb) is an internal service that is essential for the scaling scenarios. The arbitrator service should be deployed in the same namespace as F5 DoS for NGINX.
24722473

0 commit comments

Comments
 (0)