อยากให้ 1 user สามารถใช้งานอินเตอร์เน็ต ได้ทีละเครื่องเท่านั้น จะต้อง config ยังไงคาบ
ตกลงแล้วมันทามด้ายม้าย [คะ]
ขอเวลา วิจัย ก่อนครับ case นี้ยังไม่เคยลองครับ
ตอนแรกเป็น คาบ
ตอนหลังเป็น [คะ] :-*
ตกลงหญิง หรือ ชาย ++++ เอาผู้หญิงมาล่อตูเปล่าหว่า ;D
external_acl_type ipuser %SRC %LOGIN C:/squid/libexec/ip_user_check -f C:/squid/etc/ip_user.conf
acl resticted external ipuser
acl password proxy_auth REQUIRED
http_access allow password restricted
http_access deny all
คำสั่งประมาณนี้
พอมีแวว แต่ยังนึกไม่ออก :D รอไปก่อนครับ
ลองเอาไปอ่านทำความเข้าใจดูครับ
# TAG: external_acl_type
# This option defines external acl classes using a helper program to
# look up the status
#
# external_acl_type name [options] FORMAT.. /path/to/helper [helper arguments..]
#
# Options:
#
# ttl=n TTL in seconds for cached results (defaults to 3600
# for 1 hour)
# negative_ttl=n
# TTL for cached negative lookups (default same
# as ttl)
# children=n Concurrency level / number of processes spawn
# to service external acl lookups of this type.
# Note: see compatibility note below
# cache=n result cache size, 0 is unbounded (default)
# protocol=3.0 Use URL-escaped strings instead of quoting
#
# FORMAT specifications
#
# %LOGIN Authenticated user login name
# %IDENT Ident user name
# %SRC Client IP
# %DST Requested host
# %PROTO Requested protocol
# %PORT Requested port
# %METHOD Request method
# %{Header} HTTP request header
# %{Hdr:member} HTTP request header list member
# %{Hdr:;member}
# HTTP request header list member using ; as
# list separator. ; can be any non-alphanumeric
# character.
#
# In addition, any string specified in the referencing acl will
# also be included in the helper request line, after the specified
# formats (see the "acl external" directive)
#
# The helper receives lines per the above format specification,
# and returns lines starting with OK or ERR indicating the validity
# of the request and optionally followed by additional keywords with
# more details.
#
# General result syntax:
#
# OK/ERR keyword=value ...
#
# Defined keywords:
#
# user= The users name (login)
# error= Error description (only defined for ERR results)
#
# Keyword values need to be enclosed in quotes if they may contain
# whitespace, or the whitespace escaped using \. Any quotes or \
# characters within the keyword value must be \ escaped.
#
# If protocol=3.0 then URL escaping of the strings is used instead
# of the above described quoting format.
#
# Compatibility Note: The children= option was named concurrency= in
# Squid-2.5.STABLE3 and earlier and such syntax is still accepted to
# keep compatibility within the Squid-2.5 release. However, the meaning
# of concurrency= option has changed in Squid-3 and the old syntax of
# the directive is therefore deprecated from Squid-2.5.STABLE4 and later.
# If you want to be able to easily downgrade to earlier Squid-2.5
# releases you may want to continue using the old name, if not
# please use the new name.
#
#Default:
# none