Author Topic: Como fazer 1 login por sessão no proxy AUTENTICADO  (Read 1388 times)

jeff

  • Zen Apprentice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Como fazer 1 login por sessão no proxy AUTENTICADO
« on: September 05, 2014, 03:40:43 pm »
Queria fazer com que apenas 1 usuário por sessão no proxy autenticado help-me



att

Jefferson Costa

infotecaguai

  • Zen Apprentice
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: Como fazer 1 login por sessão no proxy AUTENTICADO
« Reply #1 on: September 09, 2014, 03:08:51 pm »
Explique melhor sua situação..

jeff

  • Zen Apprentice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Como fazer 1 login por sessão no proxy AUTENTICADO
« Reply #2 on: September 11, 2014, 01:57:14 pm »
Explique melhor sua situação..

Quando crio usuário.... este mesmo usuário se autentica no proxy em varias maquinas, tipo usuário simultâneo......

tipo percebi o mesmo user em 3 maquinas ao mesmo tempo..

Jefferson Costa

jbahillo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1444
  • Karma: +77/-2
    • View Profile
Re: Como fazer 1 login por sessão no proxy AUTENTICADO
« Reply #3 on: September 11, 2014, 04:07:02 pm »
Olá:

Voce deberá criar uma custom stub para engadir uma acl de tipo max_user_ip:

Code: [Select]
acl aclname max_user_ip [-s] number
  # This will be matched when the user attempts to log in from more
  # than <number> different ip addresses. The authenticate_ip_ttl
  # parameter controls the timeout on the ip entries. [fast]
  # If -s is specified the limit is strict, denying browsing
  # from any further IP addresses until the ttl has expired. Without
  # -s Squid will just annoy the user by "randomly" denying requests.
  # (the counter is reset each time the limit is reached and a
  # request is denied)
  # NOTE: in acceleration mode or where there is mesh of child proxies,
  # clients may appear to come from multiple addresses if they are
  # going through proxy farms, so a limit of 1 may cause user problems.

jeff

  • Zen Apprentice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Como fazer 1 login por sessão no proxy AUTENTICADO
« Reply #4 on: October 24, 2014, 03:47:09 pm »
onde localizo este parametro não achei dentro do squid.conf

jbahillo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1444
  • Karma: +77/-2
    • View Profile
Re: Como fazer 1 login por sessão no proxy AUTENTICADO
« Reply #5 on: October 25, 2014, 07:23:44 pm »
O zentyal nao inclui esse parámetro voce deverá engadi-lo atravês de uma custom stub e nessa stub engadir essa acl às acl's empregadas pela directiva http_access:

acl limiteusuario max_user_ip -s 1
http_access <% $policy %>  <% $acl %> limiteusuario
« Last Edit: October 25, 2014, 07:28:39 pm by jbahillo »