Search squid archive

acl dst 255.255.255.255 means "no such hostname"?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I found out that if I deny users going to 255.255.255.255, it is the same as
if I denied going to unknown hostnames:

acl bogus dst 255.255.255.255
http_access deny bogus

Originally I wanted to deny customers goind to reserved IP spaces defined by
RFC1918 and RFC3330:

acl bogus dst 0.0.0.0/8 10.0.0.0/8 127.0.0.0/8 169.254.0.0/16 172.16.0.0/12 192.0.2.0/24 192.168.0.0/16 198.18.0.0/15 224.0.0.0/4 240.0.0.0/4
 
and I was very surprised that now I get "access denied" instead of "Unable
to determine IP address" (aka "The domain name does not exist.").

Is this wanted behaviour, a side effect of something (probably when
getnostname() returns -1) or a bug? Should I fill a bugreport?

(squid 2.5.STABLE10 on gentoo linux)

-- 
Matus UHLAR - fantomas, uhlar@xxxxxxxxxxx ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
How does cat play with mouse? cat /dev/mouse

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux