Fix RPZ CIDR tree insertion bug (#43035)
(cherry picked from commit 131307a70e)
This commit is contained in:
@@ -237,6 +237,35 @@ grep "^l2.l1.l0.[ ]*[0-9]*[ ]*IN[ ]*A[ ]*10.53.0.2" dig.out.${t} > /dev/null
|
||||
status=1
|
||||
}
|
||||
|
||||
# Check CLIENT-IP behavior #2
|
||||
t=`expr $t + 1`
|
||||
echo "I:testing CLIENT-IP behavior #2 (${t})"
|
||||
run_server clientip2
|
||||
$DIG $DIGOPTS l2.l1.l0 a @10.53.0.2 -p 5300 -b 10.53.0.1 > dig.out.${t}.1
|
||||
grep "status: SERVFAIL" dig.out.${t}.1 > /dev/null 2>&1 || {
|
||||
echo "I:test $t failed: query failed"
|
||||
status=1
|
||||
}
|
||||
$DIG $DIGOPTS l2.l1.l0 a @10.53.0.2 -p 5300 -b 10.53.0.2 > dig.out.${t}.2
|
||||
grep "status: NXDOMAIN" dig.out.${t}.2 > /dev/null 2>&1 || {
|
||||
echo "I:test $t failed: query failed"
|
||||
status=1
|
||||
}
|
||||
$DIG $DIGOPTS l2.l1.l0 a @10.53.0.2 -p 5300 -b 10.53.0.3 > dig.out.${t}.3
|
||||
grep "status: NOERROR" dig.out.${t}.3 > /dev/null 2>&1 || {
|
||||
echo "I:test $t failed: query failed"
|
||||
status=1
|
||||
}
|
||||
grep "^l2.l1.l0.[ ]*[0-9]*[ ]*IN[ ]*A[ ]*10.53.0.1" dig.out.${t}.3 > /dev/null 2>&1 || {
|
||||
echo "I:test $t failed: didn't get expected answer"
|
||||
status=1
|
||||
}
|
||||
$DIG $DIGOPTS l2.l1.l0 a @10.53.0.2 -p 5300 -b 10.53.0.4 > dig.out.${t}.4
|
||||
grep "status: SERVFAIL" dig.out.${t}.4 > /dev/null 2>&1 || {
|
||||
echo "I:test $t failed: query failed"
|
||||
status=1
|
||||
}
|
||||
|
||||
# Check RPZ log clause
|
||||
t=`expr $t + 1`
|
||||
echo "I:testing RPZ log clause (${t})"
|
||||
|
||||
Reference in New Issue
Block a user