Search squid archive

Redirecting certain sites with a forward option?

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

 



I have a few teachers how want a group of students to be forwarded to
a page for certain sites. The page would then have forwarding option
to view the original site. They are trying to add around 100 URL's to
this list. For example, if student tries to access loc.gov site, they
would be redirected to our page that would have some guidelines
written by teachers, and on the bottom of that page student could
click on "Continue to original address, %URL.

Squid v 3.1.6 is setup in transparent mode.

Is this possible?

Here is our config file:

http_port 3128

refresh_pattern http://.*\.adobe\.com/ 0 80% 20160 reload-into-ims
refresh_pattern http://.*\.windowsupdate\.microsoft\.com/ 0 80% 20160
reload-into-ims
refresh_pattern http://office\.microsoft\.com/ 0 80% 20160 reload-into-ims
refresh_pattern http://windowsupdate\.microsoft\.com/ 0 80% 20160
reload-into-ims
refresh_pattern http://w?xpsp[0-9]\.microsoft\.com/ 0 80% 20160 reload-into-ims
refresh_pattern http://w2ksp[0-9]\.microsoft\.com/ 0 80% 20160 reload-into-ims
refresh_pattern http://download\.microsoft\.com/ 0 80% 20160 reload-into-ims
refresh_pattern http://download\.macromedia\.com/ 0 80% 20160 reload-into-ims

refresh_pattern -i \.flv$ 10080 90% 999999 ignore-no-cache
override-expire ignore-private
refresh_pattern -i \.index.(html|htm)$ 0 40% 10080
refresh_pattern -i \.(html|htm|css|js)$ 1440 40% 40320
refresh_pattern -i \.(gif|png|jpg|jpeg|ico)$ 10080 90% 43200
override-expire ignore-no-cache ignore-no-store ignore-private
refresh_pattern -i \.(iso|avi|wav|mp3|mp4|mpeg|swf|x-flv)$ 43200 90%
432000 override-expire ignore-no-cache ignore-no-store ignore-private
refresh_pattern -i
\.(deb|rpm|exe|zip|tar|tgz|ram|rar|bin|ppt|doc|tiff)$ 10080 90% 43200
override-expire ignore-no-cache ignore-no-store ignore-private

refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern ^ftp: 144000 20% 1008000
refresh_pattern -i \.index.(html|htm)$ 1440 90% 40320
refresh_pattern -i \.(html|htm|css|js)$ 1440 90% 40320
refresh_pattern (/cgi-bin/|\?) 0 0% 0

acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
acl schoolip src 148.110.3.191

acl SSL_ports port 443
acl Safe_ports port 80          # http
acl Safe_ports port 21          # ftp
acl Safe_ports port 443         # https
acl Safe_ports port 70          # gopher
acl Safe_ports port 210         # wais
acl Safe_ports port 1025-65535  # unregistered ports
acl Safe_ports port 280         # http-mgmt
acl Safe_ports port 488         # gss-http
acl Safe_ports port 591         # filemaker
acl Safe_ports port 777         # multiling http
acl CONNECT method CONNECT

http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access allow schoolip
http_access allow test
#http_access allow all

# cache mem doesn't take higher value here. we have 8 GB on machine,
is 4 GB max?
cache_mem 3994 MB
maximum_object_size 65536 KB
maximum_object_size_in_memory 64 KB
memory_replacement_policy heap GDSF
cache_replacement_policy heap LFUDA
cache_dir aufs /var/spool/squid3 16384 32 512
half_closed_clients off
coredump_dir /var/spool/squid3
half_closed_clients off
cache_store_log none

logfile_rotate 3
ipcache_size 16384
ipcache_low 98
ipcache_high 99
log_fqdn off
half_closed_clients off
reload_into_ims on
httpd_suppress_version_string off


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

  Powered by Linux