[root@localhost ~]#vim /etc/squid/squid.conf http_port 3128 cache_dir ufs /var/spool/squid 100 16 256 cache_swap_low 90 cache_swap_high 95 maximum_object_size_in_memory 8 KB maximum_object_size 4096 KB cache_mem 8 MB ipcache_size 1024 ipcache_low 90 ipcache_high 95 fqdncache_size 1024 允許某些網段可使用,以下加在http_access deny all之前 acl test src 192.168.0.0/255.255.255.0 http_access allow test [root@localhost ~]#/etc/init.d/squid start
因SELinux的關係,須在SELinux Administration的Network Port增加
http_cache_port_t
tcp
s0
port
近期迴響