On Thu, Oct 25, 2007 at 09:50:39AM +0100, Mark Hindley wrote:
> On Thu, Oct 25, 2007 at 06:31:07PM +1000, Alex Samad wrote:
> > Package: apt-cacher
> > Version: 1.5.5
> > Severity: wishlist
> > 
> > When you configure it to listen to any address it only listens on ipv6
> > address 0.0.0.0: is it possible to get it to listen on any address
> > including ipv6 ?
> 
> I am not an expert on ipv6, but isn't 0.0.0.0 an ipv4 address?
Hi

Sorry I wasn't very clear.  When you don't set a daemon_addr it listens in at 
0.0.0.0:[port]. and yes that means it is only listening in on ipv4 addresses 
when you use netstat -panltu. If it was listening on ipv6 & ipv4 it would come 
up as :::[port] (the :: is any address in ipv6, similar to 0.0.0.0 in ipv4)

> 
> You can limit the daemon to a single IP address using the daemon_addr
> configuration option. This is IPv4 only due to the limitations of
> IO::Socket::INET
I'm not a perl programmer by any means, but i found this 
http://search.cpan.org/~mondejar/IO-Socket-INET6-2.51/INET6.pm => 
IO::Socket::INET6, seems to wrapper up IO::Socket::INET and gives you ipv6 
access. hopefully that could be a drop in replacement, which will allow 
apt-cacher to listen on ipv6 as well 

> 
> For anything more complicated you can use a combination of
> allowed_hosts and denied_hosts or allowed_hosts_6 denied_hosts_6 for
> ipv6.
doesn't really help if it isn't listening on an ipv6 address, initial i saw 
these and thought, bugger sent in a bug report before the double checking.

> 
> Does that achieve what you want?
> 
> Mark
> 

Attachment: signature.asc
Description: Digital signature

Reply via email to