SQUID 2.7 Stable9 + UBUNTU SERVER 11.04 BERMASALAH

Diskusi tentang Ubuntu Server baik webserver, database server, samba server dan service lainnya serta jaringan menggunakan Sistem Operasi Ubuntu.
User avatar
MANJAY
Posts: 6
Joined: 24 Jan 2013, 00:34
Location: langkat

SQUID 2.7 Stable9 + UBUNTU SERVER 11.04 BERMASALAH

Postby MANJAY » 24 Jan 2013, 00:56

Salam semua, mohon bantuan Bpk/Ibu/Sdra-i soalnya sudah 3 hari sy (gol newbi di ubuntu) coba install Ubuntu 11.04 + Squid 2.7 Stable 9, tapi hasilnya selalu seperti dibawah ini. Terima kasih atas bantuannya sebelumnya...
root@proxyku:~# squid -NDd1 &
[1] 1735
root@proxyku:~# 2013/01/24 00:28:16| parseConfigFile: squid.conf:89 unrecognized: 'delay'
2013/01/24 00:28:16| Starting Squid Cache version 2.7.STABLE9 for i686-pc-linux-gnu...
2013/01/24 00:28:16| Process ID 1735
2013/01/24 00:28:16| With 8192 file descriptors available
2013/01/24 00:28:16| Using epoll for the IO loop
2013/01/24 00:28:16| DNS Socket created at 0.0.0.0, port 37115, FD 6
2013/01/24 00:28:16| Adding nameserver 192.168.11.1 from squid.conf
2013/01/24 00:28:16| helperOpenServers: Starting 1 'storeurl.pl' processes
2013/01/24 00:28:16| logfileOpen: opening log /var/log/squid/access.log
2013/01/24 00:28:16| Swap maxSize 225280000 + 8192 KB, estimated 17329860 objects
2013/01/24 00:28:16| Target number of buckets: 866493
2013/01/24 00:28:16| Using 1048576 Store buckets
2013/01/24 00:28:16| Max Mem size: 8192 KB
2013/01/24 00:28:16| Max Swap size: 225280000 KB
2013/01/24 00:28:16| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2013/01/24 00:28:16| logfileOpen: opening log /dev/null
2013/01/24 00:28:16| Rebuilding storage in /cache (DIRTY)
2013/01/24 00:28:16| Rebuilding storage in /cache1 (DIRTY)
2013/01/24 00:28:16| Rebuilding storage in /cache2 (DIRTY)
2013/01/24 00:28:16| Rebuilding storage in /cache3 (DIRTY)
2013/01/24 00:28:16| Using Round Robin store dir selection
2013/01/24 00:28:16| Set Current Directory to /var/spool/squid/
2013/01/24 00:28:16| Loaded Icons.
2013/01/24 00:28:16| Accepting transparently proxied HTTP connections at 0.0.0.0, port 8080, FD 16.
2013/01/24 00:28:16| Accepting ICP messages at 0.0.0.0, port 3130, FD 17.
2013/01/24 00:28:16| Accepting HTCP messages on port 4827, FD 18.
2013/01/24 00:28:16| Accepting SNMP messages on port 3401, FD 19.
2013/01/24 00:28:16| WCCP Disabled.
2013/01/24 00:28:16| Ready to serve requests.
2013/01/24 00:28:16| WARNING: store_rewriter #1 (FD 7) exited
2013/01/24 00:28:16| Too few store_rewriter processes are running
FATAL: The store_rewriter helpers are crashing too rapidly, need help!
User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Re: SQUID 2.7 Stable9 + UBUNTU SERVER 11.04 BERMASALAH

Postby q_p » 24 Jan 2013, 06:41

MANJAY wrote:root@proxyku:~# 2013/01/24 00:28:16| parseConfigFile: squid.conf:89 unrecognized: 'delay'
lihat lagi squid.conf pada baris ke 89, opsi 'delay' tidak dikenali squid.
BTW, kenapa tdk pakai yang LTS saja Ubuntu-nya ?
User avatar
MANJAY
Posts: 6
Joined: 24 Jan 2013, 00:34
Location: langkat

Re: SQUID 2.7 Stable9 + UBUNTU SERVER 11.04 BERMASALAH

Postby MANJAY » 26 Jan 2013, 20:58

