Página 1 de 3 123 ÚltimoÚltimo
+ Responder ao Tópico



  1. #1
    http_port 10.0.1.0:3128
    http_port 10.0.2.0:3128
    hierarchy_stoplist cgi-bin ?
    acl QUERY urlpath_regex cgi-bin \?
    no_cache deny QUERY
    cache_swap_low 90
    cache_swap_high 93
    maximum_object_size 4096 KB
    minimum_object_size 0 KB
    maximum_object_size_in_memory 100 KB
    ipcache_size 1024
    ipcache_low 90
    ipcache_high 93
    cache_dir ufs /var/spool/squid/cache 42 16 256
    cache_access_log /var/log/squid/access.log
    cache_log /var/log/squid/cache.log
    cache_store_log /var/log/squid/store.log
    auth_param basic children 5
    auth_param basic realm Squid proxy-caching web server
    auth_param basic credentialsttl 2 hours
    refresh_pattern ^ftp: 1440 20% 10080
    refresh_pattern ^gopher: 1440 0% 1440
    refresh_pattern . 0 20% 4320
    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 rede src 10.0.1.0/255.255.255.0
    acl rede2 src 10.0.2.0/255.255.255.0
    acl to_localhost dst 127.0.0.0/8
    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 CONNECT method CONNECT
    http_access allow localhost
    http_access allow rede
    http_access allow rede2
    http_access allow manager localhost
    http_access deny manager
    http_access deny !Safe_ports
    http_access deny CONNECT !SSL_ports
    http_access deny all
    http_reply_access allow all
    icp_access allow all
    httpd_accel_port 80
    httpd_accel_host virtual
    httpd_accel_with_proxy on
    httpd_accel_uses_host_header on

    o que tem de errado pro squid nao ta funcionando em modo transparente ?

  2. posta tuas regras de redirect?



  3. #3
    iptables -t nat -A PREROUTING -s 0/0 -p tcp --dport 80 -j REDIRECT --to-port 3128
    iptables -t nat -A PREROUTING -s 0/0 -p udp --dport 80 -j REDIRECT --to-port 3128

    é isso ?

  4. #4
    pilantrox
    as minhas estão assim ,,, -i interface da rede que vi utilisar o proxy..

    iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j REDIRECT --to-port 3128
    iptables -t nat -A PREROUTING -i eth1 -p udp --dport 80 -j REDIRECT --to-port 3128

    tenta colocar essas ai ,, se naum direcionar,,cola pra gente o arquivo cache.log /var/log/squid/cache.log ........

    Citação Postado originalmente por Anonymous
    iptables -t nat -A PREROUTING -s 0/0 -p tcp --dport 80 -j REDIRECT --to-port 3128
    iptables -t nat -A PREROUTING -s 0/0 -p udp --dport 80 -j REDIRECT --to-port 3128

    é isso ?



  5. #5
    fiz isso e nao funcionou
    olha o cache.log


    2005/02/11 17:07:48| Squid Cache (Version 2.5.STABLE7): Exiting normally.
    2005/02/14 13:31:31| Starting Squid Cache version 2.5.STABLE7 for i686-pc-linux-gnu...
    2005/02/14 13:31:31| Process ID 14612
    2005/02/14 13:31:31| With 1024 file descriptors available
    2005/02/14 13:31:31| Performing DNS Tests...
    2005/02/14 13:31:31| Successful DNS name lookup tests...
    2005/02/14 13:31:31| DNS Socket created at 0.0.0.0, port 1051, FD 4
    2005/02/14 13:31:31| Adding nameserver 200.255.5.17 from /etc/resolv.conf
    2005/02/14 13:31:31| Adding nameserver 200.255.5.5 from /etc/resolv.conf
    2005/02/14 13:31:31| Unlinkd pipe opened on FD 9
    2005/02/14 13:31:31| Swap maxSize 102400 KB, estimated 7876 objects
    2005/02/14 13:31:31| Target number of buckets: 393
    2005/02/14 13:31:31| Using 8192 Store buckets
    2005/02/14 13:31:31| Max Mem size: 65536 KB
    2005/02/14 13:31:31| Max Swap size: 102400 KB
    2005/02/14 13:31:31| Rebuilding storage in /var/lib/squid/cache (CLEAN)
    2005/02/14 13:31:31| Using Least Load store dir selection
    2005/02/14 13:31:31| Set Current Directory to /usr/local/squid/var/cache
    2005/02/14 13:31:31| Loaded Icons.
    2005/02/14 13:31:31| Accepting HTTP connections at 10.0.1.0, port 3128, FD 10.
    2005/02/14 13:31:31| Accepting HTTP connections at 10.0.2.0, port 3128, FD 11.
    2005/02/14 13:31:31| Accepting ICP messages at 0.0.0.0, port 3130, FD 12.
    2005/02/14 13:31:31| WCCP Disabled.
    2005/02/14 13:31:31| Ready to serve requests.
    2005/02/14 13:31:32| Done scanning /var/lib/squid/cache swaplog (0 entries)
    2005/02/14 13:31:32| Finished rebuilding storage from disk.
    2005/02/14 13:31:32| 0 Entries scanned
    2005/02/14 13:31:32| 0 Invalid entries.
    2005/02/14 13:31:32| 0 With invalid flags.
    2005/02/14 13:31:32| 0 Objects loaded.
    2005/02/14 13:31:32| 0 Objects expired.
    2005/02/14 13:31:32| 0 Objects cancelled.
    2005/02/14 13:31:32| 0 Duplicate URLs purged.
    2005/02/14 13:31:32| 0 Swapfile clashes avoided.
    2005/02/14 13:31:32| Took 1.1 seconds ( 0.0 objects/sec).
    2005/02/14 13:31:32| Beginning Validation Procedure
    2005/02/14 13:31:32| Completed Validation Procedure
    2005/02/14 13:31:32| Validated 0 Entries
    2005/02/14 13:31:32| store_swap_size = 0k
    2005/02/14 13:31:33| storeLateRelease: released 0 objects
    2005/02/14 13:31:35| Preparing for shutdown after 0 requests
    2005/02/14 13:31:35| Waiting 30 seconds for active connections to finish
    2005/02/14 13:31:35| FD 10 Closing HTTP connection
    2005/02/14 13:31:35| FD 11 Closing HTTP connection
    2005/02/14 13:31:37| Shutting down...
    2005/02/14 13:31:37| FD 12 Closing ICP connection
    2005/02/14 13:31:37| Closing unlinkd pipe on FD 9
    2005/02/14 13:31:37| storeDirWriteCleanLogs: Starting...
    2005/02/14 13:31:37| Finished. Wrote 0 entries.
    2005/02/14 13:31:37| Finished. Wrote 0 entries.
    2005/02/14 13:31:37| Took 0.0 seconds ( 0.0 entries/sec).
    CPU Usage: 0.390 seconds = 0.090 user + 0.300 sys
    Maximum Resident Size: 0 KB
    Page faults with physical i/o: 377
    Memory usage for squid via mallinfo():
    total space in arena: 2006 KB
    Ordinary blocks: 1989 KB 4 blks
    Small blocks: 0 KB 5 blks
    Holding blocks: 192 KB 1 blks
    Free Small blocks: 0 KB
    Free Ordinary blocks: 17 KB
    Total in use: 2181 KB 109%
    Total free: 17 KB 1%
    2005/02/14 13:31:37| Squid Cache (Version 2.5.STABLE7): Exiting normally.
    2005/02/14 13:33:44| Starting Squid Cache version 2.5.STABLE7 for i686-pc-linux-gnu...
    2005/02/14 13:33:44| Process ID 14638
    2005/02/14 13:33:44| With 1024 file descriptors available
    2005/02/14 13:33:44| DNS Socket created at 0.0.0.0, port 1051, FD 4
    2005/02/14 13:33:44| Adding nameserver 200.255.5.17 from /etc/resolv.conf
    2005/02/14 13:33:44| Adding nameserver 200.255.5.5 from /etc/resolv.conf
    2005/02/14 13:33:44| Unlinkd pipe opened on FD 9
    2005/02/14 13:33:44| Swap maxSize 102400 KB, estimated 7876 objects
    2005/02/14 13:33:44| Target number of buckets: 393
    2005/02/14 13:33:44| Using 8192 Store buckets
    2005/02/14 13:33:44| Max Mem size: 65536 KB
    2005/02/14 13:33:44| Max Swap size: 102400 KB
    2005/02/14 13:33:44| Rebuilding storage in /var/lib/squid/cache (CLEAN)
    2005/02/14 13:33:44| Using Least Load store dir selection
    2005/02/14 13:33:44| Set Current Directory to /usr/local/squid/var/cache
    2005/02/14 13:33:44| Loaded Icons.
    2005/02/14 13:33:44| Accepting HTTP connections at 10.0.1.0, port 3128, FD 10.
    2005/02/14 13:33:44| Accepting HTTP connections at 10.0.2.0, port 3128, FD 11.
    2005/02/14 13:33:44| Accepting ICP messages at 0.0.0.0, port 3130, FD 12.
    2005/02/14 13:33:44| WCCP Disabled.
    2005/02/14 13:33:44| Ready to serve requests.
    2005/02/14 13:33:44| Done scanning /var/lib/squid/cache swaplog (0 entries)
    2005/02/14 13:33:44| Finished rebuilding storage from disk.
    2005/02/14 13:33:44| 0 Entries scanned
    2005/02/14 13:33:44| 0 Invalid entries.
    2005/02/14 13:33:44| 0 With invalid flags.
    2005/02/14 13:33:44| 0 Objects loaded.
    2005/02/14 13:33:44| 0 Objects expired.
    2005/02/14 13:33:44| 0 Objects cancelled.
    2005/02/14 13:33:44| 0 Duplicate URLs purged.
    2005/02/14 13:33:44| 0 Swapfile clashes avoided.
    2005/02/14 13:33:44| Took 0.5 seconds ( 0.0 objects/sec).
    2005/02/14 13:33:44| Beginning Validation Procedure
    2005/02/14 13:33:44| Completed Validation Procedure
    2005/02/14 13:33:44| Validated 0 Entries
    2005/02/14 13:33:44| store_swap_size = 0k
    2005/02/14 13:33:45| storeLateRelease: released 0 objects






Tópicos Similares

  1. Por Favor Analisem meu Squid.conf
    Por lordsnc no fórum Servidores de Rede
    Respostas: 1
    Último Post: 13-02-2009, 04:11
  2. Alguem podeira ver meu squid.conf por favor...
    Por fisiconuclear18 no fórum Servidores de Rede
    Respostas: 13
    Último Post: 28-12-2005, 16:25
  3. IPTables bloqueia meu squid
    Por edilson no fórum Servidores de Rede
    Respostas: 5
    Último Post: 03-02-2003, 07:56
  4. VERIFICANDO O ARQUIVO SQUID.CONF
    Por no fórum Servidores de Rede
    Respostas: 1
    Último Post: 11-10-2002, 19:59
  5. Meu squid barra o que não deve!!!
    Por NoiseMaster no fórum Servidores de Rede
    Respostas: 2
    Último Post: 27-09-2002, 08:59

Visite: BR-Linux ·  VivaOLinux ·  Dicas-L