proxy
|
15/09/2009, 11:25
Resposta: #10
|
|||
|
|||
Re: proxy
proxy-rm:~# cat /etc/network/interfaces
# The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet static address 192.168.18.53 netmask 255.255.255.0 network 192.168.18.0 broadcast 192.168.18.255 gateway 192.168.18.12 proxy-rm:~# cat /etc/squid/squid.conf #acl METAFRAME url_regex -i metaframe.minerva.ind.br #http_access allow METAFRAME http_port 3128 visible_hostname proxy-rm acl all src 0.0.0.0/0.0.0.0 http_access allow all #error_directory /usr/share/squid/errors/Portuguese/ ################################################################## #cache_mem 300 MB #maximum_object_size_in_memory 64 KB #maximum_object_size 256 MB #minimum_object_size 0 KB #cache_swap_low 90 #cache_swap_high 95 #cache_dir ufs /var/spool/squid 2048 16 256 #cache_access_log /var/log/squid/access.log #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 SSL_ports port 443 563 #acl Safe_ports port 80 21 143 443 563 70 210 280 488 59 591 777 901 1494 1012-65535 25 110 995 #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 ###################################################################### #auth_param basic realm Squid #auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/squid_passwd #acl autenticados proxy_auth REQUIRED #http_access allow autenticados #acl redelocal src 192.168.18.0/24 #http_access allow localhost #http_access allow redelocal proxy-rm:~# cat /var/log/squid/cache.log 2009/09/15 07:35:21| storeDirWriteCleanLogs: Starting... 2009/09/15 07:35:21| Finished. Wrote 0 entries. 2009/09/15 07:35:21| Took 0.0 seconds ( 0.0 entries/sec). 2009/09/15 07:35:21| logfileRotate: /var/log/squid/store.log 2009/09/15 07:35:21| logfileRotate (stdio): /var/log/squid/store.log 2009/09/15 09:46:56| Preparing for shutdown after 39 requests 2009/09/15 09:46:56| Waiting 30 seconds for active connections to finish 2009/09/15 09:46:56| FD 12 Closing HTTP connection 2009/09/15 09:47:15| Shutting down... 2009/09/15 09:47:15| FD 13 Closing ICP connection 2009/09/15 09:47:15| Closing unlinkd pipe on FD 10 2009/09/15 09:47:15| storeDirWriteCleanLogs: Starting... 2009/09/15 09:47:15| Finished. Wrote 0 entries. 2009/09/15 09:47:15| Took 0.0 seconds ( 0.0 entries/sec). CPU Usage: 0.048 seconds = 0.016 user + 0.032 sys Maximum Resident Size: 0 KB Page faults with physical i/o: 2 Memory usage for squid via mallinfo(): total space in arena: 2224 KB Ordinary blocks: 2093 KB 15 blks Small blocks: 0 KB 5 blks Holding blocks: 280 KB 1 blks Free Small blocks: 0 KB Free Ordinary blocks: 130 KB Total in use: 2373 KB 95% Total free: 130 KB 5% 2009/09/15 09:47:15| logfileClose: closing log /var/log/squid/store.log 2009/09/15 09:47:15| Squid Cache (Version 2.7.STABLE3): Exiting normally. 2009/09/15 09:47:18| Starting Squid Cache version 2.7.STABLE3 for i386-debian-linux-gnu... 2009/09/15 09:47:18| Process ID 4396 2009/09/15 09:47:18| With 1024 file descriptors available 2009/09/15 09:47:18| Using epoll for the IO loop 2009/09/15 09:47:18| DNS Socket created at 0.0.0.0, port 57559, FD 6 2009/09/15 09:47:18| Adding nameserver 201.10.128.2 from /etc/resolv.conf 2009/09/15 09:47:18| Adding nameserver 201.10.1.2 from /etc/resolv.conf 2009/09/15 09:47:18| User-Agent logging is disabled. 2009/09/15 09:47:18| Referer logging is disabled. 2009/09/15 09:47:18| Unlinkd pipe opened on FD 10 2009/09/15 09:47:18| Swap maxSize 102400 KB, estimated 7876 objects 2009/09/15 09:47:18| Target number of buckets: 393 2009/09/15 09:47:18| Using 8192 Store buckets 2009/09/15 09:47:18| Max Mem size: 8192 KB 2009/09/15 09:47:18| Max Swap size: 102400 KB 2009/09/15 09:47:18| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec 2009/09/15 09:47:18| logfileOpen: opening log /var/log/squid/store.log 2009/09/15 09:47:18| Rebuilding storage in /var/spool/squid (CLEAN) 2009/09/15 09:47:18| Using Least Load store dir selection 2009/09/15 09:47:18| Current Directory is / 2009/09/15 09:47:18| Loaded Icons. 2009/09/15 09:47:18| Accepting proxy HTTP connections at 0.0.0.0, port 3128, FD 12. 2009/09/15 09:47:18| Accepting ICP messages at 0.0.0.0, port 3130, FD 13. 2009/09/15 09:47:18| HTCP Disabled. 2009/09/15 09:47:18| WCCP Disabled. 2009/09/15 09:47:18| Ready to serve requests. 2009/09/15 09:47:18| Done reading /var/spool/squid swaplog (0 entries) 2009/09/15 09:47:18| Finished rebuilding storage from disk. 2009/09/15 09:47:18| 0 Entries scanned 2009/09/15 09:47:18| 0 Invalid entries. 2009/09/15 09:47:18| 0 With invalid flags. 2009/09/15 09:47:18| 0 Objects loaded. 2009/09/15 09:47:18| 0 Objects expired. 2009/09/15 09:47:18| 0 Objects cancelled. 2009/09/15 09:47:18| 0 Duplicate URLs purged. 2009/09/15 09:47:18| 0 Swapfile clashes avoided. 2009/09/15 09:47:18| Took 0.3 seconds ( 0.0 objects/sec). 2009/09/15 09:47:18| Beginning Validation Procedure 2009/09/15 09:47:18| Completed Validation Procedure 2009/09/15 09:47:18| Validated 0 Entries 2009/09/15 09:47:18| store_swap_size = 0k 2009/09/15 09:47:19| storeLateRelease: released 0 objects 2009/09/15 10:19:24| Preparing for shutdown after 177 requests 2009/09/15 10:19:24| Waiting 30 seconds for active connections to finish 2009/09/15 10:19:24| FD 12 Closing HTTP connection 2009/09/15 10:19:34| Shutting down... 2009/09/15 10:19:34| FD 13 Closing ICP connection 2009/09/15 10:19:34| Closing unlinkd pipe on FD 10 2009/09/15 10:19:34| storeDirWriteCleanLogs: Starting... 2009/09/15 10:19:34| Finished. Wrote 0 entries. 2009/09/15 10:19:34| Took 0.0 seconds ( 0.0 entries/sec). CPU Usage: 0.048 seconds = 0.016 user + 0.032 sys Maximum Resident Size: 0 KB Page faults with physical i/o: 0 Memory usage for squid via mallinfo(): total space in arena: 2228 KB Ordinary blocks: 2095 KB 27 blks Small blocks: 0 KB 5 blks Holding blocks: 280 KB 1 blks Free Small blocks: 0 KB Free Ordinary blocks: 132 KB Total in use: 2375 KB 95% Total free: 132 KB 5% 2009/09/15 10:19:34| logfileClose: closing log /var/log/squid/store.log 2009/09/15 10:19:34| Squid Cache (Version 2.7.STABLE3): Exiting normally. 2009/09/15 10:20:14| Starting Squid Cache version 2.7.STABLE3 for i386-debian-linux-gnu... 2009/09/15 10:20:14| Process ID 2358 2009/09/15 10:20:14| With 1024 file descriptors available 2009/09/15 10:20:14| Using epoll for the IO loop 2009/09/15 10:20:14| DNS Socket created at 0.0.0.0, port 45142, FD 6 2009/09/15 10:20:14| Adding nameserver 201.10.128.2 from /etc/resolv.conf 2009/09/15 10:20:14| Adding nameserver 201.10.1.2 from /etc/resolv.conf 2009/09/15 10:20:14| User-Agent logging is disabled. 2009/09/15 10:20:14| Referer logging is disabled. 2009/09/15 10:20:14| Unlinkd pipe opened on FD 10 2009/09/15 10:20:14| Swap maxSize 102400 KB, estimated 7876 objects 2009/09/15 10:20:14| Target number of buckets: 393 2009/09/15 10:20:14| Using 8192 Store buckets 2009/09/15 10:20:14| Max Mem size: 8192 KB 2009/09/15 10:20:14| Max Swap size: 102400 KB 2009/09/15 10:20:14| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec 2009/09/15 10:20:14| logfileOpen: opening log /var/log/squid/store.log 2009/09/15 10:20:14| Rebuilding storage in /var/spool/squid (CLEAN) 2009/09/15 10:20:14| Using Least Load store dir selection 2009/09/15 10:20:14| Current Directory is / 2009/09/15 10:20:14| Loaded Icons. 2009/09/15 10:20:15| Accepting proxy HTTP connections at 0.0.0.0, port 3128, FD 12. 2009/09/15 10:20:15| Accepting ICP messages at 0.0.0.0, port 3130, FD 13. 2009/09/15 10:20:15| HTCP Disabled. 2009/09/15 10:20:15| WCCP Disabled. 2009/09/15 10:20:15| Ready to serve requests. 2009/09/15 10:20:15| Done reading /var/spool/squid swaplog (0 entries) 2009/09/15 10:20:15| Finished rebuilding storage from disk. 2009/09/15 10:20:15| 0 Entries scanned 2009/09/15 10:20:15| 0 Invalid entries. 2009/09/15 10:20:15| 0 With invalid flags. 2009/09/15 10:20:15| 0 Objects loaded. 2009/09/15 10:20:15| 0 Objects expired. 2009/09/15 10:20:15| 0 Objects cancelled. 2009/09/15 10:20:15| 0 Duplicate URLs purged. 2009/09/15 10:20:15| 0 Swapfile clashes avoided. 2009/09/15 10:20:15| Took 1.3 seconds ( 0.0 objects/sec). 2009/09/15 10:20:15| Beginning Validation Procedure 2009/09/15 10:20:15| Completed Validation Procedure 2009/09/15 10:20:15| Validated 0 Entries 2009/09/15 10:20:15| store_swap_size = 0k 2009/09/15 10:20:16| storeLateRelease: released 0 objects proxy-rm:~# |
|||
« Anteriores | Seguintes »
|
Mensagens neste Tópico |
Re: proxy - tosko - 15/09/2009 11:25
Re: proxy - kuruminbranco - 28/09/2009, 22:58
Re: proxy - kuruminbranco - 28/09/2009, 22:58
|
Usuários visualizando este tópico: 1 Visitantes