From: Fabian Keil <fk@fabiankeil.de>
Date: Fri, 10 Jun 2022 15:45:12 +0000 (+0200)
Subject: Add test scenario acl-destination-denied
X-Git-Tag: v_4_0_0~78
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/user-manual/static/gitweb.js?a=commitdiff_plain;h=3bf6d00c1ed54eefb190021d94022e18c6adc48b;p=privoxy.git

Add test scenario acl-destination-denied

Sponsored by: Privoxy project funds collected at SPI
---

diff --git a/tests/cts/acl-destination-denied/data/test1 b/tests/cts/acl-destination-denied/data/test1
new file mode 100644
index 00000000..cabad3b6
--- /dev/null
+++ b/tests/cts/acl-destination-denied/data/test1
@@ -0,0 +1,25 @@
+<testcase>
+<info>
+<keywords>
+HTTP
+HTTP GET
+</keywords>
+</info>
+
+<client>
+<server>
+none
+</server>
+<name>
+Request to denied destination IP address
+</name>
+<command>
+http://%HOSTIP/%TESTNUMBER
+</command>
+</client>
+<verify>
+<errorcode>
+56
+</errorcode>
+</verify>
+</testcase>
diff --git a/tests/cts/acl-destination-denied/privoxy.conf b/tests/cts/acl-destination-denied/privoxy.conf
new file mode 100644
index 00000000..b4b233cf
--- /dev/null
+++ b/tests/cts/acl-destination-denied/privoxy.conf
@@ -0,0 +1,18 @@
+listen-address 127.0.0.1:9119
+
+debug     1 # Log the destination for each request Privoxy let through. See also debug 1024.
+debug     2 # show each connection status
+debug     4 # show tagging-related messages
+debug     8 # show header parsing
+debug    32 # debug force feature
+debug    64 # debug regular expression filters
+debug   128 # debug redirects
+debug   256 # debug GIF de-animation
+debug   512 # Common Log Format
+debug  1024 # Log the destination for requests Privoxy didn't let through, and the reason why.
+debug  4096 # Startup banner and warnings.
+debug  8192 # Non-fatal errors
+
+deny-access 127.0.0.1 127.0.0.1
+permit-access 127.0.0.2
+