Terima kasih Mas, atas pencerahannya, tp setelah diperbaiki lagi hasilnya seperti ini :
root@proxyku:~# squid -NDd1 &
[1] 1515
root@proxyku:~# 2013/01/26 20:42:53| Starting Squid Cache version 2.7.STABLE9 for i686-pc-linux-gnu...
2013/01/26 20:42:53| Process ID 1515
2013/01/26 20:42:53| With 8192 file descriptors available
2013/01/26 20:42:53| Using epoll for the IO loop
2013/01/26 20:42:53| DNS Socket created at 0.0.0.0, port 59887, FD 6
2013/01/26 20:42:53| Adding nameserver 192.168.11.1 from squid.conf
2013/01/26 20:42:53| helperOpenServers: Starting 1 'storeurl.pl' processes
2013/01/26 20:42:53| logfileOpen: opening log /var/log/squid/access.log
2013/01/26 20:42:53| Swap maxSize 225280000 + 8192 KB, estimated 17329860 objects
2013/01/26 20:42:53| Target number of buckets: 866493
2013/01/26 20:42:53| Using 1048576 Store buckets
2013/01/26 20:42:53| Max Mem size: 8192 KB
2013/01/26 20:42:53| Max Swap size: 225280000 KB
2013/01/26 20:42:53| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2013/01/26 20:42:53| logfileOpen: opening log /dev/null
2013/01/26 20:42:53| Rebuilding storage in /cache (DIRTY)
2013/01/26 20:42:53| Rebuilding storage in /cache1 (DIRTY)
2013/01/26 20:42:53| Rebuilding storage in /cache2 (DIRTY)
2013/01/26 20:42:53| Rebuilding storage in /cache3 (DIRTY)
2013/01/26 20:42:53| Using Round Robin store dir selection
2013/01/26 20:42:53| Set Current Directory to /var/spool/squid/
2013/01/26 20:42:53| Loaded Icons.
2013/01/26 20:42:53| Accepting transparently proxied HTTP connections at 0.0.0.0, port 3128, FD 16.
2013/01/26 20:42:53| Accepting HTCP messages on port 4827, FD 17.
2013/01/26 20:42:53| Accepting SNMP messages on port 3401, FD 18.
2013/01/26 20:42:53| WCCP Disabled.
2013/01/26 20:42:53| Ready to serve requests.
2013/01/26 20:42:53| WARNING: store_rewriter #1 (FD 7) exited
2013/01/26 20:42:53| Too few store_rewriter processes are running
FATAL: The store_rewriter helpers are crashing too rapidly, need help!

Mohon sangat petunjuknya lagi Mas...

Trims
User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Re: SQUID 2.7 Stable9 + UBUNTU SERVER 11.04 BERMASALAH

Postby q_p » 26 Jan 2013, 21:59

2013/01/26 20:42:53| Too few store_rewriter processes are running
FATAL: The store_rewriter helpers are crashing too rapidly, need help
Coba anda hilangkan/jangan dipakai dulu opsi storeurl.pl lalu jalankan ulang perintah tsb.
User avatar
MANJAY
Posts: 6
Joined: 24 Jan 2013, 00:34
Location: langkat

Re: SQUID 2.7 Stable9 + UBUNTU SERVER 11.04 BERMASALAH

Postby MANJAY » 26 Jan 2013, 22:35

Mas, maksudnya dihapus ya storeurl.pl atau gimana?? Kalo saya hapus jadinya seperti ini :
root@proxyku:~# /etc/init.d/squid restart
* Restarting Squid HTTP proxy squid [ OK ]
root@proxyku:~# squid -NDd1 &
[1] 2499
root@proxyku:~# 2013/01/26 22:23:44| Starting Squid Cache version 2.7.STABLE9 for i686-pc-linux-gnu...
2013/01/26 22:23:44| Process ID 2499
2013/01/26 22:23:44| With 8192 file descriptors available
2013/01/26 22:23:44| Using epoll for the IO loop
2013/01/26 22:23:44| DNS Socket created at 0.0.0.0, port 33058, FD 6
2013/01/26 22:23:44| Adding nameserver 192.168.11.1 from squid.conf
2013/01/26 22:23:44| helperOpenServers: Starting 1 'storeurl.pl' processes
FATAL: storeurl.pl /etc/squid/storeurl.pl: (2) No such file or directory

Terima kasih penjelasannya, untuk menjelaskan keadaan saya lampirkan file squid.conf
Attachments
SQUID MANJAY.rar
(6.42 KiB) Downloaded 16 times
User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Re: SQUID 2.7 Stable9 + UBUNTU SERVER 11.04 BERMASALAH

Postby q_p » 26 Jan 2013, 22:51

