[HELP] squidguard gak jalan ??

Diskusi tentang Ubuntu Server baik webserver, database server, samba server dan service lainnya serta jaringan menggunakan Sistem Operasi Ubuntu.
User avatar
progamer
Posts: 34
Joined: 29 Nov 2011, 06:59

[HELP] squidguard gak jalan ??

Postby progamer » 13 Mar 2012, 09:58

met pagi all,,

squid nya sudah berjalan baik di ubuntu-server 10.10

yang jadi masalah adalah squidguard_nya

ini file squid.conf
--- awal squid.conf ---

# WELCOME TO SQUID 2.7.STABLE9

acl all src all
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32

acl boleh url_regex "/usr/local/src/squid/boleh.txt"

url_rewrite_program /usr/bin/squidGuard -c /etc/squid/squidGuard.conf

acl ip1 src "/usr/local/src/squid/iplevelsatu.txt"
acl ip2 src "/usr/local/src/squid/ipleveldua.txt"
acl ip3 src "/usr/local/src/squid/ipleveltiga.txt"

acl blokir url_regex "/usr/local/src/squid/terlarang.txt"

acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network

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 file url_regex -i \.mp3 \.avi \.iso \.zip \.rar \.3gp \.exe


delay_pools 2 # ada dua konfigurasi

delay_class 1 2 # class pertama menggunakan pool 2

delay_access 1 allow file

delay_access 1 deny all

delay_parameters 1 8000/8000 6000/8000

delay_class 2 2 # class kedua menggunakan pool 2

delay_access 2 allow ip1

delay_access 2 deny all

delay_parameters 2 -1/-1 -1/-1

http_access allow boleh ip3

http_access allow !blokir ip2

http_access allow ip1

http_access deny blokir

http_access allow manager localhost

http_access deny manager

http_access allow purge localhost

http_access deny purge

http_access deny !Safe_ports


http_access deny CONNECT !SSL_ports

http_access allow localhost

http_access deny all

icp_access allow localnet
icp_access deny all

# Squid normally listens to port 3128
http_port 3128 transparent

#We recommend you to use at least the following line.
hierarchy_stoplist cgi-bin ?


#Default:
cache_mem 16 MB

#Default:
cache_dir ufs /cache 3072 16 256

access_log /var/log/squid/access.log squid

#
#Suggested default:
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern (Release|Package(.gz)*)$ 0 20% 2880
# example line deb packages
#refresh_pattern (\.deb|\.udeb)$ 129600 100% 129600
refresh_pattern . 0 20% 4320

# Don't upgrade ShoutCast responses to HTTP
acl shoutcast rep_header X-HTTP09-First-Line ^ICY.[0-9]
upgrade_http0.9 deny shoutcast

# Apache to signal ETag correctly on such responses
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache

# You can add up to 20 additional "extension" methods here.
extension_methods REPORT MERGE MKACTIVITY CHECKOUT

#Default:
cache_mgr trio.it@triomotor.co.id

#Default:
cache_effective_user proxy
cache_effective_group proxy

hosts_file /etc/hosts

coredump_dir /var/spool/squid


--- akhir squid.conf ---
ini file squidGuard.conf

--- awal squidGuard.conf ---
#
# CONFIG FILE FOR SQUIDGUARD
#

dbhome /var/lib/squidguard/db/blacklists
logdir /var/log/squid

dest ads {
domainlist ads/domains
urllist ads/urls
}

dest porn {
domainlist porn/domains
urllist pon/urls
}

acl {
default {
pass !porn all
redirect http://blacklist.html
}
}


--- akhir squidGuard.conf ---

kira2 kenapa ya mohon pencerahannya ya ??

Thank

Return to “Ubuntu Server”

Who is online

Users browsing this forum: No registered users and 5 guests