Menu

#49 IPv6 support

closed-accepted
5
2009-05-02
2002-12-06
No

This day and age, IPv6 support is mandatory for any serious network application.
Using the proper API it even simplifies the address and socket handling.
For inspiration I include the patches I made to the Internet Junkbuster so that is supports IPv6 for clients
and servers alike, which includes allowing IPv4 clients to access IPv6 servers (such as www.netbsd.org,
www.kame.net, server.pasta.cs.uit.no) and the other way around.
A big part of the patch is for ACL configuration file changes, because it handles addresses on a low level.

Discussion

1 2 3 > >> (Page 1 of 3)
  • Olaf Seibert

    Olaf Seibert - 2002-12-06

    IPv6 patch for IJB (for inspiration)

     
  • Schoinobates Volans

    Logged In: YES
    user_id=41822

    I've written a patch that implements the following:
    - connecting to ipv6 addresses, given by hostname
    - listening to ipv6 address, given by hostname
    - clients can connect to both ipv4 and ipv6
    Not implemented are:
    - connecting to the ipv4 address when name resolution gives
    both an IPv4 and an IPv6 address, e.g. when the server we
    are connecting to has an IPv6 address, but doesn't listen on
    it, or when IPv6 is misconfigured on the proxy
    - parsing of IPv6 adress literal in URL's and config files
    - removing IPv6 support at run-time

    I have NOT tested on any other platform than GNU/Linux,
    glibc 2.2. In particular, I assumed that all supported
    platforms support getaddrinfo and getnameinfo. Is it the case?
    I have NOT checked that it does still compile / work without
    the INET6 macro defined (used to activate IPv6 support).

    As I cannot figure out how to attach a file here, I'm
    sending the patch to the Mailing List.

     
  • Andreas Oesterhelt

    • labels: 332887 -->
     
  • Andreas Oesterhelt

    • status: open --> open-later
     
  • Andreas Oesterhelt

    Logged In: YES
    user_id=78811

    Wow - are these christmas presents?

    Olaf, thanks for sharing your patch! IPv6 is very high on the 3.1 whish list.
    Lionel, thanks for adapting it to the current Privoxy codebase!

    This will save a lot of work!

    Happy,
    --Andreas

     
  • Andreas Oesterhelt

    • labels: --> new feature
     
  • Johannes Berg

    Johannes Berg - 2003-01-20

    Logged In: YES
    user_id=32619

    What is the diff against? I can't seem to find acl.c
    anywhere which the patch tries to modify.

     
  • Johannes Berg

    Johannes Berg - 2003-01-20

    Logged In: YES
    user_id=32619

    Never mind. I read 2.0 and thought 3.0, that explains it ;)
    Will look for some ideas here and try adding it to 3.0, but
    don't count on it, I don't have much time for that

     
  • Schoinobates Volans

    Logged In: YES
    user_id=41822

    The diff attached here and called "ijb20-ipv6.patch" is for
    the Internet Junkbuster 2.0. I adapted part of it to Privoxy
    pre-3.1 CVS, and sent the patch to the "Dev" Mailing List.

    The archives seem to have eaten my patch, though... Should
    be this message:
    https://sourceforge.net/mailarchive/message.php?msg_id=2649175
    (and if only someone would explain to me how I can attach a
    file to this "patch tracker" here)

     
  • Andreas Oesterhelt

    IPv6 patch for Privoxy (from schoinobates)

     
  • Andreas Oesterhelt

    Logged In: YES
    user_id=78811

    Attaching Lionel's version.

    > (and if only someone would explain to me how I can attach a
    > file to this "patch tracker" here)

    You can only add files to your own items unless you have tracker admin rights.

     
  • Schoinobates Volans

    Logged In: YES
    user_id=41822

    I've continued development. A new version is available at <a HREF="http://www.mamane.lu/privoxy/privoxy_ipv6_3.patch.gz">my website</a>. (Sent it to the mailing list, too).

     
  • Schoinobates Volans

    Logged In: YES
    user_id=41822

    A bugfix release of my patch, version 4, is now available on
    my website:
    http://www.mamane.lu/privoxy/.

    The bug fixed is: "When connecting to a host with multiple
    addresses, in some cases, on failure to connect on the first
    address, the other addresses were not tried."

     
  • Andreas Oesterhelt

    Logged In: YES
    user_id=78811

    Attaching Lionel's latest version.

     
  • Andreas Oesterhelt

    Version 4 of the patch for Privoxy

     
  • Schoinobates Volans

    Logged In: YES
    user_id=41822

    I have updated my patch to more recent CVS version. I also
    prepared a ready-to-compile tarball. Everything is available
    from http://www.deepspace6.net/sources.html .
    Administrators, feel free to attach updated patch here.

     
  • Roland Rosenfeld

    Logged In: YES
    user_id=43129

    I took the privoxy_ipv6_4.patch.gz patch below and tried to
    adapt it to privoxy 3.0.3-2. This compiles and runs with
    IPv4 addresses, but I cannot try out with IPv6 cause I don't
    have IPv6 access right now :-(

    Why the hell, can't I attach another patch to this bug
    report? Anyway, I place the patch at
    http://www.spinnaker.de/tmp/privoxy_ipv6-3.0.3.patch

    Could someone try this out and give me feedback, whether
    this works?

    Ciao
    Roland

     
  • David Schmidt

    David Schmidt - 2006-07-30

    Logged In: YES
    user_id=249980

    roro - thanks for the update. Can you do me a favor - check
    out HEAD and see if it applies there?

     
  • Roland Rosenfeld

    Logged In: YES
    user_id=43129

    Yes, my patch applies without rejects to HEAD and the
    resulting code compiles without errors.

     
  • Roland Rosenfeld

    Logged In: YES
    user_id=43129

    I just uploaded another update of http://www.spinnaker.de/tmp/privoxy_ipv6-3.0.3.patch which adds some "break" statements to loadcfg.c, jbsockets.c and jcc.c.

    Without this patch all permit-access and deny-access directives in the config file throw error messages, because they run in the default tree of the switch statement, which throws the error message.

    This was already broken in the old 3.1 version of the IPv6 patch.

     
  • David Schmidt

    David Schmidt - 2006-08-14

    Logged In: YES
    user_id=249980

    Changed to developer to-do.

     
  • David Schmidt

    David Schmidt - 2006-08-14
    • status: open-later --> closed-out-of-date
     
  • Daniel Leite

    Daniel Leite - 2006-09-17

    Logged In: YES
    user_id=400731

    i updated the patch to the latest cvs

    http://caravela.homelinux.net/~higuita/extra/privoxy_ipv6-3.0.4.patch

    it seen to work with my system, but i'm no programmer, i
    just tried to fix the rejections... i hope without breaking
    anything.

     
1 2 3 > >> (Page 1 of 3)

Log in to post a comment.