Waduh, jangan dihapus file /etc/squid/storeurl.p tapi di squid.conf anda hilangkan atau di comment pada opsi storeurl_rewrite_program menjadi seperti ini =

Code: Select all

#storeurl_rewrite_program /etc/squid/storeurl.pl
User avatar
MANJAY
Posts: 6
Joined: 24 Jan 2013, 00:34
Location: langkat

Re: SQUID 2.7 Stable9 + UBUNTU SERVER 11.04 BERMASALAH

Postby MANJAY » 26 Jan 2013, 23:29

Trims,
Hasilnya seperti ini Mas :
Last login: Sat Jan 26 23:14:00 2013 from 192.168.70.99
root@proxyku:~# /etc/init.d/squid restart
* Restarting Squid HTTP proxy squid

* Waiting...
* ...
* ...
* ...
* ...
* ...

* ... [ OK ]
[ OK ]
root@proxyku:~# squid -NDd1 &
[1] 1154
root@proxyku:~# 2013/01/26 23:18:29| Squid is already running! Process ID 1127

Keaadaan diatas belum konek ke internet.


Sebagai tambahan informasi hasil squid.conf squidnya seperti ini jadinya :

#######################################################
## SQUID 2.7 - High Performance Configuration
## ====================================================
## ## Updated: 3.2011
#######################################################

##start of config
http_port 3128 transparent
server_http11 on
icp_port 0

# File Squid
pid_filename /var/run/squid.pid
coredump_dir /var/spool/squid/
error_directory /usr/share/squid/errors/English
icon_directory /usr/share/squid/icons
mime_table /usr/share/squid/mime.conf
visible_hostname proxy

# Log Squid
access_log /var/log/squid/access.log
cache_log /dev/null
cache_store_log /dev/null

# Beberapa log yg tidak signifikan karena opsi2-nya jarang digunakan.
log_fqdn off
log_icp_queries off
buffered_logs off
emulate_httpd_log off

ftp_list_width 32
ftp_passive on
ftp_sanitycheck on

acl localnet src 192.168.4.0/24

uri_whitespace strip

#DNS NAMESERVER
dns_nameservers 192.168.11.1

cache_mem 8 MB
maximum_object_size_in_memory 32 KB
memory_replacement_policy heap GDSF
cache_replacement_policy heap LFUDA

#cache_dir aufs /cache 220000 32 256 #untuk ubuntu 32 bit
cache_dir aufs /cache 55000 54 512
cache_dir aufs /cache1 55000 54 512
cache_dir aufs /cache2 55000 54 512
cache_dir aufs /cache3 55000 54 512

minimum_object_size 0 bytes
maximum_object_size 200 MB
offline_mode off
cache_swap_low 98
cache_swap_high 99

# Setup some default acls
acl all src 0.0.0.0/0
acl localhost src 127.0.0.1/32
acl safeports port 21 70 80 81 210 280 443 488 563 591 631 777 901 3128 1025-65535
acl sslports port 443 563 81
acl manager proto cache_object
acl purge method PURGE
acl connect method CONNECT
acl dynamic urlpath_regex cgi-bin \?
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !safeports
http_access deny CONNECT !sslports
http_access allow localhost

# Allow local network(s) on interface(s)
http_access allow localnet
http_access deny all
#http_gzip on
#http_gzip_types text/plain,text/html,text/xml,text/css,application/xml,application/xhtml+xml,application/rss+xml,application/javascript,application/x-javascript

# TAG: ZPH
tcp_outgoing_tos 0x30 localnet
zph_mode tos
zph_local 0x30
zph_parent 0
zph_option 136

delay_pools 0

acl admin src 192.168.3.123/32
acl management src 192.168.3.123/32

acl download url_regex -i \.avi$ \.mpg$ \.mpeg$ \.rm$ \.iso$ \.wav$ \.mov$ \.dat$ \.mpe$ \.mid$ \.flv$ \.3gp$
acl download url_regex -i ftp \.exe$ \.mp3$ \.mp4$ \.tar.gz$ \.gz$ \.tar.bz2$ \.rpm$ \.zip$ \.rar$
acl download url_regex -i \.midi$ \.rmi$ \.wma$ \.wmv$ \.ogg$ \.ogm$ \.m1v$ \.mp2$ \.mpa$ \.wax$
acl download url_regex -i \.m3u$ \.asx$ \.wpl$ \.wmx$ \.dvr-ms$ \.snd$ \.au$ \.aif$ \.asf$ \.m2v$
acl download url_regex -i \.m2p$ \.ts$ \.tp$ \.trp$ \.div$ \.divx$ \.mod$ \.vob$ \.aob$ \.dts$
acl download url_regex -i \.ac3$ \.cda$ \.vro$ \.deb$ \.mkv$

