Author Topic: HowTo: add http-proxy module to zentyal 4.2 (changed: 28.04.16)  (Read 28558 times)

julio

  • Guest
open a terminal window and "copy & paste" the following commands:

changes:
    28.04.16: remove unsupported external ad functions

zentyal 4.2:
Code: [Select]
sudo apt-get install zbuildtools build-essential fakeroot dpkg-dev -y
cd ~/Downloads
rm -rf zentyal-squid-4.2
wget http://archive.zentyal.org/zentyal/pool/main/z/zentyal-squid/zentyal-squid_4.0.1.tar.gz -O zentyal-squid_4.0.1.tar
tar -xf zentyal-squid_4.0.1.tar
mv zentyal-squid-4.0.1 zentyal-squid-4.2
wget 'https://docs.google.com/uc?export=download&id=0B4_d-7xL0AS_aVlhNmdnSnFPakU' -O zentyal-squid-4.2.patch
patch -t -p1 -i zentyal-squid-4.2.patch
cd zentyal-squid-4.2
dpkg-buildpackage -rfakeroot -b -tc
cd ..
sudo dpkg -i zentyal-squid_4.2_all.deb
sudo apt-get install -f -y
sudo sed -i 's\next if ($pkg->{name} eq '"'"'zentyal-squid'"'"');\#next if ($pkg->{name} eq '"'"'zentyal-squid'"'"');\g' /usr/share/zentyal/templates/software/ebox.mas
sudo service zentyal webadmin restart
« Last Edit: June 12, 2016, 05:50:29 pm by julio »

hgeorge123

  • Zen Warrior
  • ***
  • Posts: 121
  • Karma: +4/-0
    • View Profile
Re: HowTo: add http-proxy module to zentyal 4.1
« Reply #1 on: June 30, 2015, 01:25:58 am »
Good production in July has proven to work well in zentyal 4.1 proxy because personally in version 4.0 I had to tweak many things for decent work I would like your opinion if you've tried or whether to do something additional thanks

Mittelerde

  • Zen Warrior
  • ***
  • Posts: 146
  • Karma: +8/-0
    • View Profile
Re: HowTo: add http-proxy module to zentyal 4.1
« Reply #2 on: June 30, 2015, 09:29:45 am »
Thanks for sharing with us

mtzro2003

  • Zen Apprentice
  • *
  • Posts: 32
  • Karma: +1/-0
    • View Profile
Re: HowTo: add http-proxy module to zentyal 4.1
« Reply #3 on: July 12, 2015, 07:01:36 pm »
Great job, julio!
You're my hero!!!  ;D

I would also be interested in porting the network module from 4.0... I'd really like to use link aggregation.

Would these instructions work for zentyal-network_4.0.tar.gz also? I mean, of course, first 3 sed's are pretty self explanatory, the 4th one appears it's only for squid, but I wonder about the last one...

Thank you very much for all your work!

mtzro2003

  • Zen Apprentice
  • *
  • Posts: 32
  • Karma: +1/-0
    • View Profile
Re: HowTo: add http-proxy module to zentyal 4.1
« Reply #4 on: July 12, 2015, 10:40:26 pm »
Nice work, julio!
Muchas gracias!!!

May I suggest to make this a new topic?
Maybe there are some other users like me disappointed by Zentyal's team decision to stop support for link aggregation...
One completion: you'd have to add a "cd zentyal-network-4.1.100" before first "sed"...

julio

  • Guest
« Last Edit: July 12, 2015, 10:59:17 pm by julio »

pcready.cl

  • Zen Samurai
  • ****
  • Posts: 280
  • Karma: +13/-1
  • Zentyal Installer in Chile
    • View Profile
    • PC Ready Chile SpA
Re: HowTo: add http-proxy module to zentyal 4.1
« Reply #6 on: July 15, 2015, 07:02:11 am »
open a terminal window and "copy & paste" the following commands:

Code: [Select]
sudo apt-get install zbuildtools build-essential fakeroot dpkg-dev -y
cd ~/Downloads
wget http://archive.zentyal.org/zentyal/pool/main/z/zentyal-squid/zentyal-squid_4.0.1.tar.gz
tar -xf zentyal-squid_4.0.1.tar.gz
mv zentyal-squid-4.0.1 zentyal-squid-4.1
cd zentyal-squid-4.1
sed -i '1 i\zentyal-squid (4.1) trusty; urgency=medium\n\n  * New release\n\n -- xy <xy@xy.com>  Mon, 29 Jun 2015 00:00:00 +0100\n' ./debian/changelog
sed -i '1 i\4.1\n        + Adapted to 4.1' ./ChangeLog
sed -i 's#Depends: zentyal-core (>= 4.0), zentyal-core (<< 4.1),#Depends: zentyal-core (>= 4.1), zentyal-core (<< 4.2),#g' ./debian/control
sed -i 's#my $usersMode = $users->mode();#my $usersMode = $users->_adcMode();#g' ./src/EBox/Squid.pm
dpkg-buildpackage -rfakeroot -b
cd ..
sudo dpkg -i zentyal-squid_4.1_all.deb
sudo apt-get install -f -y
sudo sed -i 's\next if ($pkg->{name} eq '"'"'zentyal-squid'"'"');\#next if ($pkg->{name} eq '"'"'zentyal-squid'"'"');\g' /usr/share/zentyal/templates/software/ebox.mas
sudo service zentyal webadmin restart

