From 0c1f17c02c88017d360671315dc9dcd55eb62223 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Fri, 10 Jun 2022 17:15:42 +0200 Subject: [PATCH] Add test scenario acl-ip-address-permitted Sponsored by: Privoxy project funds collected at SPI --- tests/cts/acl-ip-address-permitted/data/test1 | 32 +++++++++++++++++++ .../cts/acl-ip-address-permitted/privoxy.conf | 18 +++++++++++ 2 files changed, 50 insertions(+) create mode 100644 tests/cts/acl-ip-address-permitted/data/test1 create mode 100644 tests/cts/acl-ip-address-permitted/privoxy.conf diff --git a/tests/cts/acl-ip-address-permitted/data/test1 b/tests/cts/acl-ip-address-permitted/data/test1 new file mode 100644 index 00000000..4c14cd62 --- /dev/null +++ b/tests/cts/acl-ip-address-permitted/data/test1 @@ -0,0 +1,32 @@ + + + +HTTP +HTTP GET + + + + + +HTTP/1.1 200 OK +Connection: close +Content-Type: text/html +Content-Length: 14 + +Blafaseldieda + + + + + +http + + +Request from permitted IP address + + +http://%HOSTIP:%HTTPPORT/%TESTNUMBER + + + + diff --git a/tests/cts/acl-ip-address-permitted/privoxy.conf b/tests/cts/acl-ip-address-permitted/privoxy.conf new file mode 100644 index 00000000..5e5fa4a9 --- /dev/null +++ b/tests/cts/acl-ip-address-permitted/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.2 +permit-access 127.0.0.1 + -- 2.39.2