delay_pools 2

delay_class 1 1
delay_parameters 1 -1/-1
delay_access 1 allow admin
delay_access 1 allow admin management
delay_access 1 deny all

delay_class 2 1
delay_parameters 2 -1/2048000 15000/2049000 #2 30000/512000
#delay_parameters 2 30000/1000000
delay_access 2 allow download
delay_access 2 deny all

#cache content
acl store_rewrite_list urlpath_regex \/(get_video|videoplayback\?id|videoplayback.*id) \.(jp(e?g|e|2)|gif|png|tiff?|bmp|ico|flv|wmv|3gp|mp(4|3)|exe|msi|zip|on2|mar|swf)\?
acl store_rewrite_list_domain url_regex ^http:\/\/([a-zA-Z-]+[0-9-]+)\.[A-Za-z]*\.[A-Za-z]*
acl store_rewrite_list_domain url_regex (([a-z]{1,2}[0-9]{1,3})|([0-9]{1,3}[a-z]{1,2}))\.[a-z]*[0-9]?\.[a-z]{3}
acl store_rewrite_list_path urlpath_regex \.(jp(e?g|e|2)|gif|png|tiff?|bmp|ico|flv|avc|zip|mp3|3gp|rar|on2|mar|exe)$
acl store_rewrite_list_domain_CDN url_regex (khm|mt)[0-9]?.google.co(m|\.id) streamate.doublepimp.com.*\.js\? photos-[a-z].ak.fbcdn.net \.rapidshare\.com.*\/[0-9]*\/.*\/[^\/]* ^http:\/\/(www\.ziddu\.com.*\.[^\/]{3,4})\/(.*) \.doubleclick\.net.* yieldmanager cpxinteractive ^http:\/\/[.a-z0-9]*\.photobucket\.com.*\.[a-z]{3}$ quantserve\.com

acl dontrewrite url_regex yimg.com redbot\.org (get_video|videoplayback\?id|videoplayback.*id).*begin\=[1-9][0-9]* \.php\?
acl getmethod method GET

#snmp
snmp_port 3401
acl snmppublic snmp_community public
snmp_access allow snmppublic all

storeurl_rewrite_children 1
storeurl_rewrite_concurrency 99

storeurl_access deny dontrewrite
storeurl_access deny !getmethod
storeurl_access allow store_rewrite_list_domain_CDN
storeurl_access allow store_rewrite_list
storeurl_access allow store_rewrite_list_domain store_rewrite_list_path
storeurl_access deny all

hierarchy_stoplist (ini|ui|lst|inf||mh-|sc-)$ (afs.dat|update.txt|vdf.info.gz|captcha|reset.css|gamenotice|ickernew.css)
acl QUERY urlpath_regex -i \.(ini|ui|lst|inf|mh-|sc-)$
acl QUERY urlpath_regex -i (afs.dat|captcha|reset.css|update.txt|gamenotice|vdf.info.gz)
cache deny QUERY

# 1 year = 525600 mins, 1 month = 43800 mins

refresh_pattern (get_video|videoplayback|videodownload|\.flv).*(begin|start)\=[1-9][0-9]* 0 0% 0
refresh_pattern imeem.*\.flv 0 0% 0 override-lastmod override-expire
refresh_pattern ^ftp: 40320 20% 40320 override-expire reload-into-ims store-stale
refresh_pattern ^gopher: 1440 0% 1440

refresh_pattern ^.*(streamate.doublepimp.com.*\.js\?|utm\.gif|ads\?|rmxads\.com|ad\.z5x\.net|bh\.contextweb\.com|bstats\.adbrite\.com|a1\.interclick\.com|ad\.trafficmp\.com|ads\.cubics\.com|ad\.xtendmedia\.com|\.googlesyndication\.com|advertising\.com|yieldmanager|game-advertising\.com|pixel\.quantserve\.com|adperium\.com|doubleclick\.net|adserving\.cpxinteractive\.com|syndication\.com|media.fastclick.net).* 5259487 20% 5259487 ignore-no-cache ignore-no-store ignore-private override-expire ignore-reload ignore-auth ignore-must-revalidate store-stale negative-ttl=40320 max-stale=1440
refresh_pattern .fbcdn.net.*\.(jpg|gif|png) 5259487 999999% 5259487 ignore-no-cache override-expire ignore-reload store-stale negative-ttl=0
refresh_pattern ((facebook.com)|(85.131.151.39)).*\.(png|gif) 5259487 999999% 5259487 override-expire ignore-reload store-stale
refresh_pattern ^http://v\.okezone\.com/get_video\/([a-zA-Z0-9]) 129600 100% 129600 ignore-no-cache ignore-no-store reload-into-ims override-expire ignore-must-revalidate store-stale

