Author Topic: problems with proxy Zentyal 3  (Read 5227 times)

claudiompjr

  • Zen Apprentice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
problems with proxy Zentyal 3
« on: December 20, 2012, 06:29:43 pm »
Hi,
I was using the Zentyal 2.2 which worked perfectly until I upgraded to Zentyal 3 when I started having problems. I have about 60 machines connected to the network, with few machines connected it worked very well as all machines connected to the network gave him some bottleneck in the proxy that made my internet very slow, removed the black list and found the site http://tecnologia .2020mobile.es/improving-zentyal-proxy-performance-squid-dansguardian / and made the following changes below:

1. Tune dansguardian configuration for handling better our 200 users

We’ve changed /usr/share/zentyal/stubs/squid/dansguardian.conf.mas with this options:

#maxchildren = <% $maxchildren >
#minchildren = < $minchildren >
#minsparechildren = < $minsparechildren >
#preforkchildren = < $preforkchildren >
#maxsparechildren = < $maxsparechildren >
#maxagechildren = < $maxagechildren %>

maxchildren = 200
minchildren = 32
minsparechildren = 8
preforkchildren = 10
maxsparechildren = 64
maxagechildren = 10000

2. Fine tuning Linux kernel options (TCP stack and open files)

We changed /etc/sysctl.conf and /etc/security/limits.conf to allow faster TCP connections and more files opened.

/etc/sysctl.conf
fs.file-max = 65535
net.core.rmem_default = 262144
net.core.rmem_max = 262144
net.core.wmem_default = 262144
net.core.wmem_max = 262144
net.ipv4.tcp_rmem = 4096 87380 8388608
net.ipv4.tcp_wmem = 4096 65536 8388608
net.ipv4.tcp_mem = 194976 259968 389952
net.ipv4.tcp_low_latency = 1
net.core.netdev_max_backlog = 4000
net.ipv4.ip_local_port_range = 1024 65000
net.ipv4.tcp_max_syn_backlog = 16384

/etc/security/limits.conf
– nofile 65535

After the changes the internet has improved but is still very slow, so I decided to disable my proxy because if I enable it impossible to access the internet.
Someone had a similar problem?
Does anyone know if I have to do some configuration to improve navigation?

zeta

  • Zen Apprentice
  • *
  • Posts: 31
  • Karma: +1/-0
    • View Profile
Re: problems with proxy Zentyal 3
« Reply #1 on: January 15, 2013, 06:20:07 pm »
try this:

add the following to the top of your configuration files (/etc/squid3/squid.conf, /etc/squid3/squid-external.conf):

dns_v4_first on


and restart service: service squid restart