|
Home > Archive > Squid > October 2004 > Allow IP address as URLs
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Allow IP address as URLs
|
|
| -linux_lad 2004-09-22, 10:26 pm |
| Our squid server has a whitelist of approved IP addresses, and blocks
everything not on the list. Unauthorized site access generates an error
page which doubles a a request form, which can be submitted to request
access to that site. Ip addresses added to the list do not seem to work
when added to the whitelist in the same way as domains are (probably
because lookups fail when squid is reloaded). My workaround has been to
add a dns entry, but this is clumsy and tedious. How can I add specific
IP addresses to the whitelist and have them be treated the same as a
domain like "www.yahoo.com"?
example:
#begin whitelist
www.yahoo.com
www.mapquest.com
209.154.26.104 <---this one won't work
--
-linux_lad
| |
| Muthukumar_K 2004-10-12, 4:05 pm |
| #begin whitelist
www.yahoo.com
www.mapquest.com
209.154.26.104 <---this one won't work
>>>>>>>>
You are trying to block based on domain there so that we can not use IP-Address on domain. We can control on using url / dst ip manner.
You can control domains as,
acl <aclname> dstdomain .yahoo.com .mapquest.com
or,
acl <aclname> url_regex ^http://www.yahoo.com ^http://www,....
But we can control ip-address based one as,
acl <aclname> url_regex ^http://209.154.26.104
Or
acl <aclname> dst 209.154.26.104
It will give control to access web-access.
HTH. |
|
|
|
|