tailieunhanh - hack proofing linux a Guide to Open Source Security phần 9

cô sẽ không thể biết sự khác biệt giữa vật lý làm việc tại vị trí của công ty và làm việc thông qua các khái niệm VPN được thể hiện trong hình . Hình từ xa Sử dụng một VPN An ninh Sử dụng mã nguồn mở GNU General Public License | 540 Chapter 10 Deploying the Squid Web Proxy Cache Server In addition the Squid files that reside in each cache directory generally grow until the logs are rotated or Squid is restarted. Therefore it is advisable to reserve an additional 10 percent for these Squid more free space Squid has the better it performs so you may want to reserve still more space to allow Squid that freedom. Considering all these factors a cache_dir setting of 14000 to 16500MB is advisable for a 20GB can configure your cache_dir setting using the following code cache_dir . 16000 16 256 Try this conservative setting initially and then check the disk usage once the cache is can increase the cache_dir setting gradually if you find that you have extra free disk need to decrease your cache size immediately if you receive any disk full write errors. Q I want to locate the largest objects in my cache. Is there a command I can use to do this A Enter the following command in Squid to return a list of the objects in your cache that are taking up the most space sort -r -n 4 -5 awk print 5 7 head -25 Q How can I restart Squid with an empty cache A Use the squid -k shutdown command to stop Squid before attempting to are a couple of methods you can use to restart Squid with a clean cache. The fastest is to overwrite the files for each cache using this method leave a single byte of garbage in the file. It is ineffective to reduce the file size to zero or delete the file completely. For each cache directory use the following command echo cache1 Do not change ownership or permissions on the files. After you have modified the file for each directory restart Squid. Another more time-consuming method for this operation involves recreating all the cache directories. Before doing this you must move the existing directories to another location as demonstrated with the following

TỪ KHÓA LIÊN QUAN