pfSense Support Subscription

Author Topic: [SHARE] Update SQUID-2.6.xx/2.7.7 to LUSCA_HEAD  (Read 11089 times)

0 Members and 1 Guest are viewing this topic.

Offline grage95

  • Full Member
  • ***
  • Posts: 226
    • View Profile
[SHARE] Update SQUID-2.6.xx/2.7.7 to LUSCA_HEAD
« on: September 19, 2009, 04:40:15 am »
update squid-2.6.xx (squid-2.6.21_10/squid-2.6.21/squid-2.6.18/squid-2.7.7)

-fix delay_pool

type to pfsense shell / putty shell
for update to lusca :
Quote
cd /tmp/ && fetch http://squid-proxy-pkg.googlecode.com/files/up2lusca.tar.bz2  && tar -jxvf up2lusca.tar.bz2 && chmod +x up2lusca.sh && ./up2lusca.sh

this package build with delay_pool, arp acl, pf transparenet etc ...

Quote
Squid Cache: Version LUSCA_HEAD
configure options:  '--bindir=/usr/local/sbin' '--sbindir=/usr/local/sbin' '--datadir=/usr/local/etc/squid' '--libexecdir=/usr/local/libexec/squid' '--localstatedir=/usr/local/squid' '--sysconfdir=/usr/local/etc/squid' '--enable-removal-policies=lru heap' '--disable-linux-netfilter' '--disable-linux-tproxy' '--disable-epoll' '--enable-auth=basic ntlm digest' '--enable-basic-auth-helpers=DB NCSA PAM MSNT SMB LDAP' '--enable-digest-auth-helpers=password ldap' '--enable-external-acl-helpers=ip_user session unix_group wbinfo_group ldap_group' '--enable-ntlm-auth-helpers=SMB' '--enable-negotiate-auth-helpers=squid_kerb_auth' '--with-pthreads' '--enable-storeio=aufs null coss' '--enable-delay-pools' '--enable-snmp' '--enable-htcp' '--enable-forw-via-db' '--enable-cache-digests' '--disable-wccp' '--enable-referer-log' '--enable-arp-acl' '--enable-pf-transparent' '--enable-follow-x-forwarded-for' '--with-large-files' '--enable-large-cache-files' '--enable-err-languages=Armenian Azerbaijani Bulgarian Catalan Czech Danish  Dutch English Estonian Finnish French German Greek  Hebrew Hungarian Italian Japanese Korean Lithuanian  Polish Portuguese Romanian Russian-1251 Russian-koi8-r  Serbian Simplify_Chinese Slovak Spanish Swedish  Traditional_Chinese Turkish' '--enable-default-err-language=English' '--prefix=/usr/local' '--mandir=/usr/local/man' '--infodir=/usr/local/info/' '--build=i386-portbld-freebsd7.2' 'build_alias=i386-portbld-freebsd7.2' 'CC=/usr/local/libexec/ccache/world-cc' 'CFLAGS=-O2 -pipe -funroll-loops -ffast-math -I/usr/local/include  -DLDAP_DEPRECATED -fno-strict-aliasing' 'LDFLAGS= -L/usr/local/lib' 'CPPFLAGS='

cheer ..
« Last Edit: December 30, 2009, 12:01:56 am by grage95 »

Offline keeper

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: [SHARE] Update SQUID-2.6.xx to LUSCA_HEAD / CACHEBOY
« Reply #1 on: September 19, 2009, 06:56:41 am »
thanks sir   :) :) :) :)

Offline serangku

  • Sr. Member
  • ****
  • Posts: 474
    • View Profile
Re: [SHARE] Update SQUID-2.6.xx to LUSCA_HEAD / CACHEBOY
« Reply #2 on: September 19, 2009, 11:20:25 pm »
well done om @grage95 ...  ;)
is it compatible with default squid pfsense gui ?

go ... go ...

Offline grage95

  • Full Member
  • ***
  • Posts: 226
    • View Profile
Re: [SHARE] Update SQUID-2.6.xx to LUSCA_HEAD / CACHEBOY
« Reply #3 on: September 20, 2009, 11:16:39 pm »
well done om @grage95 ...  ;)
is it compatible with default squid pfsense gui ?

go ... go ...
Yes offcourse, compatible with squid pfsense webgui versi squid-2.6.xx
remember :update only work with squid-2.xx. NOT SQUID 3

Offline serangku

  • Sr. Member
  • ****
  • Posts: 474
    • View Profile
Re: [SHARE] Update SQUID-2.6.xx to LUSCA_HEAD / CACHEBOY
« Reply #4 on: October 10, 2009, 12:16:54 pm »
report ...
i have try update with that link for trial machine
with 1.2.3 rc3, squid 2.6.21

there's a little error ...
* pkg_add: warning: package 'lusca-1.4_2' requires 'perl-5.8.9_3', but 'perl-5.8.8_1' is installed
* bungled .... http_access allow localnet

