Mohon bantuan nya untuk masalah squid3

Diskusi tentang Ubuntu Server baik webserver, database server, samba server dan service lainnya serta jaringan menggunakan Sistem Operasi Ubuntu.
User avatar
newbei
Posts: 80
Joined: 14 Jan 2013, 09:58

Mohon bantuan nya untuk masalah squid3

Postby newbei » 13 Feb 2013, 10:35

Pagi bro/sis semua.

Saya ada masalah di konfigurasi squid3 nya, tolong bantuan nya untuk di koreksi.

eth0: 192.168.10.3 (ke modem speedy)
eth1: 192.168.1.3 (ke switch/user)

Konfigurasi squid3

acl situs url_regex -i "/etc/squid3/situs.txt"
acl multimedia urlpath_regex -i "/etc/squid3/files.acl"

acl fails2 urlpath_regex dvrplayer mediastream mms://
acl fails2 urlpath_regex \.asf$\.afx$ \.flv$ \.swf$
acl deny_rep_mime_flashvideo rep_mime_type -i video/flv
acl deny_rep_mime_shockwave rep_mime_type -i ^application/x-shockwave-flash$
acl x-type req_mime_type -i application/x-mplayer2
acl x-type req_mime_type -i ^application/x-oleobject$
acl x-type req_mime_type -i application/x-oleobject
acl x-type req_mime_type -i ^video/x-ms-adf$

acl server-mtu src 192.168.1.2-192.168.1.5/32
acl eng src 192.168.1.21-192.168.1.29/32
acl marketing src 192.168.1.30-192.168.1.39/32
acl finance src 192.168.1.40-192.168.1.49/32
acl purc src 192.168.1.50-192.168.1.59/32
acl produksi src 192.168.1.60-192.168.1.69/32
acl hrd src 192.168.1.70-192.168.1.79/32
acl mgr src 192.168.1.80-192.168.1.89/32

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 jaringan src 192.168.1.0/24
acl SSL_ports port 443
acl Safe_ports port 80
acl Safe_ports port 21
acl Safe_ports port 443
acl Safe_ports port 70
acl Safe_ports port 210
acl Safe_ports port 1025-65535
acl Safe_ports port 280
acl Safe_ports port 488
acl Safe_ports port 591
acl Safe_ports port 777
acl CONNECT method CONNECT

acl no_browsing arp 1C:6F:65:AF:5A:7F
http_access deny no_browsing

deny_info ERR_BLOCKED_FILES situs
http_access deny situs
http_access deny multimedia

http_reply_access deny deny_rep_mime_flashvideo
http_reply_access deny deny_rep_mime_shockwave
http_access deny fails2
http_reply_access deny fails2
http_access deny x-type
http_reply_access deny x-type

http_access allow server-mtu
http_access allow eng
http_access allow marketing
http_access allow finance
http_access allow purc
http_access allow produksi
http_access allow hrd
http_access allow mgr
http_access allow jaringan

http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access deny all
icp_access deny all
htcp_access deny all

http_port 3128 transparent
hierarchy_stoplist cgi_bin ?

cache_mem 8 MB
cache_dir ufs /var/spool/squid3 2000 16 256
cache_swap_loq 94
cache_swap_high 96
maximum_object_size 256 MB
minimum_object_size 4 KB
maximum_object_size_in_memory 128 KB
fqdncache_size 1024
cache_replacement_policy heap GDSF

access_log /var/log/squid3/access.log squid
cache_log /var/log/squid3/cache.log
cache_store_log /var/log/squid3/store.log
mime_table /usr/share/squid3/mime.conf
pid_filename /var/run/squid3.pid

acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440

visible_hostname sir_hendra
cache_mgr sir_hendra@telkom.net
error_directory /usr/share/squid3/errors/English
coredump_dir /var/spool/squid3

konfigurasi utk /etc/rc.local

iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -A PREROUTING -t nat -p tcp --dport 80 -j REDIRECT --to-port 3128
exit 0

kongigurasi di /etc/sysctl.conf

net.ipv4.ip_forward=1
net.ipv4.conf.default.forward=1

Yang menjadi masalah, semua user akan ke blok untuk access internet.
"ERROR
The requested URL colud not be retrived"

Sementara saya hanya ingin memblock user berdasarkan mac address yang saya buat di atas.
Tolong bantuan nya bro/sis semua nya. Mungkin ada konfigurasi saya yang salah sehingga squid nya tidak berjalan seperti yang di harapkan.
NB: Tampilan error terlampir


Salam

Return to “Ubuntu Server”

Who is online

Users browsing this forum: No registered users and 19 guests