+ Responder ao Tópico



  1. #1

    Padrão Squid 2.6 em Debian 2.4

    Olá, blz?
    Sou novo aki e queria, se puder, que alguém me ajudasse em um problema que estou tendo com proxy transparente.
    Instalei um debian 2.4 numa placa pcmcia, instalei também um squid 2.6, configurei o squid.conf com a linha nova do squid, redirecionei o tráfego para a porta 3128, mas a net não funciona para os computadores que estão com partilhados nesse servidor. Alguém teve esse problema e conseguiu resolver?

  2. #2

    Padrão

    Kra sua pergunta ficou muito vaga...

    Sem proxy os PCs navegam?
    Se possível posta seu squid.conf

  3. #3

    Padrão

    Amigo vc ja verificou sua regra no firewall para o proxy traparente??

    Nessa versão do squid não se esquece dessa linha logo no inicio

    http_port 3128(sua porta) transparent

    E no firewalll

    Código :
    iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j REDIRECT --to-port 3128

  4. #4

    Padrão Sem Proxy

    Sem proxy transprente funciona normalmente.

    #####################################

    http_port 3128 transparent

    # htcp_port 0
    #httpd_accel_host virtual
    #httpd_accel_port 80
    #httpd_accel_with_proxy on
    #httpd_accel_uses_host_header on

    hierarchy_stoplist cgi-bin ?
    ########
    acl QUERY urlpath_regex cgi-bin \?
    no_cache deny QUERY
    visible_hostname server

    cache_mem 128 MB

    cache_dir ufs /var/spool/squid 1024 16 256

    hosts_file /etc/hosts

    refresh_pattern ^ftp: 15 20% 2280
    refresh_pattern ^gopher: 15 0% 2280
    refresh_pattern . 15 20% 2280

    acl all src 0.0.0.0/0.0.0.0
    acl manager proto cache_object
    acl localhost src 127.0.0.1/255.255.255.255
    acl to_localhost dst 127.0.0.0/8
    acl SSL_ports port 443 563 # https, snews
    acl SSL_ports port 873 # rsync
    acl Safe_ports port 80 # http
    acl Safe_ports port 21 # ftp
    acl Safe_ports port 443 563 # https, snews
    acl Safe_ports port 70 # gopher
    acl Safe_ports port 210 # wais
    acl Safe_ports port 1025-65535 # unregistered ports
    acl Safe_ports port 280 # http-mgmt
    acl Safe_ports port 488 # gss-http
    acl Safe_ports port 591 # filemaker
    acl Safe_ports port 777 # multiling http
    acl Safe_ports port 631 # cups
    acl Safe_ports port 873 # rsync
    acl Safe_ports port 901 # SWAT
    acl purge method PURGE
    acl CONNECT method CONNECT

    http_access allow all
    http_access allow manager localhost
    http_access deny manager
    http_access allow purge localhost
    http_access deny purge
    http_access deny !Safe_ports
    http_access deny CONNECT !SSL_ports
    http_access allow localhost

    http_access deny all

    http_reply_access allow all

    icp_access allow all
    ####################################

    E o firewall está redirecionando para a porta 3128, mas quando eu tiro o proxy transparente funciona.
    Eu conversei com um cara e ele me falou q o squid não funciona o squid.