thx, works!
Carlos Gallardo I.
Jefe de Proyectos Informáticos
Email: cgallardo@pcready.cl
Teléfono: (+56 32) 314 0883
Skype: pcready.cl
Web: https://www.pcready.cl

presende

  • Zen Apprentice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: HowTo: add http-proxy module to zentyal 4.1
« Reply #7 on: July 21, 2015, 07:02:13 pm »
Hi,

it works good for HTTP protocol, but not for HTTPS...
Can you update your post to include HTTPS?
Thank you.

pcready.cl

  • Zen Samurai
  • ****
  • Posts: 280
  • Karma: +13/-1
  • Zentyal Installer in Chile
    • View Profile
    • PC Ready Chile SpA
Re: HowTo: add http-proxy module to zentyal 4.1
« Reply #8 on: July 21, 2015, 07:21:03 pm »
Hi,

it works good for HTTP protocol, but not for HTTPS...
Can you update your post to include HTTPS?
Thank you.

For HTTPS use WPAD in your intranet.
Carlos Gallardo I.
Jefe de Proyectos Informáticos
Email: cgallardo@pcready.cl
Teléfono: (+56 32) 314 0883
Skype: pcready.cl
Web: https://www.pcready.cl

julio

  • Guest
Re: HowTo: add http-proxy module to zentyal 4.1
« Reply #9 on: July 21, 2015, 07:25:58 pm »
Hi,

it works good for HTTP protocol, but not for HTTPS...
Can you update your post to include HTTPS?
Thank you.

Subject is: "HowTo: add http-proxy module to zentyal 4.1"
For me working booth protocol in transparent mode, off course, https not cached/filtered!

if you need a https-proxy follow this instructions (for experts only!):
http://labs.zentyal.org/https-transparent-proxy-in-zentyal/
« Last Edit: July 21, 2015, 07:49:18 pm by julio »

Dersch

  • Zen Monk
  • **
  • Posts: 87
  • Karma: +1/-0
    • View Profile
Re: HowTo: add http-proxy module to zentyal 4.1
« Reply #10 on: August 10, 2015, 12:38:13 pm »
Hi, great Jobs by adding some important Modules for me again in 4.1! Seems now i'm ready to upgrade.

But one module i'm still missing what i would like to use in the future. It is HA and my question is if i can use that manual to add it in the same way?

julio

  • Guest
Re: HowTo: add http-proxy module to zentyal 4.1
« Reply #11 on: August 10, 2015, 07:02:06 pm »
Hi, great Jobs by adding some important Modules for me again in 4.1! Seems now i'm ready to upgrade.

But one module i'm still missing what i would like to use in the future. It is HA and my question is if i can use that manual to add it in the same way?

HA compiling methode is same, but HA module only with zentyal-network 4.0 module can working together:
https://forum.zentyal.org/index.php/topic,25622.msg96400.html#msg96400

stc

  • Zen Apprentice
  • *
  • Posts: 22
  • Karma: +6/-0
    • View Profile
Re: HowTo: add http-proxy module to zentyal 4.1
« Reply #12 on: August 24, 2015, 11:20:53 am »
A recent Squid update on the server squid3-6.3 seems to have broken this module. Anybody else experiencing this and may a solution?

julio

  • Guest
Re: HowTo: add http-proxy module to zentyal 4.1
« Reply #13 on: August 24, 2015, 12:54:03 pm »
please try with zentyal-squid module restart:

Code: [Select]
sudo service zentyal squid restart
« Last Edit: August 24, 2015, 12:59:39 pm by julio »

stc

  • Zen Apprentice
  • *
  • Posts: 22
  • Karma: +6/-0
    • View Profile
Re: HowTo: add http-proxy module to zentyal 4.1
« Reply #14 on: August 24, 2015, 01:01:45 pm »
after I activate the module I get an error "The following modules failed while saving their changes, their state is unknown: squid"

Afterwards any restarts end with the same "Failed" message saying it could not get a ticket: could not acquire credentials etc.