+ Responder ao Tópico



  1. inicia o squid assim:

    squid -d 6

    e veja as mensagens que irao aparecer qdo sobe e qdo vc tenta navegar, se tiver algo errado vai aparecer

  2. root@darkstar:~# 2006/08/07 21:01:24| Starting Squid Cache version 2.5.STABLE10 for i686-pc-linux-gnu...
    2006/08/07 21:01:24| Process ID 7826
    2006/08/07 21:01:24| With 1024 file descriptors available
    2006/08/07 21:01:24| Performing DNS Tests...
    2006/08/07 21:01:24| Successful DNS name lookup tests...
    2006/08/07 21:01:24| DNS Socket created at 0.0.0.0, port 32804, FD 5
    2006/08/07 21:01:24| Adding nameserver 200.223.0.83 from squid.conf
    2006/08/07 21:01:24| Adding nameserver 200.223.0.84 from squid.conf
    2006/08/07 21:01:24| Unlinkd pipe opened on FD 10
    2006/08/07 21:01:24| Swap maxSize 6291456 KB, estimated 483958 objects
    2006/08/07 21:01:24| Target number of buckets: 24197
    2006/08/07 21:01:24| Using 32768 Store buckets
    2006/08/07 21:01:24| Max Mem size: 102400 KB
    2006/08/07 21:01:24| Max Swap size: 6291456 KB
    2006/08/07 21:01:24| Rebuilding storage in /var/lib/squid/cache (DIRTY)
    2006/08/07 21:01:24| Using Least Load store dir selection
    2006/08/07 21:01:24| Current Directory is /root
    2006/08/07 21:01:24| Loaded Icons.
    2006/08/07 21:01:30| Accepting HTTP connections at 0.0.0.0, port 3128, FD 11.
    2006/08/07 21:01:30| Accepting ICP messages at 0.0.0.0, port 3130, FD 12.
    2006/08/07 21:01:30| Accepting SNMP messages on port 3401, FD 13.
    2006/08/07 21:01:30| WCCP Disabled.

    nao navega ainda ... 1c3m4n



  3. mais uma coisa que caiu a ficha agora, erro nao ta dando, e vi q vc aparentemente ta usando proxy transparente, vc ativou as regras do firewall pra isso neh?

  4. ta sim amigao :

    Gatway 192.168.10.254

    $IPTABLES -A INPUT -d 192.168.10.254 -p tcp --dport 3128 -j ACCEPT

    $IPTABLES -t nat -A PREROUTING -i $U -d ! 200.189.214.0/24 -p tcp --dport 80 -j REDIRECT --to-port 3128



    ################ SQUID.conf ######################3


    http_port 3128
    visible_hostname SERPENTE

    #Configuracao do Cache
    cache_mem 100 MB
    maximum_object_size_in_memory 64 KB
    maximum_object_size 512 MB
    minimum_object_size 0 KB
    cache_swap_low 90
    cache_swap_high 95
    cache_dir ufs /var/lib/squid/cache 6144 16 256

    cache_access_log /var/lib/squid/logs/access.log
    refresh_pattern ^ftp: 15 20% 2280
    refresh_pattern ^gopher: 15 0% 2280
    refresh_pattern . 15 20% 2280

    dns_nameservers 200.223.0.83 200.223.0.84


    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 SSL_ports port 443 563
    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 901 # SWAT
    acl purge method PURGE
    acl CONNECT method CONNECT

    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

    cache_effective_user nobody
    cache_effective_group nogroup





    # Configuracao da senha para internet

    acl redelocal src 192.168.10.0/24 192.168.12.0/27
    http_access allow localhost
    http_access allow redelocal
    http_access deny all

    #Proxy Transparente
    httpd_accel_host virtual
    httpd_accel_port 80
    httpd_accel_with_proxy on
    httpd_accel_uses_host_header on

    ############################ RESOLV.CONF ##############
    nameserver 200.223.0.83
    nameserver 200.223.0.84




  5. iptables -t nat -A PREROUTING -s 192.168.10.0/24 -j MASQUERADE







Tópicos Similares

  1. Problemas no Squid, 'Memory pools are 'off'; limit: 2.00 MB'
    Por H_Franzin no fórum Servidores de Rede
    Respostas: 3
    Último Post: 31-03-2005, 15:07
  2. Amigos estou com sérios problemas no squid(RunCache)
    Por bandlinux no fórum Servidores de Rede
    Respostas: 1
    Último Post: 04-03-2005, 06:07
  3. Problemas no Squid com firewall
    Por Dick_Vigarista no fórum Servidores de Rede
    Respostas: 4
    Último Post: 03-11-2003, 15:09
  4. Problemas no squid com a porta 8088
    Por no fórum Servidores de Rede
    Respostas: 3
    Último Post: 17-02-2003, 08:42
  5. problemas no squid
    Por roggy no fórum Servidores de Rede
    Respostas: 2
    Último Post: 25-09-2002, 15:12

Visite: BR-Linux ·  VivaOLinux ·  Dicas-L