Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pid_filename /var/run/squid.pid
- #cache_effective_user root
- cache_effective_group nogroup
- cache_mgr arifstwn
- visible_hostname fusion
- # These default to lru if commented. Broken on '2.6'? (squid 2.6? Kernel 2.6?)
- #cache_replacement_policy heap LFUDA
- #memory_replacement_policy LFUDA
- ipcache_size 2048
- cache_swap_low 90
- cache_swap_high 95
- maximum_object_size_in_memory 100 KB
- # If you have 64/8MB Router you can use 16MB cache_mem. If smaller, use 8MB ram. Any less, no worky well.
- cache_mem 16 MB
- # cache_dir: change it if you want. 100 meams 100MB cache size.
- cache_dir ufs /mnt/sda3/squid/squid-cache 6000 16 256
- logfile_rotate 10
- fqdncache_size 2048
- memory_pools off
- maximum_object_size 16384 KB
- quick_abort_min 0 KB
- quick_abort_max 0 KB
- log_icp_queries off
- client_db off
- buffered_logs on
- half_closed_clients off
- negative_dns_ttl 10 second
- connect_timeout 60 second
- read_timeout 80 second
- request_timeout 80 second
- # Logs, goes to USB stick
- cache_access_log /mnt/sda3/squid/log/squid-access.log
- cache_log /mnt/sda3/squid/log/squid-debug.log
- cache_store_log /mnt/sda3/squid/log/squid-storage.log
- # Logs, goes into openwrt's existing log folder.
- #cache_access_log /var/log/squid-access.log
- #cache_log /var/log/squid-debug.log
- #cache_store_log /var/log/squid-storage.log
- hierarchy_stoplist on
- # Our internal IP and listen port
- http_port 192.168.2.1:3128 transparent
- # Global ACL-Definitions (Access control lists)
- acl idents ident REQUIRED
- acl manager proto cache_object
- acl localhost src 127.0.0.1/255.255.255.255
- acl all src 0.0.0.0/0.0.0.0
- acl intern dst 192.168.2.0/24
- acl FTP proto FTP
- always_direct allow FTP
- # Allowed External Ports and Internal Lan IPs
- acl Allowed_Ports port 80 99 443 21 563 488 777 210 1025-65535
- acl yourLAN src 192.168.2.0/24
- #http_access definition
- http_access allow idents
- http_access allow all
- http_access allow intern
- http_access deny manager all
- http_access allow yourLAN
- http_access deny all
- icp_access deny all
- miss_access allow all
- always_direct allow intern
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement