เปิดรับสมัครสมาชิก webboard ตามปกติแล้วครับ

ผู้เขียน หัวข้อ: มันผิดพลาดที่ตรงไหนหรอครับ(แก๊สโซฮอลไม่เกี่ยวนะครับ)  (อ่าน 2666 ครั้ง)

0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้

ออฟไลน์ karakorn

  • ศิษย์ก้นกุฏิ ...ปี.2
  • ******
  • กระทู้: 252
  • Reputation: 1
  • เพศ: ชาย
ผมเข้า putty แล้ว ใช้ service squid status
ก็เห็น is running แต่ข้อความเพิ่มอีกในอีก2-3บรรทัดว่า
2008/08/22 13:31:51 | ACL name 'webconfig lan' not defined!
FATAL: Bungled squid.conf Line 1:http_acces allow webconfig_lan
Squid Cache (Version 2.5 STABLE14): Terminated abnormally.

กด service squid start ก็ fail
    service squid stop ก็ fail

ใช้squid truefaster2.5v.2

ไม่ทราบว่า squid เสีย หรือ ผิดพลาดตรงไหนครับ ผมไม่ได้ไปแก้อะไรเลยนะครับ

ทั้งหมดนี้ผมก๊อบมาจาก /etc/squid.config

http_access allow webconfig_lan
reply_body_max_size 0 allow all
# TrueF@STer Squid VIP V2
# BY Mr.X

# NETWORK OPTIONS
# —————————————————————

http_port 0.0.0.0:3128
tcp_outgoing_address 0.0.0.0
udp_incoming_address 0.0.0.0
udp_outgoing_address 0.0.0.0
icp_port 0

# Time Out
request_timeout 5 minutes
forward_timeout 5 minutes
connect_timeout 5 minutes
peer_connect_timeout 1 minutes
pconn_timeout 120 seconds
read_timeout 15 minutes
request_timeout 5 minutes
persistent_request_timeout 2 minute
shutdown_lifetime 3 seconds
negative_ttl 2 minutes
negative_ttl 3 minutes
positive_dns_ttl 120 seconds
negative_dns_ttl 120 seconds

netdb_low 900
netdb_high 1000
client_db on
client_lifetime 1 day

# Transparent

httpd_accel_host virtual
httpd_accel_port 0
httpd_accel_with_proxy on
httpd_accel_uses_host_header on

# mark for no cache
hierarchy_stoplist cgi-bin ? localhost .asp .aspx .php .inf .dll .Xt .xtp .ini localhost php$ inf$ dll$ Xt$ xtp$ ini$ asp$ aspx$
acl QUERY urlpath_regex cgi-bin \? localhost .asp .aspx .php .inf .dll .Xt .xtp .ini localhost php$ inf$ dll$ Xt$ xtp$ ini$ asp$ aspx$
no_cache deny QUERY

# OPTIONS WHICH AFFECT THE CACHE SIZE
# —————————————————————

cache_mem 128 MB
cache_swap_low 98
cache_swap_high 99
memory_pools on
memory_pools_limit 64 MB

maximum_object_size 7168 KB
maximum_object_size_in_memory 32 KB

ipcache_size 4096
ipcache_low 98
ipcache_high 99
fqdncache_size 4096

cache_replacement_policy heap LFUDA
memory_replacement_policy heap GDSF

# LOGFILE
# —————————————————————
cache_dir aufs /var/spool/squid 4096 16 256

cache_access_log /dev/null
cache_log /dev/null
cache_store_log none
# mime_table /usr/share/squid/mime.conf
pid_filename /var/run/squid.pid

log_fqdn off
client_netmask 255.255.255.255
ftp_passive on
ftp_sanitycheck on
dns_nameservers 127.0.0.1 203.146.102.231 208.67.222.222

# OPTIONS FOR TUNING THE CACHE
# —————————————————————
# refresh_pattern ^ftp: 10080 95% 241920 reload-into-ims override-lastmod
# refresh_pattern . 180 95% 120960 reload-into-ims override-lastmod

quick_abort_min 0 KB
quick_abort_max 0 KB
quick_abort_pct 100

half_closed_clients off

# ACL CONTROLS
# —————————————————————
acl Manager proto cache_object
acl all src 0.0.0.0/0
acl localhost src 127.0.0.0/8
# webconfig: acl_start
acl webconfig_lan src 192.168.16.0/24 
acl webconfig_to_lan dst 192.168.16.0/24 
# webconfig: acl_end
acl All_Port port 1-65535
acl CONNECT method CONNECT

http_access allow Manager all
http_access deny manager
http_access allow webconfig_to_lan
http_access allow All_Port
http_access allow CONNECT All_Port
http_access allow localhost
http_access allow all

http_reply_access allow all
icp_access allow all

# ADMINISTRATIVE PARAMETERS
# ——————————————————————-

cache_mgr [email protected]
visible_hostname truefaster

# MISCELLANEOUS
# ——————————————————————
logfile_rotate 3
log_icp_queries off
query_icmp off
buffered_logs off
reload_into_ims on
nonhierarchical_direct off
prefer_direct on
strip_query_terms off
pipeline_prefetch on
ie_refresh on
forwarded_for on
vary_ignore_expire on
store_dir_select_algorithm round-robin
ignore_unknown_nameservers on

header_access Allow allow all
header_access Authorization allow all
header_access Cache-Control allow all
header_access Content-Encoding allow all
header_access Content-Length allow all
header_access Content-Type allow all
header_access Date allow all
header_access Expires allow all
header_access Host allow all
header_access If-Modified-Since allow all
header_access Last-Modified allow all
header_access Location allow all
header_access Pragma allow all
header_access Accept allow all
header_access Accept-Charset allow all
header_access Accept-Encoding allow all
header_access Accept-Language allow all
header_access Content-Language allow all
header_access Mime-Version allow all
header_access Retry-After allow all
header_access Title allow all
header_access Connection allow all
header_access Proxy-Connection allow all
header_access All allow all

# cache_peer 203.146.102.232 parent 9099 0 default no-query no-delay login=x:xxxx
# never_direct allow all




# webconfig: http_port_start
http_port 192.168.16.1:3128
http_port 127.0.0.1:3128
# webconfig: http_port_end
 
เพิ่มเติมครับใช้ net  maxnet และ tot
ค่าdns 202.69.137.137   202.69.137.138 และ 203.113.24.199  203.113.127.199

ขอบพระคุณครับที่กรุณาแนะนำ
Signature cleanned by Admin

ออฟไลน์ Dynax505

  • นักเรียนประถม
  • ****
  • กระทู้: 51
  • Reputation: 0
FATAL: Bungled squid.conf Line 1:http_acces allow webconfig_lan
ผิดที่บรรทัดแรกนั้นแหละครับ  พิมพ์อะไรเกินป่าว _
Signature cleanned by Admin