[cgiwrap-users] Implementing IPv6 support
Brought to you by:
nneul
From: Hans v. K. <han...@me...> - 2008-05-22 12:59:37
|
Hi cgiwrap-folks, While carefully IPv6-enabling our network infrastructure, I discovered cgiwrap does not yet handle IPv6 addresses in configuration files and CGI environment variables. Currently cgiwrap requires a dotquad IPv4 address in REMOTE_ADDR environment variable. So even if host-checking is not used in cgiwrap.(deny|allow), any request over IPv6 will be refused when cgiwrap is compiled with --with-host-checking. Currently I'm using cgiwrap without --with-host-checking to work around this issue. RFC 3875 (CGI) and RFC 3513 (IPv6 Addressing Architecture) describe the possible content of REMOTE_ADDR cgiwrap should be able to parse. In configuration file parsing, support for IPv6 addressing like 2001:888:30a9:1e7::/64 should be added. I think it would be rather trivial to just add ipv4/prefix (like 10.0.0.0/22) support in addition to specifying netmasks in dotquad format. Although C is not a programming language I speak fluently (yet), I'd like to give it a shot and code IPv6 support into cgiwrap. So, if the cgiwrap author or another experienced C programmer could review the changes and probably help me out a bit when needed, I'd be happy to contribute to cgiwrap. Greetings, Hans van Kranenburg |