Guest User

Untitled

a guest
Jul 13th, 2016
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.67 KB | None | 0 0
  1. #
  2. # Recommended minimum configuration:
  3. #
  4.  
  5. # Example rule allowing access from your local networks.
  6. # Adapt to list your (internal) IP networks from where browsing
  7. # should be allowed
  8. acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
  9. acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
  10. acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
  11. acl localnet src fc00::/7 # RFC 4193 local private network range
  12. acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) machines
  13.  
  14. acl SSL_ports port 443
  15. acl Safe_ports port 80 # http
  16. acl Safe_ports port 21 # ftp
  17. acl Safe_ports port 443 # https
  18. acl Safe_ports port 70 # gopher
  19. acl Safe_ports port 210 # wais
  20. acl Safe_ports port 1025-65535 # unregistered ports
  21. acl Safe_ports port 280 # http-mgmt
  22. acl Safe_ports port 488 # gss-http
  23. acl Safe_ports port 591 # filemaker
  24. acl Safe_ports port 777 # multiling http
  25. acl CONNECT method CONNECT
  26.  
  27. acl lan src 10.0.0.0/24
  28.  
  29. # Recommended minimum Access Permission configuration:
  30. #
  31. # Deny requests to certain unsafe ports
  32. http_access deny !Safe_ports
  33.  
  34. # Deny CONNECT to other than secure SSL ports
  35. http_access deny CONNECT !SSL_ports
  36.  
  37. # Only allow cachemgr access from localhost
  38. http_access allow localhost manager
  39. http_access deny manager
  40.  
  41. # We strongly recommend the following be uncommented to protect innocent
  42. # web applications running on the proxy server who think the only
  43. # one who can access services on "localhost" is a local user
  44. #http_access deny to_localhost
  45.  
  46. #
  47. # INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
  48. #
  49.  
  50. # Example rule allowing access from your local networks.
  51. # Adapt localnet in the ACL section to list your (internal) IP networks
  52. # from where browsing should be allowed
  53. http_access allow localnet
  54. http_access allow localhost
  55.  
  56. http_access allow lan
  57.  
  58. # And finally deny all other access to this proxy
  59. http_access deny all
  60.  
  61. # Squid normally listens to port 3128
  62. http_port 3128
  63.  
  64. # Uncomment and adjust the following to add a disk cache directory.
  65. #cache_dir ufs /var/spool/squid 100 16 256
  66.  
  67. # Leave coredumps in the first cache dir
  68. coredump_dir /var/spool/squid
  69.  
  70. #
  71. # Add any of your own refresh_pattern entries above these.
  72. #
  73. refresh_pattern ^ftp: 1440 20% 10080
  74. refresh_pattern ^gopher: 1440 0% 1440
  75. refresh_pattern -i (/cgi-bin/|?) 0 0% 0
  76. refresh_pattern . 0 20% 4320
  77.  
  78.  
  79. request_header_access Referer deny all
  80. request_header_access X-Forwarded-For deny all
  81. request_header_access Via deny all
  82. request_header_access Cache-Control deny all
  83.  
  84. icap_enable on
  85. icap_send_client_ip on
  86. icap_send_client_username on
  87. icap_client_username_header X-Authenticated-User
  88. icap_service service_req reqmod_precache bypass=1 icap://127.0.0.1:1344/squidclamav
  89. adaptation_access service_req allow all
  90. icap_service service_resp respmod_precache bypass=1 icap://127.0.0.1:1344/squidclamav
  91. adaptation_access service_resp allow all
  92.  
  93. # do not display IP address
  94. forwarded_for off
  95.  
  96. #
  97. # This file contains the default settings for c-icap
  98. #
  99. #
  100.  
  101.  
  102.  
  103. PidFile /var/run/c-icap/c-icap.pid
  104.  
  105.  
  106. CommandsSocket /var/run/c-icap/c-icap.ctl
  107.  
  108.  
  109. Timeout 300
  110.  
  111.  
  112. MaxKeepAliveRequests 100
  113.  
  114.  
  115. KeepAliveTimeout 600
  116.  
  117.  
  118. StartServers 3
  119.  
  120.  
  121. MaxServers 10
  122.  
  123.  
  124. MinSpareThreads 10
  125.  
  126.  
  127. MaxSpareThreads 20
  128.  
  129.  
  130. ThreadsPerChild 10
  131.  
  132.  
  133. MaxRequestsPerChild 0
  134.  
  135.  
  136. Port 1344
  137.  
  138. # TAG: User
  139. # Format: User username
  140. # Description:
  141. # The user owning c-icap's processes. By default, the owner is the
  142. # user who runs the program.
  143. # Default:
  144. # No value
  145. # Example:
  146. # User wwwrun
  147.  
  148. # TAG: Group
  149. # Format: Group groupname
  150. # Description:
  151. # The group of users owning c-icap's processes, which, by default
  152. # is the group of the current user.
  153. # Default:
  154. # No value
  155. # Example:
  156. # Group nogroup
  157.  
  158. ServerAdmin root@srv.world
  159.  
  160. ServerName prox.srv.world
  161.  
  162. # TAG: TmpDir
  163. # Format: TmpDir dir
  164. # Description:
  165. # dir is the location of temporary files.
  166. # Default:
  167. # TmpDir /var/tmp
  168. TmpDir /var/tmp
  169.  
  170. # TAG: MaxMemObject
  171. # Format: MaxMemObject bytes
  172. # Description:
  173. # The maximum memory size in bytes taken by an object which
  174. # is processed by c-icap . If the size of an object's body is
  175. # larger than the maximum size a temporary file is used.
  176. # Default:
  177. # MaxMemObject 131072
  178. MaxMemObject 131072
  179.  
  180. # TAG: DebugLevel
  181. # Format: DebugLevel level
  182. # Description:
  183. # The level of debugging information to be logged.
  184. # The acceptable range of levels is between 0 and 10.
  185. # Default:
  186. # DebugLevel 1
  187. DebugLevel 1
  188.  
  189. # TAG: Pipelining
  190. # Format: Pipelining on|off
  191. # Description:
  192. # Enable or disable ICAP requests pipelining
  193. # Default:
  194. # Pipelining on
  195. Pipelining on
  196.  
  197. # TAG: SupportBuggyClients
  198. # FORMAT: SupportBuggyClients on|off
  199. # Description:
  200. # Try to handle requests from buggy clients, for example ICAP requests
  201. # missing "rn" sequences
  202. # Default:
  203. # SupportBuggyClients off
  204. SupportBuggyClients off
  205.  
  206. # TAG: Allow204As200okZeroEncaps
  207. # Format: Allow204As200okZeroEncaps
  208. # Description:
  209. # When used the c-icap instead of allow 204 return "200 OK" responses
  210. # with zero encapsulated entities.
  211. # Default:
  212. # No set
  213.  
  214. # TAG: ModulesDir
  215. # Format: ModulesDir dir
  216. # Description:
  217. # The location of modules
  218. # Default:
  219. # ModulesDir /usr/local/c-icap-0.4.x/lib/c_icap
  220. ModulesDir /usr/local/lib/c_icap
  221.  
  222. # TAG: ServicesDir
  223. # Format: ServicesDir dir
  224. # Description:
  225. # The location of services
  226. # Default:
  227. # ServicesDir /usr/local/c-icap-0.4.x/lib/c_icap
  228. ServicesDir /usr/local/lib/c_icap
  229.  
  230. # TAG: TemplateDir
  231. # Format: TemplateDir dir
  232. # Description:
  233. # The location of the text templates used by c-icap and its services,
  234. # categorized by language and services/modules
  235. # Default:
  236. # No value
  237. # Example:
  238. TemplateDir /usr/local/share/c_icap/templates/
  239.  
  240. # TAG: TemplateDefaultLanguage
  241. # Format: TemplateDefaultLanguage lang
  242. # Description:
  243. # Sets the default language to use for text templates
  244. # Default:
  245. # TemplateDefaultLanguage en
  246. TemplateDefaultLanguage en
  247.  
  248. #TemplateReloadTime 360
  249. #TemplateCacheSize 20
  250. #TemplateMemBufSize 8192
  251.  
  252. # TAG: LoadMagicFile
  253. # Format: LoadMagicFile path
  254. # Description:
  255. # Load a c-icap magic file. A magic file contains various
  256. # data type definitions. Look inside default c-icap.magic file
  257. # for more informations.
  258. # It can be used more than once to use multiple magic files.
  259. # Default:
  260. # LoadMagicFile /usr/local/c-icap-0.4.x/etc/c-icap.magic
  261. LoadMagicFile /usr/local/etc/c-icap.magic
  262.  
  263. # TAG: RemoteProxyUsers
  264. # Format: RemoteProxyUsers onoff
  265. # Description:
  266. # Set it to on if you want to use username provided by the proxy server.
  267. # This is the recomended way to use users in c-icap.
  268. # If the RemoteProxyUsers is off and c-icap configured to use users or
  269. # groups the internal authentication mechanism will be used.
  270. # Default:
  271. # RemoteProxyUsers off
  272. RemoteProxyUsers off
  273.  
  274. # TAG: RemoteProxyUserHeader
  275. # Format: RemoteProxyUserHeader Header
  276. # Description:
  277. # Used to specify the icap header used by the proxy server to send
  278. # the authenticated client username to c-icap server
  279. # Default:
  280. # RemoteProxyUserHeader X-Authenticated-User
  281. RemoteProxyUserHeader X-Authenticated-User
  282.  
  283. # TAG: RemoteProxyUserHeaderEncoded
  284. # Format: RemoteProxyUserHeaderEncoded onoff
  285. # Description:
  286. # Set it to off if the RemoteProxyUserHeader is not base64 encoded
  287. # Default:
  288. # RemoteProxyUserHeaderEncoded on
  289. RemoteProxyUserHeaderEncoded on
  290.  
  291. # TAG: AuthMethod
  292. # Format: AuthMethod Method Authenticator
  293. # Description:
  294. # Used to define the internal authentication mechanism to use. This
  295. # feature is not well tested and may cause problems. It is better to use
  296. # RemoteProxyUser configuration.
  297. # Method is the authentication method to use (basic, digest, etc).
  298. # Currently only basic authentication method is implemented as build in
  299. # module
  300. # Authenticator currently can only be "basic_simple_db"
  301. # It can be considered as a user/password store and can be
  302. # implemented as external module. The basic_simple_db is implemented as
  303. # build it module
  304. # Default:
  305. # No set
  306. # Example:
  307. # AuthMethod basic basic_simple_db
  308.  
  309. # TAG: basic.Realm
  310. # Format: basic.Realm ARealm
  311. # Description:
  312. # Specify the basic method realm
  313. # Default:
  314. # basic.Realm "Basic authentication"
  315. # Example:
  316. # basic.Realm "c-icap server authentication"
  317.  
  318. # TAG: basic_simple_db.UsersDB
  319. # Format: basic_simple_db.UsersDB LookupTable
  320. # Description:
  321. # Specify the lookup table where the usernames/passwords pairs
  322. # are stored. The paswords must be unencrypted
  323. # For more information about c-icap lookup tables read c-icap server
  324. # manual page
  325. # Default:
  326. # No value
  327. # Example:
  328. # basic_simple_db.UsersDB hash:/usr/local/c-icap/etc/c-icap-users.txt
  329.  
  330. # TAG: GroupSourceByGroup
  331. # Format: GroupSourceByGroup LookupTable
  332. # Description:
  333. # Defines a lookup table where the groups of users are stored indexed
  334. # by group. It can be used more than once.
  335. # For more information about c-icap lookup tables read c-icap server
  336. # manual page
  337. # Default:
  338. # No set
  339. # Example:
  340. # GroupSourceByGroup hash:/usr/local/c-icap/etc/c-icap-groups.txt
  341.  
  342. # TAG: GroupSourceByUser
  343. # Format: GroupSourceByUser LookupTable
  344. # Description:
  345. # Defines a lookup table where the groups of users are stored indexed
  346. # by user. It can be used more than once.
  347. # For more information about c-icap lookup tables read c-icap server
  348. # manual page
  349. # Default:
  350. # No set
  351. # Example:
  352. # GroupSourceByUser hash:/usr/local/c-icap/etc/c-icap-user-groups.txt
  353.  
  354. # TAG: acl
  355. # Format: acl name type[{param}] value1 [value2] [...]
  356. # Description:
  357. # Supported acl types are:
  358. # acl aclname service service1 ...
  359. # The servicename
  360. # acl aclname type OPTIONS|RESPMOD|REQMOD ...
  361. # The icap method
  362. # acl aclname port port1 ...
  363. # The icap server port
  364. # acl aclname src ip1/netmask1 ...
  365. # The client ip address
  366. # acl aclname srvip ip1/netmask1 ...
  367. # The c-icap server ip address
  368. # acl aclname icap_header{HeaderName} value1 ...
  369. # Matches the icap header HeaderName with value1 ...
  370. # The values are in regex form: /avalue/flags
  371. # acl aclname icap_resp_header{HeaderName} value1 ...
  372. # The icap response header
  373. # The values are in regex form: /avalue/flags
  374. # acl aclname http_req_header{HeaderName} value1 ...
  375. # The http request header
  376. # The values are in regex form: /avalue/flags
  377. # acl aclname http_resp_header{HeaderName} value1 ...
  378. # The http response header
  379. # The values are in regex form: /avalue/flags
  380. # acl aclname data_type type1 ...
  381. # The data type as recognized by the internal data type
  382. # recognizer. The types are defined in c-icap.magic file
  383. # acl aclname auth username|* ...
  384. # The authenticated users. Using * instead of username means
  385. # all users.
  386. # acl aclname group group1 ...
  387. # if the user of request belongs to given groups
  388. # acl content_length{>|<|=} value1 ...
  389. # The content length of body data if the related information
  390. # included in http headers.
  391. # The parameter can take the value <, > or = to specify that
  392. # the acl will match if content length is less, greater or
  393. # equal to acl values.
  394. # acl time value1 ....
  395. # It checks agains current time. The values format is:
  396. # [DAY[,DAY,[..]]][/][HH:MM-HH:MM]
  397. # The DAY can be one of the following:
  398. # S - Sunday
  399. # M - Monday
  400. # T - Tuesday
  401. # W - Wednesday
  402. # H - Thursday
  403. # F - Friday
  404. # A - Saturday
  405. # acl http_client_ip ip1[/netmask1] ...
  406. # The HTTP client ip address, if it is available.
  407. # Default:
  408. # None set
  409. # Examples:
  410. # acl OPTIONS type OPTIONS
  411. # acl RESPMOD type RESPMOD
  412. # acl REQMOD type REQMOD
  413. # acl ALLREQUESTS type OPTIONS RESPMOD REQMOD
  414. # acl XHEAD icap_header{X-Test} /value/
  415. # acl ECHO service echo
  416. # acl localnet src 192.168.1.0/255.255.255.0
  417. # acl localhost src 127.0.0.1/255.255.255.255
  418. # acl all src 0.0.0.0/0.0.0.0
  419. # acl BigObjects content_length{>} 5000000
  420. # acl WorkingHours time M,T,W,H,F/8:00-18:00
  421. # acl FreeHour time Sunday,Saturday/8:00-23:59 M,T,W,H,F/18:01-23:59 M,T,W,H,F/0:00-7.59
  422.  
  423. # TAG: icap_access
  424. # Format: icap_access allow|deny [!]acl1 ...
  425. # Description:
  426. # Allowing or denying ICAP access based on defined access lists
  427. # Default:
  428. # None set
  429. # Example:
  430. # icap_access deny XHEAD
  431. # #Allow OPTIONS method for all:
  432. # icap_access allow localnet OPTIONS
  433. # #Require authentication for all users from local network:
  434. # icap_access allow AUTH localnet
  435. # icap_access deny all
  436.  
  437. # TAG: client_access
  438. # Format: client_access allow|deny acl1 [acl2] [...]
  439. # Description:
  440. # Allowing or denying connections on c-icap based on
  441. # defined access lists. Only the acl types src, srvip and port
  442. # can be used.
  443. # Default:
  444. # None set
  445. # Example:
  446. # client_access allow all
  447.  
  448. # TAG: LogFormat
  449. # Format: LogFormat Name Format
  450. # Description:
  451. # Name is a name for this log format.
  452. # Format is a string with embedded % format codes. % format codes
  453. # has the following form:
  454. # % [-] [width] [{argument}] formatcode
  455. # if - is specified then the output is left aligned
  456. # if width specified then the field is exactly width size
  457. # some formatcodes support arguments given as {argument}
  458. #
  459. # Format codes:
  460. # %a: Remote IP-Address
  461. # %la: Local IP Address
  462. # %lp: Local port
  463. # %>a: Http Client IP Address. Only supported if the proxy
  464. # client supports the "X-Client-IP" header
  465. # %<A: Http Server IP Address. Only supported if the proxy
  466. # client supports the "X-Server-IP" header
  467. # %ts: Seconds since epoch
  468. # %tl: Local time. Supports optional strftime format argument
  469. # %tg: GMT time. Supports optional strftime format argument
  470. # %>ho: Modified Http request header. Supports header name
  471. # as argument. If no argument given the first line returned
  472. # %huo: Modified Http request url
  473. # %<ho: Modified Http reply header. Supports header name
  474. # as argument. If no argument given the first line returned
  475. # %iu: Icap request url
  476. # %im: Icap method
  477. # %is: Icap status code
  478. # %>ih: Icap request header. Supports header name
  479. # as argument. If no argument given the first line returned
  480. # %<ih: Icap response header. Supports header name
  481. # as argument. If no argument given the first line returned
  482. # %Ih: Http bytes received
  483. # %Oh: Http bytes sent
  484. # %Ib: Http body bytes received
  485. # %Ob: Http body bytes sent
  486. # %I: Bytes received
  487. # %O: Bytes sent
  488. # %bph: The first 5 bytes of the body preview data. Non
  489. # printable characters printed in hex form.
  490. # Supports the number of bytes to output as argument.
  491. # %un: Username
  492. # %Sl: Service log string
  493. # %Sa: Attribute value set by service. The attribute name must
  494. # given as argument.
  495. # Default:
  496. # None set
  497. # Example:
  498. # LogFormat myFormat "%tl, %a %im %iu %is %I %O %Ib %Ob %{10}bph"
  499.  
  500. # TAG: ServerLog
  501. # Format: ServerLog LogFile
  502. # Description:
  503. # the file used by the build-in logger file_logger to
  504. # store debugging information, errors and other
  505. # information about the c-icap server.
  506. # Default:
  507. # ServerLog /usr/local/c-icap-0.4.x/var/log/server.log
  508. ServerLog /usr/local/var/log/server.log
  509.  
  510. # TAG: AccessLog
  511. # Format: AccessLog LogFile [LogFormat] [[!]acl1] [[!]acl2] [...]
  512. # Description:
  513. # LogFile is a file where to log access information.
  514. # LogFormat is the log format to use. If ommited c-icap uses:
  515. # "%tl, %la %a %im %iu %is"
  516. # Also acls can be used to select certain requests to be logged.
  517. # This directive can be used more than once to specify more than
  518. # one access log files
  519. # Default:
  520. # AccessLog /usr/local/c-icap-0.4.x/var/log/access.log
  521. # Example:
  522. # AccessLog /usr/local/c-icap-0.4.x/var/log/access.log MyFormat all
  523. AccessLog /usr/local/var/log/access.log
  524.  
  525. # TAG: Logger
  526. # Format: Logger LoggerName
  527. # Description:
  528. # Specify wich logger to use. By default uses the build in "file_logger" which
  529. # uses files for access and server logging.
  530. # Default:
  531. # Logger file_logger
  532. # Example:
  533. # Logger sys_logger
  534.  
  535. # TAG: Module
  536. # Format: Module Type ModuleFile
  537. # Description:
  538. # Load an external module/plugin to c-icap.
  539. # ModuleFile is the filename of the module. If no full path given then c-icap
  540. # searche in path defined by the ModulesDir configuration parameter.
  541. # Type is the type of the external module and can be one of the following:
  542. # - "logger" for modules implement a logger
  543. # - "common" for general purpose modules
  544. # Default:
  545. #
  546. # Example:
  547. # Module logger sys_logger.so
  548.  
  549. # TAG: Service
  550. # Format: Service aName ServiceFile
  551. # Description:
  552. # It loads the service ServiceFile. The argument aName used
  553. # as alias name for the service
  554. # Default:
  555. #
  556. # Example:
  557. # Service echo_service srv_echo.so
  558.  
  559. Service squidclamav squidclamav.so
  560.  
  561. # TAG: ServiceAlias
  562. # Format: ServiceAlias AliasName ServiceName[?param1=value1&param2=value2...]
  563. # Description:
  564. # Used to define an alias name for a service.
  565. # Default:
  566. #
  567. # Example:
  568. # ServiceAlias avscan srv_clamav?allow204=on&sizelimit=off&mode=simple
  569.  
  570.  
  571. #
  572. # TAG: General configuration parameters for all services
  573. # Description:
  574. # PreviewSize: The preview data size to advertise to the icap client
  575. # MaxConnections: The client should not use more than MaxConnections
  576. # for this service.
  577. # TransferPreview: The list of file extensions, seperated by commas,
  578. # for which the client should send preview data.
  579. # TransferIgnore: The list of file extensions that should not be sent
  580. # to the icap server
  581. # TransferComplete: The list of file extensions that should be sent
  582. # in their entirety, without preview, to the icap server
  583. # OptionsTTL: The options ttl for the service. The "sec[s]", "min" or
  584. # "hour[s]" can be used to secify that the time is in seconds
  585. # minutes or hours respectively. If no time-units given
  586. # seconds are assumed.
  587. # Allow206 on|off: Enable/disable advertise of 206 responses.
  588. #
  589. # Example:
  590. # echo.PreviewSize 512
  591. # echo.TransferIgnore gif, jpeg
  592. # echo.OptionsTTL 3 min
  593.  
  594.  
  595. ######################################################
  596. # External modules comming with core c-icap server
  597. #
  598. # Module: echo
  599. # Description:
  600. # Simple test service
  601. # Example:
  602. # Service echo srv_echo.so
  603. Service echo srv_echo.so
  604.  
  605. # Module: sys_logger
  606. # Description:
  607. # Add support for logging access and server events to syslog server
  608. # Use "Module" configuration parameter to load this module and "Logger"
  609. # to make it default logger for the c-icap.
  610. # Example:
  611. # Module logger sys_logger.so
  612. # Logger sys_logger
  613.  
  614.  
  615. # TAG: sys_logger.Prefix
  616. # Format: sys_logger.Prefix string
  617. # Description:
  618. # string is be presented in every syslog message.
  619. # Default:
  620. # sys_logger.Prefix "C-ICAP:"
  621.  
  622. # TAG: sys_logger.Facility
  623. # Format: sys_logger.Facility daemon|user|local1|local2|local3|local4|local5|local6|local7
  624. # Description:
  625. # specifies the facility type of syslog.
  626. # Default:
  627. # sys_logger.Facility daemon
  628.  
  629. # TAG: sys_logger.access_priority
  630. # Format: sys_logger.access_priority alert|crit|debug|emerg|err|info|notice|warning
  631. # Description:
  632. # determines the importance of the access log message
  633. # Default:
  634. # sys_logger.access_priority info
  635.  
  636. # TAG: sys_logger.server_priority
  637. # Format: sys_logger.server_priority alert|crit|debug|emerg|err|info|notice|warning
  638. # Description:
  639. # determines the importance of the server log message
  640. # Default:
  641. # sys_logger.server_priority crit
  642.  
  643. # TAG: sys_logger.LogFormat
  644. # Format: sys_logger.LogFormat LOGFORMAT
  645. # Description:
  646. # The log format to use. If no log format defined then
  647. # the following will be used:
  648. # "%la %a %im %iu %is"
  649. # Default:
  650. # None set
  651. # Example:
  652. # Logformat BasicFormat "%la %a %im %iu %is"
  653. # sys_logger.LogFormat BasicFormat
  654.  
  655. # TAG: sys_logger.access
  656. # Format: sys_logger.access [!]acl1 ...
  657. # Description:
  658. # Allow selecting ICAP requests to be logged using acls.
  659. # By default all requests will be logged.
  660. # Default:
  661. # None set
  662. # Example:
  663. # sys_logger.access all
  664.  
  665. # End module: sys_logger
  666.  
  667. # Module: bdb_tables
  668. # Description:
  669. # Add support for Berkeley DB based lookup tables. The format for
  670. # bdb path of the lookup table is:
  671. # bdb:/path/to/bdb
  672. # Use the c-icap-mkbdb utility to build Berkeley DB c-icap lookup tables
  673. # Example:
  674. # Module common bdb_tables.so
  675.  
  676. # End module: bdb_tables
  677.  
  678. # Module: dnsbl_tables
  679. # Description:
  680. # Add support for dns lookup tables. Can be used to access
  681. # dns block lists. The dnsbl lookup table path definition is:
  682. # dnsbl:domainname[{param1=val, ...}]
  683. # dnsbl table parameters can be one or more of the followings:
  684. # cache=no|cache_type
  685. # The cache type to use or 'no' for no cache.
  686. # cache-size=Size[K|M]
  687. # The cache size in RAM
  688. # cache-ttl=ttl
  689. # The cache ttl to use
  690. #
  691. # For example the lookup table for accessing the black.uribl.com
  692. # dns black list is:
  693. # dnsbl:black.uribl.com
  694. # Example:
  695. # Module common dnsbl_tables.so
  696.  
  697. # End module: dnsbl_tables
  698.  
  699. # Module: ldap_module
  700. # Description:
  701. # Add LDAP support to c-icap. The user can use LDAP based lookup tables
  702. # using the following lookup table path:
  703. # ldap://[username:password@]ldapserver?base?attr1,attr2?filter[{[param=value, ...]}]
  704. # The filter can contain the "%s" formating code which will be replaced by
  705. # the search key.
  706. # ldap table parameters can be one or more of the followings:
  707. # name=aName
  708. # A unique name to use for this table
  709. # cache=no|cache_type
  710. # The cache type to use or no for no cache.
  711. # cache-size=Size[K|M]
  712. # The cache size in RAM
  713. # cache-ttl=ttl
  714. # The cache ttl to use
  715. # cache-item-size=ItemSize[K|M]
  716. # The maximum item size
  717. #
  718. # Examples of supported ldap urls:
  719. # ldap://ldap.chtsanti.net?o=chtsanti?cn,uid?uid=%s{cache=memcached}
  720. # ldap://cn=Directory Manager:Apassword@ldap.chtsanti.net?o=chtsanti?mermberUid?(&(objectClass=posixGroup)(cn=%s))
  721. #
  722. # WARNING: is not enough tested it may contain bugs!
  723. # Example:
  724. # Module common ldap_module.so
  725.  
  726. # End module: ldap_module
  727.  
  728. # Module: memcached
  729. # Description:
  730. # Add support for memcached c-icap cache.
  731. # Example:
  732. # Module common memcached.so
  733.  
  734. # TAG: memcached.servers
  735. # Format: memcached.servers hostname1 hostname2 ...
  736. # Description:
  737. # Set the memcached servers to use
  738. # Default:
  739. # memcached.servers 127.0.0.1
  740.  
  741. # TAG: memcached.use_md5_keys
  742. # Format: memcached.use_md5_keys on|off
  743. # Description:
  744. # Whether to use or not md5 hash as key when the key exceeds the
  745. # MEMCACHED_MAX_KEY (normaly 251 bytes)
  746. # Default:
  747. # memcached.use_md5_keys on
  748.  
  749. # End module: memcached
Add Comment
Please, Sign In to add comment