#antivirus
refresh_pattern avast.com.*\.vpx 40320 50% 161280 store-stale reload-into-ims
refresh_pattern (avgate|avira).*\.(idx|gz)$ 1440 90% 1440 ignore-reload ignore-no-cache ignore-no-store store-stale ignore-must-revalidate
refresh_pattern kaspersky.*\.avc$ 5259487 999999% 5259487 ignore-reload store-stale
refresh_pattern kaspersky 1440 50% 161280 ignore-no-cache store-stale
refresh_pattern mbamupdates.com.*\.ref 1440 50% 161280 reload-into-ims store-stale

#other sites
refresh_pattern \.rapidshare.*\/[0-9]*\/.*\/[^\/]* 161280 90% 161280 ignore-reload store-stale
refresh_pattern (get_video\?|videoplayback\?|videodownload\?|\.flv?) 5259487 99999999% 5259487 override-expire ignore-reload store-stale ignore-private negative-ttl=0
refresh_pattern \.(ico|video-stats) 5259487 999999% 5259487 override-expire ignore-reload ignore-no-cache ignore-no-store ignore-private ignore-auth override-lastmod ignore-must-revalidate negative-ttl=10080 store-stale
refresh_pattern \.etology\? 5259487 999999% 5259487 override-expire ignore-reload ignore-no-cache store-stale
refresh_pattern galleries\.video(\?|sz) 5259487 999999% 5259487 override-expire ignore-reload ignore-no-cache store-stale
refresh_pattern brazzers\? 5259487 999999% 5259487 override-expire ignore-reload ignore-no-cache store-stale
refresh_pattern \.adtology\? 5259487 999999% 5259487 override-expire ignore-reload ignore-no-cache store-stale
refresh_pattern ^.*safebrowsing.*google 5259487 999999% 5259487 override-expire ignore-reload ignore-no-cache ignore-no-store ignore-private ignore-auth ignore-must-revalidate negative-ttl=10080 store-stale
refresh_pattern ^http://((cbk|mt|khm|mlt)[0-9]?)\.google\.co(m|\.id) 5259487 999999% 5259487 override-expire ignore-reload store-stale ignore-private negative-ttl=10080
refresh_pattern ytimg\.com.*\.(jpg|png) 5259487 999999% 5259487 override-expire ignore-reload store-stale
refresh_pattern images\.friendster\.com.*\.(png|gif) 5259487 999999% 5259487 override-expire ignore-reload store-stale
refresh_pattern garena\.com 5259487 999999% 5259487 override-expire reload-into-ims store-stale
refresh_pattern photobucket.*\.(jp(e?g|e|2)|tiff?|bmp|gif|png) 5259487 999999% 5259487 override-expire ignore-reload store-stale
refresh_pattern vid\.akm\.dailymotion\.com.*\.on2\? 5259487 999999% 5259487 ignore-no-cache override-expire override-lastmod store-stale
refresh_pattern ^http:\/\/images|openx|pics|thumbs[0-9]\. 5259487 999999% 5259487 ignore-no-cache ignore-no-store ignore-reload override-expire store-stale
refresh_pattern ^http:\/\/www.onemanga.com.*\/ 5259487 999999% 5259487 reload-into-ims override-expire store-stale
refresh_pattern mediafire.com\/images.*\.(jp(e?g|e|2)|tiff?|bmp|gif|png) 5259487 999999% 5259487 reload-into-ims override-expire ignore-private store-stale

