Add test scenario acl-destination-permitted
authorFabian Keil <fk@fabiankeil.de>
Fri, 10 Jun 2022 15:56:44 +0000 (17:56 +0200)
committerFabian Keil <fk@fabiankeil.de>
Wed, 20 Mar 2024 11:38:39 +0000 (12:38 +0100)
Sponsored by: Privoxy project funds collected at SPI

tests/cts/acl-destination-permitted/data/test1 [new file with mode: 0644]
tests/cts/acl-destination-permitted/privoxy.conf [new file with mode: 0644]

diff --git a/tests/cts/acl-destination-permitted/data/test1 b/tests/cts/acl-destination-permitted/data/test1
new file mode 100644 (file)
index 0000000..fb72645
--- /dev/null
@@ -0,0 +1,32 @@
+<testcase>
+<info>
+<keywords>
+HTTP
+HTTP GET
+</keywords>
+</info>
+
+<reply>
+<data>
+HTTP/1.1 200 OK
+Connection: close
+Content-Type: text/html
+Content-Length: 14
+
+Blafaseldieda
+</data>
+</reply>
+
+<client>
+<server>
+http
+</server>
+<name>
+Request from permitted IP address to permitted destination address
+</name>
+<command>
+http://%HOSTIP:%HTTPPORT/%TESTNUMBER
+</command>
+</client>
+
+</testcase>
diff --git a/tests/cts/acl-destination-permitted/privoxy.conf b/tests/cts/acl-destination-permitted/privoxy.conf
new file mode 100644 (file)
index 0000000..d738cd8
--- /dev/null
@@ -0,0 +1,19 @@
+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.2
+deny-access 127.0.0.2 127.0.0.1
+permit-access 127.0.0.1 127.0.0.1
+