[help] squidclient error ??

Diskusi tentang Ubuntu Server baik webserver, database server, samba server dan service lainnya serta jaringan menggunakan Sistem Operasi Ubuntu.
User avatar
upik
Posts: 99
Joined: 05 Jun 2010, 14:52

[help] squidclient error ??

Postby upik » 25 Oct 2010, 23:12

Halo Ubuntu Forum,

apakah ada yang bisa menolong saya, sudah mencoba beberapa cara dengan squidclient tapi tetap error.

#squidclient -p 3128 mgr:info
client: ERROR: Cannot connect to [::1]:3128: Connection refused

semoga ada yang bisa bantu.

Ubuntu 10.10
User avatar
ninja
Posts: 2260
Joined: 27 Jan 2010, 16:23
Location: Tangerang, Banten, indonesia
Contact:

Re: [help] squidclient error ??

Postby ninja » 25 Oct 2010, 23:26

sama ane juga gitu, engga jadi masalah sih bro. :)
User avatar
zitux
Posts: 843
Joined: 15 Jan 2010, 23:17
Location: Malang Jatim Indonesia
Contact:

Re: [help] squidclient error ??

Postby zitux » 25 Oct 2010, 23:48

var/log/squid/cache.log isi nya apa ?
squid.conf nya gimana ?
User avatar
upik
Posts: 99
Joined: 05 Jun 2010, 14:52

Re: [help] squidclient error ??

Postby upik » 26 Oct 2010, 07:52

[quote=zitux]var/log/squid/cache.log isi nya apa ?
squid.conf nya gimana ?


Ini squid.conf ane bang


#################################################################
# Port
#################################################################
http_port 3128 transparent
icp_port 0
prefer_direct off

#################################################################
# Cache & Object
#################################################################
cache_mem 8 MB
cache_swap_low 98
cache_swap_high 99
max_filedesc 8192
maximum_object_size 1024 KB
minimum_object_size 0 KB
maximum_object_size_in_memory 64 KB
ipcache_size 4096
ipcache_low 98
ipcache_high 99
fqdncache_size 4096
cache_replacement_policy heap LFUDA
memory_replacement_policy heap GDSF

#################################################################
# cache_dir
#################################################################
cache_dir aufs /cache 100000 234 256
cache_access_log /var/log/squid/access.log
cache_log /dev/null
cache_store_log /dev/null
pid_filename /var/run/squid.pid
cache_swap_log /var/log/squid/swap.state
dns_nameservers 127.0.0.1 202.148.1.195 202.148.1.196 8.8.8.8
emulate_httpd_log off
hosts_file /etc/hosts
half_closed_clients off
negative_ttl 1 minutes

#################################################################
# Rules: Safe Port
#################################################################
acl all src 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 563 873 # https snews rsync
acl Safe_ports port 80 # http
acl Safe_ports port 20 21 # ftp
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 631 # cups
acl Safe_ports port 10000 # webmin
acl Safe_ports port 901 # SWAT
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 873 # rsync
acl Safe_ports port 110 # POP3
acl Safe_ports port 25 # SMTP
acl Safe_ports port 2095 2096 # webmail from cpanel
acl Safe_ports port 2082 2083 # cpanel
acl purge method PURGE
acl CONNECT method CONNECT
acl malware url_regex -i "/etc/squid/malware_block.txt"

http_access deny malware
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports !SSL_ports
http_access deny CONNECT !SSL_ports !Safe_ports

#################################################################
# Refresh Pattern
#################################################################

refresh_pattern ^ftp: 1440 20% 10080 reload-into-ims
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i \.(gif|png|jp?g|ico|bmp|tiff?)$ 10080 95% 43200 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-private
refresh_pattern -i \.(rpm|cab|deb|exe|msi|msu|zip|tar|gz|tgz|rar|bin|7z|doc?|xls?|ppt?|pdf|nth|psd|sis)$ 10080 90% 43200 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-private
refresh_pattern -i \.(avi|iso|wav|mid|mp?|mpeg|mov|3gp|wm?|swf|flv|x-flv|axd)$ 43200 95% 432000 override-expire override-lastmod reload-into-ims ignore-no-cache ignore-private
refresh_pattern -i \.(html|htm|css|js)$ 1440 75% 40320
refresh_pattern -i \.index.(html|htm)$ 0 75% 10080
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320 reload-into-ims


#################################################################
# HAVP + Clamav
#################################################################
cache_peer 127.0.0.1 parent 3128 0 no-query no-digest no-netdb-exchange default

#################################################################
# HIERARCHY (BYPASS CGI)
#################################################################
#hierarchy_stoplist cgi-bin ? .js .jsp
#acl QUERY urlpath_regex cgi-bin \? .js .jsp
#no_cache deny QUERY

#################################################################
# SNMP
#################################################################
snmp_port 3401
acl snmpsquid snmp_community public
snmp_access allow snmpsquid localhost
snmp_access deny all

#################################################################
# ALLOWED ACCESS
#################################################################


# HTTP OPTIONS
# -----------------------------------------------------------------------------

acl lan2 src 172.16.10.0/25

http_access allow lan2
http_access allow localhost
http_access deny all
always_direct deny all



#################################################################
# Cache CGI & Administrative
#################################################################
cache_mgr bangnapi
visible_hostname bangnapi.net
cache_effective_user proxy
cache_effective_group proxy
coredump_dir /var/spool/squid
shutdown_lifetime 10 seconds
logfile_rotate 1

redirect_program /usr/local/bin/squidGuard -c /usr/local/squidGuard/squidGuard.conf
redirect_children 10