refresh_pattern \.(jp(e?g|e|2)|tiff?|bmp|gif|png) 5259487 999999% 5259487 ignore-no-cache ignore-no-store reload-into-ims override-expire ignore-must-revalidate store-stale
refresh_pattern \.(z(ip|[0-9]{2})|r(ar|[0-9]{2})|jar|bz2|gz|tar|rpm|vpu) 5259487 100% 5259487 override-expire reload-into-ims
refresh_pattern \.(mp3|wav|og(g|a)|flac|midi?|rm|aac|wma|mka|ape) 5259487 100% 5259487 override-expire reload-into-ims ignore-reload
refresh_pattern \.(exe|msi|dmg|bin|xpi|iso|swf|mar|psf|cab) 5259487 999999%% 5259487 override-expire reload-into-ims ignore-no-cache ignore-must-revalidate
refresh_pattern \.(mpeg|ra?m|avi|mp(g|e|4)|mov|divx|asf|wmv|m\dv|rv|vob|asx|ogm|flv|3gp|on2) 5259487 100% 5259487 override-expire reload-into-ims
refresh_pattern -i (cgi-bin) 0 0% 0
refresh_pattern \.(php|jsp|cgi|asx)\? 0 0% 0
refresh_pattern . 0 50% 161280 store-stale

header_access X-Forwarded-For deny all

#storeurl_rewrite_program /etc/squid/storeurl.pl

#extra tuning configuration
header_access Accept-Encoding deny all
client_persistent_connections off
server_persistent_connections on
half_closed_clients off
strip_query_terms off
quick_abort_min 0 KB
quick_abort_max 0 KB
quick_abort_pct 100
vary_ignore_expire on
reload_into_ims on
pipeline_prefetch on
range_offset_limit 512 KB
read_timeout 30 minute
negative_ttl 30 second
positive_dns_ttl 6 hour
negative_dns_ttl 60 second
pconn_timeout 15 second
request_timeout 1 minute
store_avg_object_size 13 KB
log_icp_queries off
ipcache_size 16384
ipcache_low 98
ipcache_high 99
log_fqdn off
fqdncache_size 16384
memory_pools off
forwarded_for on
logfile_rotate 3
store_dir_select_algorithm round-robin
cache_effective_user proxy
cache_effective_group proxy
max_filedescriptors 8192

##end of config



Mohon pentujuk Mas, Squid diatas saya buat menjadi transparent proxy pake mikrotik..
User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Re: SQUID 2.7 Stable9 + UBUNTU SERVER 11.04 BERMASALAH

Postby q_p » 26 Jan 2013, 23:31

Ber-arti masalah-nya ada di file /etc/squid/storeurl.pl
User avatar
MANJAY
Posts: 6
Joined: 24 Jan 2013, 00:34
Location: langkat

Re: SQUID 2.7 Stable9 + UBUNTU SERVER 11.04 BERMASALAH

Postby MANJAY » 27 Jan 2013, 00:00

Terima kasih ilmunya Mas,
Apa kira-kira solusinya Mas?

:grin: :linux:
User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Re: SQUID 2.7 Stable9 + UBUNTU SERVER 11.04 BERMASALAH

Postby q_p » 27 Jan 2013, 00:23

Betulkan dulu file /etc/squid/storeurl.pl dan di sini banyak contoh storeurl.pl. Coba salah satu yang menurut anda cocok dan jangan lupa rubah permission dan owner -nya file tsb agar squid bisa/punya hak access ke file tsb.
User avatar
MANJAY
Posts: 6
Joined: 24 Jan 2013, 00:34
Location: langkat

Re: SQUID 2.7 Stable9 + UBUNTU SERVER 11.04 BERMASALAH

Postby MANJAY » 27 Jan 2013, 01:28

Makasih Mas.
Sukses selalu..
User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Re: SQUID 2.7 Stable9 + UBUNTU SERVER 11.04 BERMASALAH

Postby q_p » 27 Jan 2013, 01:32

sama2 mas :D
User avatar
Joseph
Posts: 2
Joined: 04 Jan 2013, 00:18
Location: Palembang

Re: SQUID 2.7 Stable9 + UBUNTU SERVER 11.04 BERMASALAH

Postby Joseph » 28 Jan 2013, 05:06

Ada petunjuk ga yah mas dan mba, buat konfigurasi squid transparent na ? Ketika saya konfigurasi iptables na malah semuanya gak ke blok, trus saya rubah lagi, eh malah semuanya kagak bisa browsing, kira" ada referensi gak tentang permasalahan yg saya hadapi. Terimkasih sebelumnya..


root@ubuntu:/home/ubuntuadmin# tail -f /var/log/squid/access.log
1359323423.355 0 192.168.10.2 TCP_DENIED/403 1474 GET http://www.google.com/url? - NONE/- text/html
1359323423.514 0 192.168.10.2 TCP_DENIED/403 1474 GET http://www.google.com/url? - NONE/- text/html
1359323423.707 0 192.168.10.2 TCP_DENIED/403 1474 GET http://www.google.com/url? - NONE/- text/html
1359323423.885 0 192.168.10.2 TCP_DENIED/403 1474 GET http://www.google.com/url? - NONE/- text/html
1359323424.105 0 192.168.10.2 TCP_DENIED/403 1474 GET http://www.google.com/url? - NONE/- text/html
1359323424.320 0 192.168.10.2 TCP_DENIED/403 1474 GET http://www.google.com/url? - NONE/- text/html
1359323424.483 0 192.168.10.2 TCP_DENIED/403 1474 GET http://www.google.com/url? - NONE/- text/html
1359323424.674 0 192.168.10.2 TCP_DENIED/403 1474 GET http://www.google.com/url? - NONE/- text/html
1359323424.865 0 192.168.10.2 TCP_DENIED/403 1474 GET http://www.google.com/url? - NONE/- text/html
1359323432.515 0 192.168.10.2 TCP_DENIED/403 1474 GET http://www.google.com/url? - NONE/- text/html
root@ubuntu:/home/ubuntuadmin# tail -f /var/log/squid/access.log
1359323423.355 0 192.168.10.2 TCP_DENIED/403 1474 GET http://www.google.com/url? - NONE/- text/html
1359323423.514 0 192.168.10.2 TCP_DENIED/403 1474 GET http://www.google.com/url? - NONE/- text/html
1359323423.707 0 192.168.10.2 TCP_DENIED/403 1474 GET http://www.google.com/url? - NONE/- text/html
1359323423.885 0 192.168.10.2 TCP_DENIED/403 1474 GET http://www.google.com/url? - NONE/- text/html
1359323424.105 0 192.168.10.2 TCP_DENIED/403 1474 GET http://www.google.com/url? - NONE/- text/html
1359323424.320 0 192.168.10.2 TCP_DENIED/403 1474 GET http://www.google.com/url? - NONE/- text/html
1359323424.483 0 192.168.10.2 TCP_DENIED/403 1474 GET http://www.google.com/url? - NONE/- text/html
1359323424.674 0 192.168.10.2 TCP_DENIED/403 1474 GET http://www.google.com/url? - NONE/- text/html
1359323424.865 0 192.168.10.2 TCP_DENIED/403 1474 GET http://www.google.com/url? - NONE/- text/html
1359323432.515 0 192.168.10.2 TCP_DENIED/403 1474 GET http://www.google.com/url? - NONE/- text/html
root@ubuntu:/home/ubuntuadmin# tail -f /var/log/squid/access.log
1359323423.355 0 192.168.10.2 TCP_DENIED/403 1474 GET http://www.google.com/url? - NONE/- text/html
1359323423.514 0 192.168.10.2 TCP_DENIED/403 1474 GET http://www.google.com/url? - NONE/- text/html
1359323423.707 0 192.168.10.2 TCP_DENIED/403 1474 GET http://www.google.com/url? - NONE/- text/html
1359323423.885 0 192.168.10.2 TCP_DENIED/403 1474 GET http://www.google.com/url? - NONE/- text/html
1359323424.105 0 192.168.10.2 TCP_DENIED/403 1474 GET http://www.google.com/url? - NONE/- text/html
1359323424.320 0 192.168.10.2 TCP_DENIED/403 1474 GET http://www.google.com/url? - NONE/- text/html
1359323424.483 0 192.168.10.2 TCP_DENIED/403 1474 GET http://www.google.com/url? - NONE/- text/html
1359323424.674 0 192.168.10.2 TCP_DENIED/403 1474 GET http://www.google.com/url? - NONE/- text/html
1359323424.865 0 192.168.10.2 TCP_DENIED/403 1474 GET http://www.google.com/url? - NONE/- text/html
1359323432.515 0 192.168.10.2 TCP_DENIED/403 1474 GET http://www.google.com/url? - NONE/- text/html
root@ubuntu:/home/ubuntuadmin# tail -f /var/log/squid/access.log
1359323423.355 0 192.168.10.2 TCP_DENIED/403 1474 GET http://www.google.com/url? - NONE/- text/html
1359323423.514 0 192.168.10.2 TCP_DENIED/403 1474 GET http://www.google.com/url? - NONE/- text/html
1359323423.707 0 192.168.10.2 TCP_DENIED/403 1474 GET http://www.google.com/url? - NONE/- text/html
1359323423.885 0 192.168.10.2 TCP_DENIED/403 1474 GET http://www.google.com/url? - NONE/- text/html
1359323424.105 0 192.168.10.2 TCP_DENIED/403 1474 GET http://www.google.com/url? - NONE/- text/html
1359323424.320 0 192.168.10.2 TCP_DENIED/403 1474 GET http://www.google.com/url? - NONE/- text/html
1359323424.483 0 192.168.10.2 TCP_DENIED/403 1474 GET http://www.google.com/url? - NONE/- text/html
1359323424.674 0 192.168.10.2 TCP_DENIED/403 1474 GET http://www.google.com/url? - NONE/- text/html
1359323424.865 0 192.168.10.2 TCP_DENIED/403 1474 GET http://www.google.com/url? - NONE/- text/html
1359323432.515 0 192.168.10.2 TCP_DENIED/403 1474 GET http://www.google.com/url? - NONE/- text/html
User avatar
sayed
Posts: 137
Joined: 21 Jul 2011, 16:19
Location: Lhokseumawe, Aceh
Contact:

