با سلام
ايا اين پارتيشن بندي كه من براي squid ميكنم درست هست يا نه.هاردم سامسونگ 80 هستش با 1 گيگ رم و از اكانتينگ IBSng استفاده ميكنم.
Mount Point : /---------------------------------------- File system TyPE : EXT3 ----------------------------------Size:10000
Mount Point : /usr------------------------------------- File system TyPE : EXT3 ----------------------------------Size:10000
Mount Point : /var------------------------------------- File system TyPE : EXT3---------------------------------- Size:10000
Mount Point : /var/lib/pgsql-------------------------- File system TyPE : EXT3 ----------------------------------Size:15000
Mount Point : /mnt/backup--------------------------- File system TyPE : EXT3---------------------------------- Size:15000
(حجم رم + 500 )File system TyPE : Swap--------------- Size: 1500
Mount Point : /cache---------------- File system TyPE : EXT3 ------------------------Size : fill to maximum allowable size
و بعد در قسمت Customize now تيك همه گزينه هاي :
Desktop Environments
Development
Servers
Base system
را انتخاب ميكنم و تمام تيكهاشون را ميذارم.
آيا اين كاري كه ميكنم درست هست يا نه و بعد از اين كارها squid را نصب ميكنم و webmin هم نصب ميكنم و ip مجازي رو هم درست ميكنم و در قسمت other/file manager روي گزينه cache كليك ميكنم و گزينه بالا Acl رو انتخاب ميكنم و تمام تيكهاي other , ghrop , user را ميذارم و فايل كانفيگ كشم را هم ميذارم در شاخه etc/squid و بعد در ترمينال كه squid -z , squid -d1 رو ميزنم squid اجرا ميشه ولي كه موقعه اي كه فرمان service squid restart را ميزنم Failed ميده.
مشكل از كجاست ميشه كمك كنيد.
اين هم كانفيگ كشم هستش :آيا اين كانفيگ مشكل داره من چت كارت هم دارم.
ميشه مشكل اين كانفيگه رو بگوييد.و آيا تغييرات ديگه اي بايد در فايلهاي rc.local . sysctl.conf بدم.
من اين تغييرات را در فايل sysctl.conf را دادم : net.ipv4.ip_forward =0 صفر را به 1 تغيير دادم ودر فايل rc.local اين تغييرات را اضافه كردم :
echo 1> /proc/sys/net/ipv4/ip_forward iptables -F iptables -t nat -A PREROUTING -p Tcp --dport 80 -j REDIRECT --to-port 3128
بيصرانه منتظر جواب شما دوستان هستم.
http_port 12.13.26.24:6565
http_port 3128
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_mem 1000 MB
cache_swap_low 90
cache_swap_high 97
cache_dir ufs /cache 10000 16 256
cache_log /dev/null
cache_access_log /var/log/squid/access.log
cache_store_log none
cache_swap_log /cache/swap.log
logfile_rotate 10
redirect_rewrites_host_header off
cache_replacement_policy GDSF
acl localnet src 217.146.211.148/255.255.255.192
acl bluirest src 80.191.223.0/255.255.255.224
acl invalidip src 2.2.2.0/255.255.255.0
acl invalidip1 src 3.3.3.0/255.255.255.0
acl wireless_no src 4.4.4.0/255.255.255.0
acl no_filter myip 12.13.26.24/255.255.255.255
acl localhost src 127.0.0.1/255.255.255.255
acl Safe_ports port 80 443 210 119 70 20 21 1025-65535
acl yahoo_ports port 5000 5001 5050 5100
acl CONNECT method CONNECT
acl all src 0.0.0.0/0.0.0.0
acl yahoo1 dstdomain .mail.yahoo.com
acl yahoo2 dst 64.4.20.0/255.255.255.0
acl passport dstdomain .passport.net
acl passcom dstdomain .passport.com
acl hotmail dstdomain .hotmail.com
http_access allow localnet
http_access allow bluirest
http_access allow localhost
http_access allow invalidip
acl yahoo15 dstdomain insider.yahoo.com
http_access allow invalidip1 yahoo_ports
http_access allow invalidip1 yahoo15
http_access deny invalidip1
http_access allow wireless_no
http_access allow no_filter2
http_access allow no_filter
http_access deny !Safe_ports
http_access deny CONNECT
http_access allow all
maximum_object_size 3000 KB
store_avg_object_size 50 KB
visible_hostname swa
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
cache_effective_user squid
cache_effective_group squid
log_icp_queries off
buffered_logs on
refresh_pattern \.gif$ 10080 90% 43200
refresh_pattern \.jpg$ 10080 90% 43200
refresh_pattern \.bom\.gov\.au 30 20% 120
refresh_pattern \.html$ 480 50% 22160
refresh_pattern \.htm$ 480 50% 22160
refresh_pattern \.class$ 10080 90% 43200
refresh_pattern \.zip$ 10080 90% 43200
refresh_pattern \.jpeg$ 10080 90% 43200
refresh_pattern \.mid$ 10080 90% 43200
refresh_pattern \.shtml$ 480 50% 22160
refresh_pattern \.exe$ 10080 90% 43200
refresh_pattern \.thm$ 10080 90% 43200
refresh_pattern \.wav$ 10080 90% 43200
refresh_pattern \.txt$ 10080 90% 43200
refresh_pattern \.cab$ 10080 90% 43200
refresh_pattern \.au$ 10080 90% 43200
refresh_pattern \.mov$ 10080 90% 43200
refresh_pattern \.xbm$ 10080 90% 43200
refresh_pattern \.ram$ 10080 90% 43200
refresh_pattern \.avi$ 10080 90% 43200
refresh_pattern \.chtml$ 480 50% 22160
refresh_pattern \.thb$ 10080 90% 43200
refresh_pattern \.dcr$ 10080 90% 43200
refresh_pattern \.bmp$ 10080 90% 43200
refresh_pattern \.phtml$ 480 50% 22160
refresh_pattern \.mpg$ 10080 90% 43200
refresh_pattern \.pdf$ 10080 90% 43200
refresh_pattern \.art$ 10080 90% 43200
refresh_pattern \.swf$ 480 50% 22160
refresh_pattern \.mp3$ 10080 90% 43200
refresh_pattern \.ra$ 10080 90% 43200
refresh_pattern \.spl$ 10080 90% 43200
refresh_pattern \.viv$ 10080 90% 43200
refresh_pattern \.doc$ 10080 90% 43200
refresh_pattern \.gz$ 10080 90% 43200
refresh_pattern \.Z$ 10080 90% 43200
refresh_pattern \.tgz$ 10080 90% 43200
refresh_pattern \.tar$ 10080 90% 43200
refresh_pattern \.vrm$ 10080 90% 43200
refresh_pattern \.vrml$ 10080 90% 43200
refresh_pattern \.aif$ 10080 90% 43200
refresh_pattern \.aifc$ 10080 90% 43200
refresh_pattern \.aiff$ 10080 90% 43200
refresh_pattern \.arj$ 10080 90% 43200
refresh_pattern \.c$ 10080 90% 43200
refresh_pattern \.cpt$ 10080 90% 43200
refresh_pattern \.dir$ 10080 90% 43200
refresh_pattern \.dxr$ 10080 90% 43200
refresh_pattern \.hqx$ 10080 90% 43200
refresh_pattern \.jpe$ 10080 90% 43200
refresh_pattern \.lha$ 10080 90% 43200
refresh_pattern \.lzh$ 10080 90% 43200
refresh_pattern \.midi$ 10080 90% 43200
refresh_pattern \.movie$ 10080 90% 43200
refresh_pattern \.mp2$ 10080 90% 43200
refresh_pattern \.mpe$ 10080 90% 43200
refresh_pattern \.mpeg$ 10080 90% 43200
refresh_pattern \.mpga$ 10080 90% 43200
refresh_pattern \.pl$ 10080 90% 43200
refresh_pattern \.ppt$ 10080 90% 43200
refresh_pattern \.ps$ 10080 90% 43200
refresh_pattern \.qt$ 10080 90% 43200
refresh_pattern \.qtm$ 10080 90% 43200
refresh_pattern \.ras$ 10080 90% 43200
refresh_pattern \.sea$ 10080 90% 43200
refresh_pattern \.sit$ 10080 90% 43200
refresh_pattern \.tif$ 10080 90% 43200
refresh_pattern \.tiff$ 10080 90% 43200
refresh_pattern \.snd$ 10080 90% 43200
refresh_pattern \.wrl$ 10080 90% 43200
refresh_pattern ^ftp:// 480 60% 22160
refresh_pattern ^gopher:// 30 20% 120
refresh_pattern . 480 50% 22160
ie_refresh on
quick_abort_min 320 KB
quick_abort_max 1000 KB
quick_abort_pct 80
ftp_passive on
موضوعات مشابه: