Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as Bash by saatulihsan ( 17 years ago )
#Recommended minimum configuration per scheme:
#auth_param negotiate program <uncomment and complete this line to activate>
#auth_param negotiate children 5
#auth_param negotiate keep_alive on
#auth_param ntlm program <uncomment and complete this line to activate>
#auth_param ntlm children 5
#auth_param ntlm keep_alive on
#auth_param digest program <uncomment and complete this line>
#auth_param digest children 5
#auth_param digest realm Squid proxy-caching web server
#auth_param digest nonce_garbage_interval 5 minutes
#auth_param digest nonce_max_duration 30 minutes
#auth_param digest nonce_max_count 50
#auth_param basic program <uncomment and complete this line>
#auth_param basic children 5
#auth_param basic realm Squid proxy-caching web server
#auth_param basic credentialsttl 2 hours
#auth_param basic casesensitive off
#Default:
# authenticate_cache_garbage_interval 1 hour
#Default:
# authenticate_ttl 1 hour
# authenticate_ip_ttl 0 seconds
#acl macaddress arp 09:00:2b:23:45:67
#acl myexample dst_as 1241
#acl password proxy_auth REQUIRED
#acl fileupload req_mime_type -i ^multipart/form-data$
#acl javascript rep_mime_type -i ^application/x-javascript$
acl stimata src 192.168.0.0/255.255.255.0
acl stimata1 src 192.193.194.0/255.255.255.0
acl fbredir dstdomain www.facebook.com
#block keyword pertama
acl block dstdomain "/etc/squid/keywordblock.txt"filtering keyword
acl keywordblock url_regex -i "/etc/squid/block.txt"
acl all src 0.0.0.0/0.0.0.0
acl alldst dst 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 # https
acl SSL_ports port 563 # snews
acl SSL_ports port 873 # rsync
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 Safe_ports port 631 # cups
acl Safe_ports port 873 # rsync
acl Safe_ports port 901 # SWAT
acl purge method PURGE
acl CONNECT method CONNECT
acl porno url_regex -i "/etc/squid/porno.txt"
http_access deny all porno
http_access deny keywordblock
# http_access deny all
# Only allow cachemgr access from localhost
http_access allow stimata
http_access allow stimata1
http_access allow localhost
http_access allow manager localhost
http_access deny manager
# Only allow purge requests from localhost
http_access allow purge localhost
http_access deny purge
# Deny requests to unknown ports
http_access deny !Safe_ports
# Deny CONNECT to other than SSL ports
http_access deny CONNECT !SSL_ports
#http_access deny to_localhost
#acl our_networks src 192.168.1.0/24 192.168.2.0/24
#http_access allow our_networks
http_access allow localhost
#mem blok situs keywords (sex,adult,porn,nude)
#acl all src stimata
#acl all src stimata1
acl manager proto cache_object
acl porno url_regex -i "/etc/squid/porno.txt"
http_access deny porno
http_access deny all
deny_info http://lite.facebook.com fbredir
http_access deny fbredir
# And finally deny all other access to this proxy
http_access deny all
# http_reply_access allow all
icp_access allow all
# htcp_access deny all
#acl htcp_clr_peer src 172.16.1.2
#htcp_clr_access allow htcp_clr_peer
# htcp_clr_access deny all
# miss_access allow all
# ident_lookup_access deny all
# reply_body_max_size 0 allow all
# follow_x_forwarded_for deny all
# acl_uses_indirect_client on
# delay_pool_uses_indirect_client on
# log_uses_indirect_client on
# Squid normally listens to port 3128
http_port 8080 transparent
# ssl_unclean_shutdown off
# sslproxy_version 1
# dead_peer_timeout 10 seconds
#We recommend you to use at least the following line.
hierarchy_stoplist cgi-bin ?
cache_mem 672 MB
# maximum_object_size_in_memory 8 KB
# memory_replacement_policy lru
# cache_replacement_policy lru
cache_dir ufs /var/spool/squid 30000 16 256
# store_dir_select_algorithm least-load
# max_open_disk_fds 0
# minimum_object_size 0 KB
# maximum_object_size 4096 KB
cache_swap_low 90
cache_swap_high 95
access_log /var/log/squid/access.log squid
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
logfile_rotate 10
# emulate_httpd_log off
# log_ip_on_direct on
mime_table /usr/share/squid/mime.conf
# log_mime_hdrs off
pid_filename /var/run/squid.pid
# debug_options ALL,1
# log_fqdn off
# client_netmask 255.255.255.255
# strip_query_terms on
# buffered_logs off
# ftp_user Squid@
# ftp_list_width 32
# ftp_passive on
# ftp_sanitycheck on
# ftp_telnet_protocol on
# diskd_program /usr/lib/squid/diskd-daemon
# unlinkd_program /usr/lib/squid/unlinkd
# pinger_program /usr/lib/squid/pinger
# url_rewrite_children 5
# url_rewrite_concurrency 0
# url_rewrite_host_header on
# redirector_bypass off
# location_rewrite_children 5
# location_rewrite_concurrency 0
#We recommend you to use the following two lines.
acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY
#Suggested default:
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
# quick_abort_min 16 KB
# quick_abort_max 16 KB
# quick_abort_pct 95
# read_ahead_gap 16 KB
# negative_ttl 5 minutes
# positive_dns_ttl 6 hours
# negative_dns_ttl 1 minute
# range_offset_limit 0 KB
# minimum_expiry_time 60 seconds
# store_avg_object_size 13 KB
# store_objects_per_bucket 20
# request_header_max_size 20 KB
# reply_header_max_size 20 KB
# request_body_max_size 0 KB
# acl buggy_server url_regex ^http://....
# broken_posts allow buggy_server
# via on
# cache_vary on
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
# collapsed_forwarding off
# refresh_stale_hit 0 seconds
# ie_refresh off
# vary_ignore_expire off
extension_methods REPORT MERGE MKACTIVITY CHECKOUT
# request_entities off
# relaxed_header_parser on
# forward_timeout 4 minutes
# connect_timeout 1 minute
# peer_connect_timeout 30 seconds
# read_timeout 15 minutes
# request_timeout 5 minutes
# persistent_request_timeout 2 minutes
# client_lifetime 1 day
# half_closed_clients on
# pconn_timeout 1 minute
# ident_timeout 10 seconds
# shutdown_lifetime 30 seconds
# cache_mgr webmaster
# mail_program mail
# cache_effective_user proxy
# httpd_suppress_version_string off
# umask 027
# announce_period 0
#announce_period 1 day
# announce_host tracker.ircache.net
# announce_port 3131
# httpd_accel_no_pmtu_disc off
# delay_pools 0
# delay_initial_bucket_level 50
# wccp_router 0.0.0.0
# wccp_version 4
# wccp2_rebuild_wait on
# wccp2_forwarding_method 1
# wccp2_return_method 1
# wccp2_assignment_method 1
# wccp2_service standard 0
# wccp2_weight 10000
# wccp_address 0.0.0.0
# wccp2_address 0.0.0.0
# client_persistent_connections on
# server_persistent_connections on
# persistent_connection_after_error off
# detect_broken_pconn off
# digest_generation on
# digest_bits_per_entry 5
# digest_rebuild_period 1 hour
# digest_rewrite_period 1 hour
# digest_swapout_chunk_size 4096 bytes
# digest_rebuild_chunk_percentage 10
# snmp_port 0
#Example:
# snmp_access allow snmppublic localhost
# snmp_access deny all
#
#Default:
# snmp_access deny all
# snmp_incoming_address 0.0.0.0
# snmp_outgoing_address 255.255.255.255
icp_port 3130
# htcp_port 0
# log_icp_queries on
# udp_incoming_address 0.0.0.0
# udp_outgoing_address 255.255.255.255
# icp_hit_stale off
# minimum_direct_hops 4
# minimum_direct_rtt 400
# netdb_low 900
# netdb_high 1000
# netdb_ping_period 5 minutes
# query_icmp off
# test_reachability off
# icp_query_timeout 0
# maximum_icp_query_timeout 2000
# mcast_miss_addr 255.255.255.255
# mcast_miss_ttl 16
# mcast_miss_port 3135
# mcast_miss_encode_key XXXXXXXXXXXXXXXX
# mcast_icp_query_timeout 2000
# icon_directory /usr/share/squid/icons
# global_internal_static on
# short_icon_urls off
# error_directory /usr/share/squid/errors/English
# nonhierarchical_direct on
# prefer_direct off
# incoming_icp_average 6
# incoming_http_average 4
# incoming_dns_average 4
# min_icp_poll_cnt 8
# min_dns_poll_cnt 8
# min_http_poll_cnt 8
# tcp_recv_bufsize 0 bytes
# check_hostnames on
# allow_underscore on
# cache_dns_program /usr/lib/squid/dnsserver
# dns_children 5
# dns_retransmit_interval 5 seconds
# dns_timeout 2 minutes
# dns_defnames off
hosts_file /etc/hosts
# dns_testnames netscape.com internic.net nlanr.net microsoft.com
# append_domain .yourdomain.com
# ignore_unknown_nameservers on
# ipcache_size 1024
# ipcache_low 90
# ipcache_high 95
# fqdncache_size 1024
# memory_pools on
# memory_pools_limit 5 MB
# forwarded_for on
# cachemgr_passwd secret shutdown
# cachemgr_passwd lesssssssecret info stats/objects
# cachemgr_passwd disable all
# client_db on
# reload_into_ims off
# maximum_single_addr_tries 1
# retry_on_error off
# as_whois_server whois.ra.net
# as_whois_server whois.ra.net
# offline_mode off
# uri_whitespace strip
coredump_dir /var/spool/squid
# balance_on_multiple_ip on
# pipeline_prefetch off
# high_response_time_warning 0
# high_page_fault_warning 0
# high_memory_warning 0 KB
# sleep_after_fork 0
visible_hostname stimata.ac.id
#==============>SEDANG UJI COBA<====================
#acl download url_regex -i #ftp .exe .mp3 .vqf .tar.gz .gz .tar .rpm .zip .rar .avi .mpeg .mpe .mpg .qt .ram .rm .iso .raw .wav .mov .msi
# Filter Download
acl download url_regex -i ftp .exe .mp3 .vqf .tar.gz .gz .tar .rpm .zip .rar .avi .mpeg .mpe .mpg .qt .ram .rm .iso .raw .wav .mov .msi .mp4
delay_pools 2
# aturan 1, tidak ada pembatasan
delay_class 1 2
delay_parameters 1 -1/-1 -1/-1
# aturan 2, setelah download 2048000 bytes mk download menjadi 10000 bytes/s
delay_class 2 2
delay_parameters 2 -1/10000 10000/2049000
delay_access 2 allow download
delay_access 2 deny all
delay_access 1 deny download
delay_access 1 allow all
Revise this Paste