Re: SQUID 2.7 Stable9 + UBUNTU SERVER 11.04 BERMASALAH

Postby sayed » 01 Feb 2013, 16:33

mas
saya kok masi ga bisa ya TCP_HIT nya
setiap refresh kok tetep TCP_MISS
User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Re: SQUID 2.7 Stable9 + UBUNTU SERVER 11.04 BERMASALAH

Postby q_p » 01 Feb 2013, 22:11

@Joseph:
iptables dan squid.conf di posting di sini mas :)
@sayed :
Coba anda gunakan konfigurasi default dulu, setelah jalan (HIT) bisa anda rubah menjadi lebih rumit.
User avatar
beling
Posts: 15
Joined: 16 Feb 2013, 20:14
Location: gresik
Contact:

Re: SQUID 2.7 Stable9 + UBUNTU SERVER 11.04 BERMASALAH

Postby beling » 16 Feb 2013, 20:23

Salam buat semua member FUI,
saya baru saja instal ubuntu server 11.10 dan squid 2.7 stable 9, setelah saya cek muncul error seperti ini :
Tampilkan
root@inetv1:~# squid -k check
2013/02/16 20:18:00| parse_refreshpattern: Unknown option 'imeem.*\.flv': store- stale
2013/02/16 20:18:00| parse_refreshpattern: Unknown option '(get_video\?|videopla yback\?|videodownload\?|\.flv?)': ignore-no-store
2013/02/16 20:18:00| parse_refreshpattern: Unknown option '(get_video\?|videopla yback\?|videodownload\?|\.flv?)': store-stale
2013/02/16 20:18:00| parse_refreshpattern: Unknown option '(get_video\?|videopla yback\?|videodownload\?|watch\?\.flv?|.vid\?)': ignore-must-revalidate
2013/02/16 20:18:00| parse_refreshpattern: Unknown option '(get_video\?|videopla yback\?|videodownload\?|watch\?\.flv?|.vid\?)': ignore-no-store
2013/02/16 20:18:00| parse_refreshpattern: Unknown option '(get_video\?|videopla yback\?|videodownload\?|watch\?\.flv?|.vid\?)': store-stale
2013/02/16 20:18:00| parse_refreshpattern: Unknown option '(get_video\?|videopla yback\?id|videoplayback.*id||videodownload\?|\.flv?)': ignore-no-store
2013/02/16 20:18:00| parse_refreshpattern: Unknown option '(get_video\?|videopla yback\?id|videoplayback.*id||videodownload\?|\.flv?)': store-stale
2013/02/16 20:18:00| parse_refreshpattern: Unknown option 'vid\.akm\.dailymotion \.com.*\.on2\?': store-stale

dst ...


kira2 kenapa ya? mohon bantuannya ...
User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Re: SQUID 2.7 Stable9 + UBUNTU SERVER 11.04 BERMASALAH

Postby q_p » 16 Feb 2013, 21:52

Option = store- stale, ignore-no-store dan ignore-must-revalidate didalam file /etc/squid/squid.conf pada bagian reffresh_pattern, tdk dikenali oleh squid anda. Biasanya karena salah penulisan mas.
User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Re: SQUID 2.7 Stable9 + UBUNTU SERVER 11.04 BERMASALAH

Postby q_p » 16 Feb 2013, 22:27

Tambahan:
Jika anda yakin penulisan sudah benar, kemungkinan anda harus melakukan compile dan patching agar squid-2.7.9 support dynamic-contents. file yang anda butuhkan untuk patching =
1. aggressive.patch
2. ignore-no-store_new.patch
3. ignore_must_revalidate.patch
3. loop.patch

Return to “Ubuntu Server”

Who is online

Users browsing this forum: No registered users and 3 guests