Zentyal Forum, Linux Small Business Server

Zentyal Server => Installation and Upgrades => Topic started by: julio on June 29, 2015, 10:32:16 pm

Title: HowTo: add http-proxy module to zentyal 4.2 (changed: 28.04.16)
Post by: julio on June 29, 2015, 10:32:16 pm
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
Title: Re: HowTo: add http-proxy module to zentyal 4.1
Post by: hgeorge123 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
Title: Re: HowTo: add http-proxy module to zentyal 4.1
Post by: Mittelerde on June 30, 2015, 09:29:45 am
Thanks for sharing with us
Title: Re: HowTo: add http-proxy module to zentyal 4.1
Post by: mtzro2003 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!
Title: Re: HowTo: add http-proxy module to zentyal 4.1
Post by: mtzro2003 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"...
Title: Re: HowTo: add http-proxy module to zentyal 4.1
Post by: julio on July 12, 2015, 10:51:44 pm
new topic:
https://forum.zentyal.org/index.php/topic,25622.0.html (https://forum.zentyal.org/index.php/topic,25622.0.html)
Title: Re: HowTo: add http-proxy module to zentyal 4.1
Post by: pcready.cl 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!
Title: Re: HowTo: add http-proxy module to zentyal 4.1
Post by: presende 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.
Title: Re: HowTo: add http-proxy module to zentyal 4.1
Post by: pcready.cl 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.
Title: Re: HowTo: add http-proxy module to zentyal 4.1
Post by: julio 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/ (http://labs.zentyal.org/https-transparent-proxy-in-zentyal/)
Title: Re: HowTo: add http-proxy module to zentyal 4.1
Post by: Dersch 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?
Title: Re: HowTo: add http-proxy module to zentyal 4.1
Post by: julio 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 (https://forum.zentyal.org/index.php/topic,25622.msg96400.html#msg96400)
Title: Re: HowTo: add http-proxy module to zentyal 4.1
Post by: stc 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?
Title: Re: HowTo: add http-proxy module to zentyal 4.1
Post by: julio on August 24, 2015, 12:54:03 pm
please try with zentyal-squid module restart:

Code: [Select]
sudo service zentyal squid restart
Title: Re: HowTo: add http-proxy module to zentyal 4.1
Post by: stc 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.
Title: Re: HowTo: add http-proxy module to zentyal 4.1
Post by: julio on August 24, 2015, 01:43:20 pm
please run the following commands:
Code: [Select]
sudo mv /var/log/zentyal/zentyal.log /var/log/zentyal/zentyal.log.bckp
sudo touch /var/log/zentyal/zentyal.log

enable the zentyal squid module over gui, post your "/var/log/zentyal/zentyal.log".

Title: Re: HowTo: add http-proxy module to zentyal 4.1
Post by: stc on August 25, 2015, 12:07:54 pm
here are the results. thanks

Title: Re: HowTo: add http-proxy module to zentyal 4.1
Post by: julio on August 25, 2015, 12:23:56 pm
Probably the problem was that the administrator password had expired.
Please renew the administrator password with following command:
Code: [Select]
sudo samba-tool user setpassword administrator
set administrator password to never expire:
Code: [Select]
sudo samba-tool user setexpiry administrator --noexpiry
Title: Re: HowTo: add http-proxy module to zentyal 4.1
Post by: stc on August 25, 2015, 12:49:24 pm
Thank you Julio that did the trick :-)
Title: Re: HowTo: add http-proxy module to zentyal 4.1
Post by: kamerom on August 31, 2015, 10:58:10 pm
Hi,

The Bandwidth Throttling doesn't work on Transparent mode?!

At least here it doesn't. :(

Some tip?!
Title: Re: HowTo: add http-proxy module to zentyal 4.1
Post by: julio on August 31, 2015, 11:27:55 pm
You tested with http?
Becouse this function only for http request working.
Title: Re: HowTo: add http-proxy module to zentyal 4.1
Post by: kamerom on September 01, 2015, 01:20:32 am
Julio,

If I use the proxy explicitly (Transparent mode off) the Bandwidth Throttling works as expected, including via FTP. But if I enable Transparent Mode the Bandwidth Throttling doesn't work, even in HTTP.
Title: Re: HowTo: add http-proxy module to zentyal 4.1
Post by: Dersch on September 22, 2015, 02:58:30 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 (https://forum.zentyal.org/index.php/topic,25622.msg96400.html#msg96400)

Hi Julio, thanks for your comment. But the link is not working for me.

regards
Dirk
Title: Re: HowTo: add http-proxy module to zentyal 4.1
Post by: julio on September 23, 2015, 08:20:34 am
"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"

Sorry Dersch, the topic is removed, becouse this concept not working anymore. Too many functions are dropped  by developpers from the Firewall module.
Title: Re: HowTo: add http-proxy module to zentyal 4.1
Post by: joyz76 on September 23, 2015, 10:42:42 am
So it's not possible to install squid on 4.1?
Title: Re: HowTo: add http-proxy module to zentyal 4.1
Post by: julio on September 23, 2015, 10:57:48 am
So it's not possible to install squid on 4.1?

only HowTo zentyal 4.1 network module downgrade to 4.0 network module removed,
4.0 Squid Proxy on 4.1 working fine!
https://forum.zentyal.org/index.php/topic,25531.msg96198.html#msg96198
Title: Re: HowTo: add http-proxy module to zentyal 4.1
Post by: Dersch on September 23, 2015, 01:46:35 pm
"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"

Sorry Dersch, the topic is removed, becouse this concept not working anymore. Too many functions are dropped  by developpers from the Firewall module.

Hi Julio, does it mean i can't implement HA module anymore into 4.1?  :o
Title: Re: HowTo: add http-proxy module to zentyal 4.1
Post by: julio on September 23, 2015, 02:08:06 pm
 Yes!  :-\
Title: Re: HowTo: add http-proxy module to zentyal 4.1
Post by: Dersch on September 23, 2015, 02:14:26 pm
 :'( Maybe it is going to be very offtopic in this thread right now. But do you know any alternative way to make this possible?

Want i want to get is just to have some redundancy. I want to setup up another zentyal device. If my main gateway zentyal is off (maintenance, error) the other is immeditaley the gateway and firewall. I though that will HA make it possible but i did not started yet. So maybe it is possible in another way.   
Title: Re: HowTo: add http-proxy module to zentyal 4.1
Post by: orcoliver on October 23, 2015, 08:45:56 pm
Hi Julio, great job!
First, thank you for the HowTo, this work very fine!
It might work for 4.2?
Title: Re: HowTo: add http-proxy module to zentyal 4.1
Post by: julio on October 24, 2015, 12:02:01 am
Hi Julio, great job!
First, thank you for the HowTo, this work very fine!
It might work for 4.2?

you can ty it:
change the strings "4.2" to "4.3" and "4.1" to "4.2"
Title: Re: HowTo: add http-proxy module to zentyal 4.1
Post by: deepak on October 27, 2015, 08:51:31 am

you can ty it:
change the strings "4.2" to "4.3" and "4.1" to "4.2"

I am getting following error on Zentyal 4.2

 Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
zentyal-squid : Depends: zentyal-core (< 2.3.100) but 4.2 is to be installed
Depends: zentyal-users but it is not going to be installed
Title: Re: HowTo: add http-proxy module to zentyal 4.1
Post by: julio on October 27, 2015, 10:16:27 am
check your control file ~/Downloads/zentyal-squid-4.2/debian/control:
it must be:
Code: [Select]
Depends: zentyal-core (>= 4.2), zentyal-core (<< 4.3)if not pls change it.

after change reply the commands:
Code: [Select]
dpkg-buildpackage -rfakeroot -b
cd ..
sudo dpkg -i zentyal-squid_4.2_all.deb
sudo apt-get install -f -y

or after delete the old source, follow the new instructions:
https://forum.zentyal.org/index.php/topic,25531.msg96198.html#msg96198 (https://forum.zentyal.org/index.php/topic,25531.msg96198.html#msg96198)
Title: Re: HowTo: add http-proxy module to zentyal 4.1 and 4.2
Post by: xoy on December 09, 2015, 11:42:14 am
if we want install a new proxy.  We need run wis command
sudo apt-get install squid dansguardian msktutil adzapper

before install zentyal-squid

zentyal 4.2
Title: zentyal installation on redhat
Post by: santhoshkasarla on December 09, 2015, 12:58:21 pm
Hello friends

i installed zentyal  server  in my server  but   they is any zentyal   applications for install in Redhat Linux 
Title: Re: HowTo: add http-proxy module to zentyal 4.1 and 4.2
Post by: julio on December 09, 2015, 02:43:42 pm
if we want install a new proxy.  We need run wis command
sudo apt-get install squid dansguardian msktutil adzapper

before install zentyal-squid

zentyal 4.2

you have forget running the "sudo apt-get install -f" command!!

zentyal-squid.dpkg dependencies:
Depends: zentyal-core (>= 4.X), zentyal-core (<< 4.X),
         zentyal-firewall, zentyal-samba,
         squid3, dansguardian, adduser, adzapper, msktutil,
         libdata-hexdumper-perl, ${misc:Depends}
Title: Re: HowTo: add http-proxy module to zentyal 4.1 and 4.2
Post by: Labomba on February 19, 2016, 02:51:40 pm
Hello Julio,
I have done several installs on a clean 4.2 system, without updating.
After installing and activating the proxy module, it is not possible to browse the Internet.
Alle the connected client get the error: Your username is not allowed to browse: -
Categories: banned user

In the proxy i have a rule that says; allow all
in /var/log/zentyal/zentyal.log this error is displayed:
Squid.pm:1282 Ebox::Squid::authenticationMode - Unknown users mode: . Falling back to internal authorization mode

Can you help?
Title: Re: HowTo: add http-proxy module to zentyal 4.1 and 4.2
Post by: julio on February 19, 2016, 08:08:47 pm
Hello Julio,
I have done several installs on a clean 4.2 system, without updating.
After installing and activating the proxy module, it is not possible to browse the Internet.
Alle the connected client get the error: Your username is not allowed to browse: -
Categories: banned user

In the proxy i have a rule that says; allow all
in /var/log/zentyal/zentyal.log this error is displayed:
Squid.pm:1282 Ebox::Squid::authenticationMode - Unknown users mode: . Falling back to internal authorization mode

Can you help?

Please use with your own group, nested groups 'Domain Admins, Domain Users, Domain Guests' not working yet!
Title: Re: HowTo: add http-proxy module to zentyal 4.1 and 4.2
Post by: Labomba on February 22, 2016, 11:17:02 am
Hello Julio,
I have done several installs on a clean 4.2 system, without updating.
After installing and activating the proxy module, it is not possible to browse the Internet.
Alle the connected client get the error: Your username is not allowed to browse: -
Categories: banned user

In the proxy i have a rule that says; allow all
in /var/log/zentyal/zentyal.log this error is displayed:
Squid.pm:1282 Ebox::Squid::authenticationMode - Unknown users mode: . Falling back to internal authorization mode

Can you help?

Please use with your own group, nested groups 'Domain Admins, Domain Users, Domain Guests' not working yet!

Thnx for the reply, can you be more specific about how to get this "group" to work with the 4.2.  Or is it not possible at all?
Title: Re: HowTo: add http-proxy module to zentyal 4.1 and 4.2
Post by: BishopWolf on April 18, 2016, 06:49:50 pm
I get the error

Code: [Select]
2016/04/18 12:36:29 WARN> zentyal.psgi:43 main::__ANON__ - Use of uninitialized value in numeric gt (>) at /usr/share/perl5/EBox/Squid.pm line 1009, <GEN0> line 2048.
2016/04/18 12:36:29 WARN> zentyal.psgi:43 main::__ANON__ - Use of uninitialized value in numeric gt (>) at /usr/share/perl5/EBox/Squid.pm line 1009, <GEN0> line 2048.
2016/04/18 12:36:29 WARN> Squid.pm:1282 EBox::Squid::authenticationMode - Unknown users mode: . Falling back to squid internal authorization mode
2016/04/18 12:36:29 ERROR> Service.pm:1001 EBox::Module::Service::restartService - Error restarting service: Can't call method "users" on an undefined value at /usr/share/perl5/EBox/Squid/Model/AccessRules.pm line 706, <GEN0> line 2050.
2016/04/18 12:36:29 ERROR> Service.pm:1003 EBox::Module::Service::restartService - Can't call method "users" on an undefined value at /usr/share/perl5/EBox/Squid/Model/AccessRules.pm line 706, <GEN0> line 2050.
2016/04/18 12:36:29 ERROR> RestartService.pm:61 EBox::SysInfo::CGI::RestartService::_process - Restart of HTTP Proxy from dashboard failed: Can't call method "users" on an undefined value at /usr/share/perl5/EBox/Squid/Model/AccessRules.pm line 706, <GEN0> line 2050.
2016/04/18 12:38:07 WARN> Squid.pm:1282 EBox::Squid::authenticationMode - Unknown users mode: . Falling back to squid internal authorization mode
Title: Re: HowTo: add http-proxy module to zentyal 4.1 and 4.2
Post by: julio on April 18, 2016, 09:34:51 pm
I get the error

Code: [Select]
2016/04/18 12:36:29 WARN> zentyal.psgi:43 main::__ANON__ - Use of uninitialized value in numeric gt (>) at /usr/share/perl5/EBox/Squid.pm line 1009, <GEN0> line 2048.
2016/04/18 12:36:29 WARN> zentyal.psgi:43 main::__ANON__ - Use of uninitialized value in numeric gt (>) at /usr/share/perl5/EBox/Squid.pm line 1009, <GEN0> line 2048.
2016/04/18 12:36:29 WARN> Squid.pm:1282 EBox::Squid::authenticationMode - Unknown users mode: . Falling back to squid internal authorization mode
2016/04/18 12:36:29 ERROR> Service.pm:1001 EBox::Module::Service::restartService - Error restarting service: Can't call method "users" on an undefined value at /usr/share/perl5/EBox/Squid/Model/AccessRules.pm line 706, <GEN0> line 2050.
2016/04/18 12:36:29 ERROR> Service.pm:1003 EBox::Module::Service::restartService - Can't call method "users" on an undefined value at /usr/share/perl5/EBox/Squid/Model/AccessRules.pm line 706, <GEN0> line 2050.
2016/04/18 12:36:29 ERROR> RestartService.pm:61 EBox::SysInfo::CGI::RestartService::_process - Restart of HTTP Proxy from dashboard failed: Can't call method "users" on an undefined value at /usr/share/perl5/EBox/Squid/Model/AccessRules.pm line 706, <GEN0> line 2050.
2016/04/18 12:38:07 WARN> Squid.pm:1282 EBox::Squid::authenticationMode - Unknown users mode: . Falling back to squid internal authorization mode

hi BishopWolf ,

can you please give me more detail about your proxy settings?
transparent or explicit?
access rules source?
decision?
Title: Re: HowTo: add http-proxy module to zentyal 4.1 and 4.2
Post by: Labomba on April 26, 2016, 07:36:27 am
It's the same error as I already posted.....still can't have it to work neither with a 4.2
Squid.pm:1282 Ebox::Squid::authenticationMode - Unknown users mode: . Falling back to internal authorization mode


I get the error

Code: [Select]
2016/04/18 12:36:29 WARN> zentyal.psgi:43 main::__ANON__ - Use of uninitialized value in numeric gt (>) at /usr/share/perl5/EBox/Squid.pm line 1009, <GEN0> line 2048.
2016/04/18 12:36:29 WARN> zentyal.psgi:43 main::__ANON__ - Use of uninitialized value in numeric gt (>) at /usr/share/perl5/EBox/Squid.pm line 1009, <GEN0> line 2048.
2016/04/18 12:36:29 WARN> Squid.pm:1282 EBox::Squid::authenticationMode - Unknown users mode: . Falling back to squid internal authorization mode
2016/04/18 12:36:29 ERROR> Service.pm:1001 EBox::Module::Service::restartService - Error restarting service: Can't call method "users" on an undefined value at /usr/share/perl5/EBox/Squid/Model/AccessRules.pm line 706, <GEN0> line 2050.
2016/04/18 12:36:29 ERROR> Service.pm:1003 EBox::Module::Service::restartService - Can't call method "users" on an undefined value at /usr/share/perl5/EBox/Squid/Model/AccessRules.pm line 706, <GEN0> line 2050.
2016/04/18 12:36:29 ERROR> RestartService.pm:61 EBox::SysInfo::CGI::RestartService::_process - Restart of HTTP Proxy from dashboard failed: Can't call method "users" on an undefined value at /usr/share/perl5/EBox/Squid/Model/AccessRules.pm line 706, <GEN0> line 2050.
2016/04/18 12:38:07 WARN> Squid.pm:1282 EBox::Squid::authenticationMode - Unknown users mode: . Falling back to squid internal authorization mode

hi BishopWolf ,

can you please give me more detail about your proxy settings?
transparent or explicit?
access rules source?
decision?
Title: Re: HowTo: add http-proxy module to zentyal 4.1 and 4.2
Post by: julio on April 26, 2016, 10:04:06 am
It's the same error as I already posted.....still can't have it to work neither with a 4.2
Squid.pm:1282 Ebox::Squid::authenticationMode - Unknown users mode: . Falling back to internal authorization mode


I get the error

Code: [Select]
2016/04/18 12:36:29 WARN> zentyal.psgi:43 main::__ANON__ - Use of uninitialized value in numeric gt (>) at /usr/share/perl5/EBox/Squid.pm line 1009, <GEN0> line 2048.
2016/04/18 12:36:29 WARN> zentyal.psgi:43 main::__ANON__ - Use of uninitialized value in numeric gt (>) at /usr/share/perl5/EBox/Squid.pm line 1009, <GEN0> line 2048.
2016/04/18 12:36:29 WARN> Squid.pm:1282 EBox::Squid::authenticationMode - Unknown users mode: . Falling back to squid internal authorization mode
2016/04/18 12:36:29 ERROR> Service.pm:1001 EBox::Module::Service::restartService - Error restarting service: Can't call method "users" on an undefined value at /usr/share/perl5/EBox/Squid/Model/AccessRules.pm line 706, <GEN0> line 2050.
2016/04/18 12:36:29 ERROR> Service.pm:1003 EBox::Module::Service::restartService - Can't call method "users" on an undefined value at /usr/share/perl5/EBox/Squid/Model/AccessRules.pm line 706, <GEN0> line 2050.
2016/04/18 12:36:29 ERROR> RestartService.pm:61 EBox::SysInfo::CGI::RestartService::_process - Restart of HTTP Proxy from dashboard failed: Can't call method "users" on an undefined value at /usr/share/perl5/EBox/Squid/Model/AccessRules.pm line 706, <GEN0> line 2050.
2016/04/18 12:38:07 WARN> Squid.pm:1282 EBox::Squid::authenticationMode - Unknown users mode: . Falling back to squid internal authorization mode

hi BishopWolf ,

can you please give me more detail about your proxy settings?
transparent or explicit?
access rules source?
decision?

can you please give me more detail about your proxy settings?
transparent or explicit?
access rules source?
decision?
internal or external ad?
Title: Re: HowTo: add http-proxy module to zentyal 4.2 (changed: 28.04.16)
Post by: Stefano on August 31, 2016, 11:04:02 am
Hello,
I installed Zentyal Dev Edition 4.2 for testing (currently I'm using ipcop for firewall management and other services),
after that I got trouble with installation of HTTP proxy, I followed instuction posted in the topic but after installing HTTP proxy and restarting the machine I cannot see HTTP proxy menu on the left sidebar on the web interface.
Can anyone help me?

currently installed modules are:
network firewall antivirus audit ca dhcp dns logs mail mailfilter ntp openchange openvpn printers samba webadmin

thanks
Title: Re: HowTo: add http-proxy module to zentyal 4.2 (changed: 28.04.16)
Post by: julio on August 31, 2016, 06:47:47 pm
Hello,
I installed Zentyal Dev Edition 4.2 for testing (currently I'm using ipcop for firewall management and other services),
after that I got trouble with installation of HTTP proxy, I followed instuction posted in the topic but after installing HTTP proxy and restarting the machine I cannot see HTTP proxy menu on the left sidebar on the web interface.
Can anyone help me?

currently installed modules are:
network firewall antivirus audit ca dhcp dns logs mail mailfilter ntp openchange openvpn printers samba webadmin

thanks

please trying to install one more time, step by step...
Title: Re: HowTo: add http-proxy module to zentyal 4.2 (changed: 28.04.16)
Post by: Stefano on September 05, 2016, 03:31:59 pm
It Works, thanks for the info.
now I had to configure it properly...
Title: Re: HowTo: add http-proxy module to zentyal 4.2 (changed: 28.04.16)
Post by: alexil on November 15, 2016, 06:51:10 pm
Hi,
Just tested it and works fine.

A couple of questions, i would like to use wpad. I read it in previous post. I need a web browser too. Can i add this module from previous versions or should i install use just with apt-get?

The second question is about language. The patch is in English.  Is there any way to translate it?

Thanks a lot for your work. As many users, i donĀ“t understand why zentyal took this way.
Title: Re: HowTo: add http-proxy module to zentyal 4.2 (changed: 28.04.16)
Post by: sheshman on March 11, 2017, 11:35:59 am
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
duuuuuuuuuuuuuuuuuuuuuude, i love you man,you saved my day
Title: Re: HowTo: add http-proxy module to zentyal 4.2 (changed: 28.04.16)
Post by: Labomba on April 21, 2017, 09:21:25 am
Hi Julio,
I know that this question is not really related to the subject, but could I ask you to check the http proxy module in Zentyal 5?
The proxy module in transparent mode doesn't seem to work correctly at all.
For example: When you set the filter profile to allow all, everything works.
When you set the filter profile to Medium, most of the visited websites are simply blocked, even non pornographic or whatever.
Even after adding the specific website to the always allowed url rules, it keeps on getting blocked.
They also removed the antivirus module, but however the proxy module gives errors in saving the configuration about the removed antivirus module.
It seems to still check if the module is there, even when they removed it.
It looks like the Zentyal developers have done a hard copy of the proxy module without reprogramming anything.
In my 4.0 - 4.2 installations everything works like a charm, with same same setup....