From: Fabian Keil Date: Fri, 17 Apr 2009 11:27:49 +0000 (+0000) Subject: Petr Pisar's privoxy-3.0.12-ipv6-3.diff. X-Git-Tag: v_3_0_13~129 X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff_plain;h=df9616f1dacac74ba9469d6c334d0105a6effe15 Petr Pisar's privoxy-3.0.12-ipv6-3.diff. --- diff --git a/configure.in b/configure.in index b2c38fd4..8c4fbac4 100644 --- a/configure.in +++ b/configure.in @@ -1,6 +1,6 @@ dnl Process this file with autoconf to produce a configure script. dnl -dnl $Id: configure.in,v 1.126 2009/03/21 10:45:06 fabiankeil Exp $ +dnl $Id: configure.in,v 1.127 2009/03/25 17:26:31 fabiankeil Exp $ dnl dnl Written by and Copyright (C) 2001-2009 the dnl Privoxy team. http://www.privoxy.org/ @@ -28,6 +28,9 @@ dnl or write to the Free Software Foundation, Inc., 59 dnl Temple Place - Suite 330, Boston, MA 02111-1307, USA. dnl dnl $Log: configure.in,v $ +dnl Revision 1.127 2009/03/25 17:26:31 fabiankeil +dnl And they are running again. Bump version to 3.0.13 UNRELEASED. +dnl dnl Revision 1.126 2009/03/21 10:45:06 fabiankeil dnl Declare the code stable. dnl @@ -566,7 +569,7 @@ dnl ================================================================= dnl AutoConf Initialization dnl ================================================================= -AC_REVISION($Revision: 1.126 $) +AC_REVISION($Revision: 1.127 $) AC_INIT(jcc.c) if test ! -f config.h.in; then @@ -1237,7 +1240,7 @@ AC_FUNC_SETPGRP AC_TYPE_SIGNAL dnl uncommenting does not work for swa. suse linux dnl AC_FUNC_STAT -AC_CHECK_FUNCS([access atexit getcwd gethostbyaddr gethostbyaddr_r gethostbyname gethostbyname_r gettimeofday inet_ntoa localtime_r memchr memmove memset poll putenv random regcomp select setlocale snprintf socket strchr strdup strerror strftime strlcat strlcpy strptime strstr strtoul timegm tzset]) +AC_CHECK_FUNCS([access atexit getaddrinfo getcwd gethostbyaddr gethostbyaddr_r gethostbyname gethostbyname_r getnameinfo gettimeofday inet_ntoa localtime_r memchr memmove memset poll putenv random regcomp select setlocale snprintf socket strchr strdup strerror strftime strlcat strlcpy strptime strstr strtoul timegm tzset]) dnl ================================================================= diff --git a/doc/source/p-config.sgml b/doc/source/p-config.sgml index 2d8c1817..9ed8f15c 100644 --- a/doc/source/p-config.sgml +++ b/doc/source/p-config.sgml @@ -3,7 +3,7 @@ Purpose : Used with other docs and files only. - $Id: p-config.sgml,v 2.42 2009/03/23 04:17:47 ler762 Exp $ + $Id: p-config.sgml,v 2.43 2009/03/28 15:33:41 fabiankeil Exp $ Copyright (C) 2001-2009 Privoxy Developers http://www.privoxy.org/ See LICENSE. @@ -95,7 +95,7 @@ Sample Configuration File for Privoxy v&p-version; - $Id: p-config.sgml,v 2.42 2009/03/23 04:17:47 ler762 Exp $ + $Id: p-config.sgml,v 2.43 2009/03/28 15:33:41 fabiankeil Exp $ Copyright (C) 2001-2009 Privoxy Developers http://www.privoxy.org/ @@ -1213,9 +1213,9 @@ actionsfile Effect if unset: - Bind to 127.0.0.1 (localhost), port 8118. This is suitable and recommended for - home users who run Privoxy on the same machine as - their browser. + Bind to 127.0.0.1 (IPv4 localhost), port 8118. This is suitable and + recommended for home users who run Privoxy on + the same machine as their browser. @@ -1230,6 +1230,9 @@ actionsfile serve requests from other machines (e.g. on your local network) as well, you will need to override the default. + + IPv6 address containing colons has to be quoted by brackets. + If you leave out the IP address, Privoxy will bind to all interfaces (addresses) on your machine and may become reachable @@ -1257,6 +1260,15 @@ actionsfile listen-address 192.168.0.1:8118 + + + + Suppose you are running Privoxy on IPv6 capable + machine and you want to listen on IPv6 loopback device: + + + + listen-address [::1]:8118 @@ -1611,23 +1623,41 @@ ACLs: permit-access and deny-access Type of value: - src_addr[/src_masklen] - [dst_addr[/dst_masklen]] + src_addr[:port][/src_masklen] + [dst_addr[:port][/dst_masklen]] Where src_addr and - dst_addr are IP addresses in dotted decimal notation or valid - DNS names, and src_masklen and + dst_addr are IPv4 addresses in dotted decimal notation or valid + DNS names, port is port + number, and src_masklen and dst_masklen are subnet masks in CIDR notation, i.e. integer values from 2 to 30 representing the length (in bits) of the network address. The masks and the whole destination part are optional. + + If your system implements + RFC 3493, then + src_addr and dst_addr can be IPv6 addresses delimeted by + brackets, port can be number + or service name, and + src_masklen and + dst_masklen can be number + from 0 to 128. + Default value: Unset + + No port means match any port + and no src_masklen or + no src_masklen means exactly + given IP address (i.e. 32 for IPv4 and 128 for IPv6). + @@ -1676,6 +1706,13 @@ ACLs: permit-access and deny-access like *.org or partial domain names. If a DNS name resolves to multiple IP addresses, only the first one is used. + + Some systems allows IPv4 client to connect to IPv6 server socket. + Then the client's IPv4 address will be translated by system into + IPv6 address space with special prefix ::ffff/96 (so called IPv4 + mapped IPv6 address). Privoxy can handle it + and maps such ACL addresses automatically. + Denying access to particular sites by ACL may have undesired side effects if the site in question is hosted on a machine which also hosts other sites @@ -1717,6 +1754,24 @@ ACLs: permit-access and deny-access deny-access 192.168.45.73 www.dirty-stuff.example.com + + Allow access from IPv4 network 192.0.2.0/24 even if listening on + IPv6 wild card address (where supported by operating system): + + + + permit-access 192.0.2.0/24 + + + + This is equivalent to the following line even if listening on IPv4 + address (where supported by operating system): + + + + permit-access [::ffff:192.0.2.0]/120 + + @@ -1838,7 +1893,7 @@ ACLs: permit-access and deny-access denote all URLs. http_parent[:port] is the DNS name or IP address of the parent HTTP proxy through which the requests should be forwarded, - optionally followed by its listening port (default: 8080). + optionally followed by its listening port (default: 8000). Use a single dot (.) to denote no forwarding. @@ -1864,6 +1919,16 @@ ACLs: permit-access and deny-access If http_parent is ., then requests are not forwarded to another HTTP proxy but are made directly to the web servers. + + http_parent can be IPv6 + numerical address (if + RFC 3493 is + implemented). However not to clash with port delimiter, quote + whole IP address with brackets. On the other hand target_pattern containing IPv6 address + must be delimited by angle brackets (normal brackets are reserved for + regular expression already). + Multiple lines are OK, they are checked in sequence, and the last match wins. @@ -1891,6 +1956,24 @@ ACLs: permit-access and deny-access forward .isp.example.net . + + Parent proxy specified by IPv6 address: + + + + foward / [2001:DB8::1]:8000 + + + + Suppose your parent proxy doesn't support IPv6: + + + + forward / parent-proxy.example.org:8000 + forward ipv6-server.example.org . + forward <[2-3][0-9a-f][0-9a-f][0-9a-f]:*> . + + @@ -1962,6 +2045,18 @@ forward-socks4, forward-socks4a and forward-socks5 With forward-socks5 the DNS resolution will happen on the remote server as well. + + socks_proxy and + http_parent can be IPv6 + numerical address (if + RFC 3493 is + implemented). However not to clash with port + delimiter, quote whole IP address with brackets. On the other + hand target_pattern containing + IPv6 address must be delimited by angle brackets (normal brackets are + reserved for regular expression already). The only exception is SOCKS 4 + version where only IPv4 is suppored. + If http_parent is ., then requests are not forwarded to another HTTP proxy but are made (HTTP-wise) directly to the web servers, albeit through diff --git a/doc/source/user-manual.sgml b/doc/source/user-manual.sgml index 024d350e..ac7ad28f 100644 --- a/doc/source/user-manual.sgml +++ b/doc/source/user-manual.sgml @@ -34,7 +34,7 @@ This file belongs into ijbswa.sourceforge.net:/home/groups/i/ij/ijbswa/htdocs/ - $Id: user-manual.sgml,v 2.102 2009/03/15 19:31:36 fabiankeil Exp $ + $Id: user-manual.sgml,v 2.103 2009/03/21 10:49:05 fabiankeil Exp $ Copyright (C) 2001-2009 Privoxy Developers http://www.privoxy.org/ See LICENSE. @@ -60,7 +60,7 @@ -$Id: user-manual.sgml,v 2.102 2009/03/15 19:31:36 fabiankeil Exp $ +$Id: user-manual.sgml,v 2.103 2009/03/21 10:49:05 fabiankeil Exp $