settingan squid di smoothwall express 3.0

In Linux

ssh -l root routerbox

#cd /var/smoothwall/proxy

#vi acl

cache_mem 16 MB
maximum_object_size_in_memory 32 KB

cache_replacement_policy heap LFUDA
memory_replacement_policy heap GDSF

half_closed_clients off

cache_swap_high 100%
cache_swap_low 80%
ipcache_size 1024
ipcache_low 90
ipcache_high 95
fqdncache_size 1024

shutdown_lifetime 10 seconds
icp_port 0

acl QUERY urlpath_regex cgi-bin ?
no_cache deny QUERY

cache_effective_user squid
cache_effective_group squid

pid_filename /var/run/squid.pid

cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log none
error_directory /usr/share/errors/English
log_mime_hdrs off
emulate_httpd_log off
log_ip_on_direct off
log_fqdn off
log_mime_hdrs off
log_icp_queries off

client_persistent_connections on
server_persistent_connections on

pipeline_prefetch on
refresh_pattern -i .tar.gz$ 10080 90% 10080 override-expire override-lastmod reload-into-ims
refresh_pattern -i .mp3$ 10080 90% 10080 override-expire override-lastmod reload-into-ims
refresh_pattern -i .zip$ 10080 90% 10080 override-expire override-lastmod reload-into-ims
refresh_pattern -i .png$ 10080 90% 10080 override-expire override-lastmod reload-into-ims
refresh_pattern -i .gif$ 10080 90% 10080 override-expire override-lastmod reload-into-ims
refresh_pattern -i .jpg$ 10080 90% 10080 override-expire override-lastmod reload-into-ims
refresh_pattern -i .jpeg$ 10080 90% 10080 override-expire override-lastmod reload-into-ims
refresh_pattern -i .swf$ 10080 90% 10080 override-expire override-lastmod reload-into-ims
refresh_pattern -i .3gp$ 10080 90% 10080 override-expire override-lastmod reload-into-ims
refresh_pattern -i .rm$ 10080 90% 10080 override-expire override-lastmod reload-into-ims
refresh_pattern -i .wma$ 10080 90% 10080 override-expire override-lastmod reload-into-ims
refresh_pattern -i .mpeg$ 10080 90% 10080 override-expire override-lastmod reload-into-ims
refresh_pattern -i .(gif|jp?g|xbm|png|swf|bmp)$ 21600 90% 43200 override-expire override-lastmod reload-into-ims
refresh_pattern -i .(mov|avi|qtm|mp?)$ 21600 90% 43200 override-expire override-lastmod ignore-reload reload-into-ims
refresh_pattern -i .(3gp|wmv|wma|mpg|mpeg|mpga|rm|rv|vgp)$ 21600 90% 43200 override-expire override-lastmod ignore-reload reload-into-ims
refresh_pattern -i .(zip|exe|gz|Z|lha||rar|arj)$ 21600 90% 43200 override-expire override-lastmod ignore-reload reload-into-ims
refresh_pattern -i .(hqx|pdf|rtf|doc|swf)$ 100000 500% 99000000 ignore-reload override-expire
refresh_pattern -i .(inc|cab|ad|txt|)$ 100000 500% 99000000 ignore-reload override-expire
refresh_pattern ^http://www.friendster.com/.* 720 100% 4320 override-expire override-lastmod reload-into-ims
refresh_pattern ^http://photos.friendster.com/.* 720 100% 4320 override-expire override-lastmod reload-into-ims
refresh_pattern ^http://images.friendster.com/.* 720 100% 4320 override-expire override-lastmod reload-into-ims
refresh_pattern ^http://mail.yahoo.com/.* 720 100% 4320
refresh_pattern ^http://mail1.plasa.com/.* 720 100% 4320
refresh_pattern ^http://*.yahoo.*/.* 720 100% 4320 override-expire override-lastmod reload-into-ims
refresh_pattern ^http://*.google.*/.* 720 100% 4320
refresh_pattern ^http://*.friendster.*/.* 720 100% 4320 override-expire override-lastmod reload-into-ims
refresh_pattern ^http://*.doubleclick.*/.* 720 100% 4320 override-expire override-lastmod reload-into-ims
refresh_pattern ^http://www.yahoo.com/.* 720 100% 4320
refresh_pattern ^http://*.yimg.*/.* 720 100% 4320
refresh_pattern ^http://*.boleh.*/.* 720 100% 4320
refresh_pattern ^http://*.detik.*/.* 180 100% 4320
refresh_pattern ^http://*.detikinet.*/.* 180 100% 4320
refresh_pattern ^http://*.detikhot.*/.* 180 100% 4320
refresh_pattern ^http://*.detiportal.*/.* 180 100% 4320
refresh_pattern ^http://*.kompas.*/.* 180 100% 4320
refresh_pattern ^http://*.trans7.*/.* 720 100% 4320
refresh_pattern ^http://*.rcti.*/.* 720 100% 4320
refresh_pattern ^http://*.indosiar.*/.* 720 100% 4320
refresh_pattern ^http://*.kapanlagi.*/.* 720 100% 4320
refresh_pattern ^http://*.doubleclick.*/.* 720 100% 4320
refresh_pattern ^http://*.google-analytics.*/.* 720 100% 4320
refresh_pattern ^ftp: 10080 95% 241920 reload-into-ims override-lastmod
refresh_pattern . 180 95% 120960 reload-into-ims override-lastmod

quick_abort_min 0 KB
quick_abort_max 0 KB
quick_abort_pct 100%

forwarded_for off

acl all src 0.0.0.0/0.0.0.0
acl localhost src 127.0.0.1/255.255.255.255

acl SSL_ports port 445 443 441 563
acl Safe_ports port 80 # http
acl Safe_ports port 81 # smoothwall http
acl Safe_ports port 21 # ftp
acl Safe_ports port 445 443 441 563 # https, snews
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

cache_mgr boy at bodi.web.id

reload_into_ims on
pipeline_prefetch on
vary_ignore_expire on
memory_pools off
icp_hit_stale on
query_icmp on

delay_pools 1
delay_class 1 2
delay_parameters 1 128000/64000 40000/128000
delay_access 1 allow localnetgreen
delay_access 1 allow localhost
delay_access 1 deny all

redirect_rewrites_host_header off
uri_whitespace strip
offline_mode off

ftp_passive on
ftp_sanitycheck on

cache_dir diskd /var/spool/squid/cache2 8000 16 256
cache_dir diskd /var/spool/squid/cache3 8000 16 256
store_dir_select_algorithm round-robin

source : sepedabutut

Related Search

Anda sedang membaca artikel tentang settingan squid di smoothwall express 3.0. Silahkan baca artikel Be Log tentang Linux lainnya. Semoga bermanfaat ...

SSL Gratis Dari LetsEncrypt
SSL Gratis Dari LetsEncrypt
Untuk mendapatkan SSL Ceritificate mungkin tidaklah semurah
Install Teamviewer via Terminal di Ubuntu 18.04 Bionic Beaver
Install Teamviewer via Terminal di Ubuntu 18.04 Bionic Beaver
Aku coba install Teamviewer menggunakan GUI tapi
Setup Raspberry Pi 3 Video Resolution
Setup Raspberry Pi 3 Video Resolution
Raspberry Pi, saat ini bisa menjadi alternatif
Mengatasi Ubuntu 16.04 Yang Hang Pada Saat Reboot atau Shutdown
Mengatasi Ubuntu 16.04 Yang Hang Pada Saat Reboot atau Shutdown
Pada beberapa laptop terkadang Ubuntu yang sudah

Top