"Warning : pls  do not use the standard webgui port (80), use port 81/443 / whatever,   
because this Lusca/Cacheboy  is using port 80"
that means for proxy port or what ... ?

thanks for advice ....

Offline grage95

  • Full Member
  • ***
  • Posts: 226
    • View Profile
Re: [SHARE] Update SQUID-2.6.xx to LUSCA_HEAD / CACHEBOY
« Reply #5 on: October 12, 2009, 02:44:32 am »
report ...
i have try update with that link for trial machine
with 1.2.3 rc3, squid 2.6.21

there's a little error ...
* pkg_add: warning: package 'lusca-1.4_2' requires 'perl-5.8.9_3', but 'perl-5.8.8_1' is installed
* bungled .... http_access allow localnet

"Warning : pls  do not use the standard webgui port (80), use port 81/443 / whatever,   
because this Lusca/Cacheboy  is using port 80"
that means for proxy port or what ... ?

thanks for advice ....
* bungled .... http_access allow localnet

are u have finish configure with web gui ???:)
loot at this !!!



after finish configure with webgui, then  update to lusca /cachboy



Offline ipoelnet

  • Jr. Member
  • **
  • Posts: 91
  • http://ipoelnet.blogspot.com
    • View Profile
    • http://ipoelnet.blogspot.com
Re: [SHARE] Update SQUID-2.6.xx to LUSCA_HEAD / CACHEBOY
« Reply #6 on: November 01, 2009, 06:50:37 am »
Bos, Acl untuk ARP kok g' bisa, cara merecompile agar dukung ARP piye? maap nubie.
Iso cak, Asal sesuai aturan | Belajarlah seperti orang bodoh

Offline grage95

  • Full Member
  • ***
  • Posts: 226
    • View Profile
Re: [SHARE] Update SQUID-2.6.xx to LUSCA_HEAD / CACHEBOY
« Reply #7 on: November 04, 2009, 01:18:18 pm »
compile with ports on freebsd, and add line to Makefile on configure option

--enable-arp-acl

and then make clean && make && make package

Offline jigpe

  • Sr. Member
  • ****
  • Posts: 371
    • View Profile
Re: [SHARE] Update SQUID-2.6.xx to LUSCA_HEAD / CACHEBOY
« Reply #8 on: November 05, 2009, 01:42:45 am »
@grage95:

