[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
(usagi-users 00919) IPv6 enabling of mozilla's proxy pac?
- To: users@xxxxxxxx
- Subject: (usagi-users 00919) IPv6 enabling of mozilla's proxy pac?
- From: Peter Bieringer <pb@xxxxxxxxxxxx>
- Date: Thu, 25 Oct 2001 11:21:20 +0200
- Cc: Maillist USAGI-users <usagi-users@xxxxxxxxxxxxxx>, Maillist linux-ipv6 <linux-ipv6@xxxxxxxxxxxxx>
- Reply-to: usagi-users@xxxxxxxxxxxxxx
Hi,
playing around with new Red Hat Linux 7.2 I've found that for users
behind a [selfmade] firewall with IPv6 routing/tunneling capabilities
and no transparent proxy for IPv4-HTTP traffic (i.e. use of
squid/junkbuster) there is a need for extending the proxy pac to use
IPv4 and IPv6 simultanously.
There is no possiblity to make in mozilla's config differences
between proxy for IPv4 requests and proxy (or no proxy) for IPv6
requests.
Possible solution/turnaround: control by proxy.pac, but a short dig
into mozilla source shows me, that the function "isInNeT" only
understands IPv4:
netwerk/base/src/nsProxyAutoConfig.js
function isInNet(ipaddr, pattern, maskstr) {\n"+
" var test =
/^(\\d{1,4})\\.(\\d{1,4})\\.(\\d{1,4})\\.(\\d{1,4})$/(ipaddr);\n"+
" if (test == null) {\n"+
" ipaddr = dnsResolve(ipaddr);\n"+
" if (ipaddr == null)\n"+
" return false;\n"+
" } else if (test[1] > 255 || test[2] > 255 || \n"+
" test[3] > 255 || test[4] > 255) {\n"+
" return false; // not an IP address\n"+
" }\n"+
Suggestion:
new function called something like "isInIPv6Net" which can handle
IPv6 prefixes well in the same matter.
function isInIPv6Net(ipv6addr, ipv6prefix)...
Would be very helpful now and in the future, too, I think.
Opinions?
BTW: Does anyone know if this can be easily done by extending some
minor parts of code or is it more difficult?
TIA,
Peter