Its not 192.168.1.0/24? Its not working on 192.168.0.0/24 subnet :( Im using 1.2.2... Thanks

Offline _igor_

  • Hero Member
  • *****
  • Posts: 602
    • View Profile
Re: [SHARE] Update SQUID-2.6.xx to LUSCA_HEAD / CACHEBOY
« Reply #9 on: November 06, 2009, 09:03:54 am »
I'm a bit confused.

you say
Quote
for update to cacheboy :
cd /tmp/ && fetch http://shakau.googlepages.com/up2lusca.tar.bz2  && tar -jxvf up2lusca.tar.bz2 && chmod +x up2lusca.sh && ./up2lusca.sh

for update to lusca:
cd /tmp/ && fetch http://shakau.googlepages.com/up2cacheboy.tar.bz2  && tar -jxvf up2cacheboy.tar.bz2 && chmod +x up2cacheboy.sh && ./up2cacheboy.sh

its vice-versa? Do I have to execute both scripts? Or only one?
I did an installation to cacheboy like said here: http://forum.pfsense.org/index.php/topic,16569.0.html.
Its dying all time, so want to give a try to this update...

Thanks for any help!

Found it out. Now its running! Fine!
« Last Edit: November 06, 2009, 10:56:34 am by _igor_ »

Offline grage95

  • Full Member
  • ***
  • Posts: 226
    • View Profile
Re: [SHARE] Update SQUID-2.6.xx to LUSCA_HEAD / CACHEBOY
« Reply #10 on: November 07, 2009, 02:37:46 pm »
@grage95:

Its not 192.168.1.0/24? Its not working on 192.168.0.0/24 subnet :( Im using 1.2.2... Thanks

Depend on your network,
thats is only sample :)

its your network 192.168.1.0/24, place 192.168.1.0/24 on allow subnet

Offline grage95

  • Full Member
  • ***
  • Posts: 226
    • View Profile
Re: [SHARE] Update SQUID-2.6.xx to LUSCA_HEAD / CACHEBOY
« Reply #11 on: November 07, 2009, 05:21:54 pm »
I'm a bit confused.

you say
Quote
for update to cacheboy :
cd /tmp/ && fetch http://shakau.googlepages.com/up2lusca.tar.bz2  && tar -jxvf up2lusca.tar.bz2 && chmod +x up2lusca.sh && ./up2lusca.sh

for update to lusca:
cd /tmp/ && fetch http://shakau.googlepages.com/up2cacheboy.tar.bz2  && tar -jxvf up2cacheboy.tar.bz2 && chmod +x up2cacheboy.sh && ./up2cacheboy.sh

its vice-versa? Do I have to execute both scripts? Or only one?
I did an installation to cacheboy like said here: http://forum.pfsense.org/index.php/topic,16569.0.html.
Its dying all time, so want to give a try to this update...

Thanks for any help!

Found it out. Now its running! Fine!
just info :
for only update squid to lusca (not add tunning option on config squid.inc)

try this
Code: [Select]
pkg_delete squid\*
pkg_add -rv http://shakau.googlepages.com/full-lusca-1.4.tbz
rehash

restart squid services

NOTE: LUSCA / CACHE BOY NOT SUPPORT Hard disk cache system  DISKD & UFS, only support AUFS & COSS
for change:  edit & save  webgui Proxy server: Cache management >> Hard disk cache system >> aufs
for detail change log :
http://code.google.com/p/lusca-cache/wiki/LuscaChangeLog

Offline biatche

  • Jr. Member
  • **
  • Posts: 75
    • View Profile
Re: [SHARE] Update SQUID-2.6.xx to LUSCA_HEAD / CACHEBOY
« Reply #12 on: December 21, 2009, 03:38:17 pm »
What's the difference between lusca and cacheboy?

Also

Quote
for update to cacheboy :
cd /tmp/ && fetch http://shakau.googlepages.com/up2lusca.tar.bz2  && tar -jxvf up2lusca.tar.bz2 && chmod +x up2lusca.sh && ./up2lusca.sh

for update to lusca:
cd /tmp/ && fetch http://shakau.googlepages.com/up2cacheboy.tar.bz2  && tar -jxvf up2cacheboy.tar.bz2 && chmod +x up2cacheboy.sh && ./up2cacheboy.sh

is this right? or are the links wrong....

cacheboy if im not wrong supports youtube video caching right? is it branched off lusca code?

I'm a little confused...


i ran the update2lusca line, and got this.. hmm.. i tried extracting the file as well in windows, error as well. weird
Code: [Select]
squid2lusca.tar.bz2                           100% of  570 kB   19 kBps 00m00s
tar: Premature end of bzip2 compressed data: Input/output errorPremature end of bzip2 compressed data: Input/output error
tar: Error exit delayed from previous errors.

While not knowing if its lusca or cacheboy that I want, and unable to install lusca due to the above, I went on to test cacheboy, which installed just fine. what actually is it must I do to get youtube caching to work.

What I did was, i opened up a youtube video in firefox, then opened the same video in internet explorer and chrome for testing.... didn't seem to load instantly, infact, by looking at traffic graph.. i don't think it was playing from cache. (tested transparent + non-transparent mode)

Lastly, I don't think my transparent mode's working. Anybody can help me debug this?

Quote
# cat /tmp/rules.debug | grep 80
rdr on nfe0 proto tcp from any to any port 21 -> 127.0.0.1 port 8021
no rdr on nfe0 proto tcp from any to { 192.168.0.0/16, 172.16.0.0/12, 10.0.0.0/8 } port 80
rdr on nfe0 proto tcp from any to !(nfe0) port 80 -> nfe0:0 port 80
pass in quick on nfe0 proto tcp from any to !(nfe0) port 80 flags S/SA keep state
pass in quick on nfe0 inet proto tcp from any to $loopback port 8021 keep state label "FTP PROXY: Allow traffic to localhost"
« Last Edit: December 21, 2009, 03:55:30 pm by biatche »

Offline j0ris

  • Jr. Member
  • **
  • Posts: 25
    • View Profile
Re: [SHARE] Update SQUID-2.6.xx to LUSCA_HEAD / CACHEBOY
« Reply #13 on: December 21, 2009, 04:33:19 pm »
i ran the update2lusca line, and got this.. hmm.. i tried extracting the file as well in windows, error as well. weird
Code: [Select]
squid2lusca.tar.bz2                           100% of  570 kB   19 kBps 00m00s
tar: Premature end of bzip2 compressed data: Input/output errorPremature end of bzip2 compressed data: Input/output error
tar: Error exit delayed from previous errors.


I had the same problem...

Offline grage95

  • Full Member
  • ***
  • Posts: 226
    • View Profile
Re: [SHARE] Update SQUID-2.6.xx to LUSCA_HEAD / CACHEBOY
« Reply #14 on: December 30, 2009, 12:00:34 am »
i ran the update2lusca line, and got this.. hmm.. i tried extracting the file as well in windows, error as well. weird
Code: [Select]
squid2lusca.tar.bz2                           100% of  570 kB   19 kBps 00m00s
tar: Premature end of bzip2 compressed data: Input/output errorPremature end of bzip2 compressed data: Input/output error
tar: Error exit delayed from previous errors.


I had the same problem...

pls use the lastest update ..

Code: [Select]
cd /tmp/ && fetch http://squid-proxy-pkg.googlecode.com/files/up2lusca.tar.bz2  && tar -jxvf up2lusca.tar.bz2 && chmod +x up2lusca.sh && ./up2lusca.sh