LinuxForum.Fans
Тема

[закрыто]Загрузка сервисов на автомате

Автор: Cruiser78 24 сообщений 8141 просмотров
#17348

xinetd нормально запускается и не имеет к проблемам никакого отношения. Можете отключить его загрузку при старте системы.

Cruiser78 написал:
Hrafn пишет:

Я 953 порт - это rndc

А это мне нужно? Для чего это и с чем его едят?

Он к named относится. Управление ДНС-сервером.

#17359
Hrafn написал:
Cruiser78, это так надо, чтобы служба network отключена была?

У меня правило - я трогаю только то, что знаю и с чем работаю. Поднимаю DNS - включаю named. Работаю с DHCP - включаю его. А раззбираться в том, что что-то на что-то повлияло и оно перестало поэтому работать только потому, что я его оключил по незнанию (или включил) - я не хочу.
Так что все настройки, кроме тех служб, которые я поднимал явно - по дефолту. Значит эта служба не была включена изначально? Возможно, тем более и на других серверах - отключена. Или она отключилась (yum постарался) после удаления NetworkManager'а. Хотя и на других серверах она тоже выключена.
Хотя, я один раз этот пакет уже удалял. Проблем включить нет.

Hrafn написал:
Зачем вам xinetd, у Вас не настроена там ничего.

Проблем выключить нет.

Hrafn написал:
Про штатные скрипты: меня интересовал файл messages на предмет выводов штатных скриптов запуска squid, clamav и c-icap во время загрузки.

Я давал логи с сервера, где пошли чудеса с переименованием интерфейсов и с пропажей самбы.
Теперь вырезка из прокси-сервера на его перезагрузку:

text
# cat c-icap-access.log 
Fri Mar 19 12:22:30 2010, 127.0.0.1, 127.0.0.1, OPTIONS, srv_clamav?, OK
Fri Mar 19 12:22:33 2010, 127.0.0.1, 127.0.0.1, REQMOD, srv_clamav?, OK
Fri Mar 19 12:22:48 2010, 127.0.0.1, 127.0.0.1, REQMOD, srv_clamav?, OK
Fri Mar 19 12:22:51 2010, 127.0.0.1, 127.0.0.1, OPTIONS, srv_clamav?, OK
Fri Mar 19 12:22:51 2010, 127.0.0.1, 127.0.0.1, RESPMOD, srv_clamav?, OK
Fri Mar 19 12:22:51 2010, 127.0.0.1, 127.0.0.1, REQMOD, srv_clamav?, OK
Fri Mar 19 12:22:52 2010, 127.0.0.1, 127.0.0.1, REQMOD, srv_clamav?, OK
Fri Mar 19 12:22:52 2010, 127.0.0.1, 127.0.0.1, REQMOD, srv_clamav?, OK
Fri Mar 19 12:22:52 2010, 127.0.0.1, 127.0.0.1, RESPMOD, srv_clamav?, OK
 и так далее
text
#cat clamd.log 
+++ Started at Fri Mar 19 12:19:53 2010
clamd daemon 0.95.3 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64)
Running as user clamav (UID 501, GID 501)
Log file size limited to 1048576 bytes.
Reading databases from /var/lib/clamav
Not loading PUA signatures.
Loaded 734157 signatures.
LOCAL: Removing stale socket file /tmp/clamd.socket
LOCAL: Unix socket file /tmp/clamd.socket
LOCAL: Setting connection queue length to 15
Limits: Global size limit set to 104857600 bytes.
Limits: File size limit set to 26214400 bytes.
Limits: Recursion level limit set to 16.
Limits: Files limit set to 10000.
Archive support enabled.
Algorithmic detection enabled.
Portable Executable support enabled.
ELF support enabled.
Mail files support enabled.
OLE2 support enabled.
PDF support enabled.
HTML support enabled.
Self checking every 600 seconds.

Вырезка по перезагрузке из messages приаттачена.

Hrafn написал:

Он к named относится. Управление ДНС-сервером.

Значит нужен. Внесем правило в iptables. Часом оно не к связке DHCP-DNS относится? Наверное, поэтому (по запрету) у меня DNS не обновлялся локальными компьютерами :-)

#17360

конфиги сквида и связанных с ним сервисов покажите

#17382
Hrafn написал:
конфиги сквида и связанных с ним сервисов покажите
text
# cat squid.conf
#
# Recommended minimum configuration:
#
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl localhost src ::1/128
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32
acl to_localhost dst ::1/128
acl denyhost  src 192.168.43.4

# Example rule allowing access from your local networks. # Adapt to list your (internal) IP networks from where browsing # should be allowed #acl localnet src 10.0.0.0/8 # RFC1918 possible internal network #acl localnet src 172.16.0.0/12 # RFC1918 possible internal network #acl localnet src 192.168.0.0/16 # RFC1918 possible internal network acl localnet src 192.168.43.0/24 # #acl localnet src fc00::/7 # RFC 4193 local private network range #acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) machines

acl SSL_ports port 443 acl Safe_ports port 80 # http acl Safe_ports port 21 # ftp acl Safe_ports port 443 # https acl Safe_ports port 70 # gopher acl Safe_ports port 210 # wais acl Safe_ports port 1025-65535 # unregistered ports acl Safe_ports port 280 # http-mgmt acl Safe_ports port 488 # gss-http acl Safe_ports port 591 # filemaker acl Safe_ports port 777 # multiling http acl icq_ports port 443 563 5190 acl CONNECT method CONNECT # # Recommended minimum Access Permission configuration: # # Only allow cachemgr access from localhost http_access allow manager localhost #http_access deny denyhost http_access deny manager

http_access allow icq_ports # Deny requests to certain unsafe ports http_access deny !Safe_ports

# Deny CONNECT to other than secure SSL ports http_access deny CONNECT !SSL_ports

# We strongly recommend the following be uncommented to protect innocent # web applications running on the proxy server who think the only # one who can access services on "localhost" is a local user #http_access deny to_localhost

# # INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS #

# Example rule allowing access from your local networks. # Adapt localnet in the ACL section to list your (internal) IP networks # from where browsing should be allowed http_access allow localnet http_access allow localhost

# And finally deny all other access to this proxy http_access deny all

# Squid normally listens to port 3128 http_port 192.168.43.2:3128 transparent

# We recommend you to use at least the following line. hierarchy_stoplist cgi-bin ?

# Uncomment and adjust the following to add a disk cache directory. cache_dir ufs /var/spool/squid 256 16 256 #Здесь: первый параметр - тип файловой системы squid'а, далее путь к ней, #размер дикового кэша в Mb и кол-во директорий первого и второго уровней. #Кэш в оперативной памяти: cache_mem 32 MB #Кэширование запросов DNS: fqdncache_size 1024 cache_mgr root

# Leave coredumps in the first cache dir coredump_dir /var/spool/squid

# Add any of your own refresh_pattern entries above these. refresh_pattern ^ftp: 1440 20% 10080 refresh_pattern ^gopher: 1440 0% 1440 refresh_pattern -i (/cgi-bin/|\?) 0 0% 0 refresh_pattern . 0 20% 4320

icap_enable on icap_preview_enable on icap_preview_size 128 icap_send_client_ip on

icap_service service_req reqmod_precache 0 icap://127.0.0.1:1344/srv_clamav icap_service service_resp respmod_precache 1 icap://127.0.0.1:1344/srv_clamav adaptation_access service_req allow all adaptation_access service_resp allow all

Остальные сквидовские конфиги - дефолтные. Я их не трогал.

text
# cat c-icap.conf

# # This file contains the default settings for c-icap #

PidFile /var/run/c-icap.pid CommandsSocket /var/run/c-icap/c-icap.ctl Timeout 300 KeepAlive On MaxKeepAliveRequests 100 ## set KeepAliveTimeout to -1 for no timeout KeepAliveTimeout 600 StartServers 3 MaxServers 10 MinSpareThreads 10 MaxSpareThreads 20 ThreadsPerChild 10 MaxRequestsPerChild 0

Port 1344 User nobody Group nobody

#ServerAdmin you@your.address # Not implemented yet #ServerName localhost:1344 # Not implemented yet

TmpDir /tmp MaxMemObject 131072

ServerLog /var/log/c-icap-server.log AccessLog /var/log/c-icap-access.log #DebugLevel 3

ModulesDir /usr/local/lib/c_icap Module logger sys_logger.so Module perl_handler perl_handler.so

sys_logger.Prefix "C-ICAP:" sys_logger.Facility local1

##Specify wich logger to use...... #Logger sys_logger Logger file_logger

## AclControlers example. The default_acl is the buildin acl controller ## To load an extrernal access controller named my_acl.so use: #Module access_controller my_acl.so

## This parameter needed to specify the order of used acl controllers ## If not specified access control will be disabled #AclControllers default_acl

## An example of acl lists for default_acl controller. ## acl and icap_access are aliases for default_acl.acl and default_acl.icap_access #acl localnet_options src 192.168.1.0/255.255.255.0 type options #acl localnet_respmod src 192.168.1.0/255.255.255.0 type respmod #acl localnet src 192.168.1.0/255.255.255.0 ##Use the folllowing to demand use of username ...... ##acl localnet src 192.168.1.0/255.255.255.0 user * #acl externalnet src 0.0.0.0/0.0.0.0 #acl barbarian src 192.168.1.5

acl localsquid_respmod src 127.0.0.1 type respmod acl localsquid src 127.0.0.1 acl externalnet src 0.0.0.0/0.0.0.0 ##An example to specify access to server #icap_access deny barbarian #icap_access allow localnet_options #icap_access allow localnet_respmod #icap_access allow localnet ## http_auth mean that the icap server must try to authenticate the request ## using the http headers .... #icap_access http_auth localnet #icap_access deny externalnet

icap_access allow localsquid_respmod icap_access allow localsquid icap_access deny externalnet

#Also you can specify which hosts to log or not. # Comment out the folowing two lines to log only the external net #icap_access nolog localnet icap_access log externalnet

##An example for authentication methods .... ## To load an extarnal authentication method module named my_authmethod.so use: #Module auth_method my_authmethod.so

##The following parameter needed to specify the order of authenticators for ##specific authentication method. file_basic is a buildin authenticator ##for buildin basic authentication method (Not implemented yet......) ...... #AuthMethod basic file_basic

ServicesDir /usr/local/lib/c_icap Service echo_module srv_echo.so Service url_check_module srv_url_check.so Service antivirus_module srv_clamav.so

##Adding the alias avscan for srv_clamav service. ServiceAlias avscan srv_clamav?allow204=on&sizelimit=off&mode=simple

# Antivirus module settings # For allowed file types or groups of file types look at c-icap.magic srv_clamav.ScanFileTypes TEXT DATA EXECUTABLE ARCHIVE GIF JPEG MSOFFICE #The percentage of data to sent if the downloaded file exceeds the StartSendPercentDataAfter size srv_clamav.SendPercentData 5 srv_clamav.StartSendPercentDataAfter 2M

##Comment out the following line to enable 204 responces outside previews for srv_clamav ## if your icap client support it. For squid let it off #srv_clamav.Allow204Responces on

# The Maximum object to be scanned. srv_clamav.MaxObjectSize 5M #The directory which clamav library will use as temporary. #srv_clamav.ClamAvTmpDir /tmp #Sets the maximum number of files in archive.)i Set it to 0 to disable it srv_clamav.ClamAvMaxFilesInArchive 0 #Sets the maximal archived file size. Set it to 0 to disable it. srv_clamav.ClamAvMaxFileSizeInArchive 100M #The maximal recursion level.Set it to 0 to disable it. srv_clamav.ClamAvMaxRecLevel 5

# And here the viralator-like mode. # where to save documents srv_clamav.VirSaveDir /opt/infected/ # from where the documents can be retrieved (you can find the get_file.pl script in contrib dir) #srv_clamav.VirHTTPServer "http://fortune/cgi-bin/get_file.pl?usename=%f&remove=1&file=" #srv_clamav.VirHTTPServer "DUMMY" # The refresh rate.... srv_clamav.VirUpdateTime 15 # For which filetypes the "virelator like mode" will be used. srv_clamav.VirScanFileTypes ARCHIVE EXECUTABLE

Кстати, пара параметров их этого конфига не очень корректно себя ведут:

text
# where to save documents
srv_clamav.VirSaveDir /opt/infected/
# from where the documents can be retrieved (you can find the get_file.pl script in contrib dir)
#srv_clamav.VirHTTPServer  "http://fortune/cgi-bin/get_file.pl?usename=%f&remove=1&file="
#srv_clamav.VirHTTPServer  "DUMMY" 

Каталог VirSaveDir= /opt/infected/ есть и права на него нужные выставлены. Но clamav его не находит. А если раскомментарить строчку с VirHTTPServer "DUMMY" - то перестает работать яндексовский поисковик. В запрос вставляется слово DUMMY и к нему лепится сам запрос.

Далее - дефолтный кофиг:

text
# cat c-icap.magic
# CURRENT GROUPS are :TEXT DATA EXECUTABLE ARCHIVE GRAPHICS STREAM DOCUMENT
#
#
0:MZ:MSEXE:DOS/W32 executable/library/driver:EXECUTABLE
0:LZ:DOSEXE:MS-DOS executable:EXECUTABLE
0:\177ELF:ELF:ELF unix executable:EXECUTABLE
0:\312\376\272\276:JavaClass:Compiled Java class:EXECUTABLE

#Archives 0:Rar!:RAR:Rar archive:ARCHIVE 0:PK\003\004:ZIP:Zip archive:ARCHIVE 0:PK00PK\003\004:ZIP:Zip archive:ARCHIVE 0:\037\213:GZip:Gzip compressed file:ARCHIVE 0:BZh:BZip:BZip compressed file:ARCHIVE 0:SZDD:Compress.exe:MS Copmress.exe'd compressed data:ARCHIVE 0:\037\235:Compress:UNIX compress:ARCHIVE 0:MSCF:MSCAB:Microsoft cabinet file:ARCHIVE 257:ustar:TAR:Tar archive file:ARCHIVE 0:\355\253\356\333:RPM:Linux RPM file:ARCHIVE #Other type of Archives 0:ITSF:MSCHM:MS Windows Html Help:ARCHIVE

# Graphics 0:GIF8:GIF:GIF image data:GRAPHICS 0:BM:BMP:BMP image data:GRAPHICS 0:\377\330:JPEG:JPEG image data:GRAPHICS 0:\211PNG:PNG:PNG image data:GRAPHICS 0:\000\000\001\000:ICO:MS Windows icon resource:GRAPHICS 0:FWS:SWF:Shockwave Flash data:GRAPHICS 0:CWS:SWF:Shockwave Flash data:GRAPHICS

#STREAM 0:\000\000\001\263:MPEG:MPEG video stream:STREAM 0:\000\000\001\272:MPEG::STREAM 0:RIFF:RIFF:RIFF video/audio stream:STREAM 0:OggS:OGG:Ogg Stream:STREAM 0:ID3:MP3:MP3 audio stream:STREAM 0:\377\373\220:MP3:MP3 audio stream:STREAM 0:\060\046\262\165\216\146\317:ASF:WMA/WMV/ASF:STREAM 0:.RMF:RMF:Real Media File:STREAM

#Documents 0:\320\317\021\340\241\261\032\341:MSOFFICE:MS Office Document:DOCUMENT 0:\208\207\017\224\161\177\026\225\000:MSOFFICE::DOCUMENT 4:Standard Jet DB:MSOFFICE:MS Access Database:DOCUMENT 0:%PDF-:PDF:PDF document:DOCUMENT 0:%!:PS:PostScript document:DOCUMENT

И

text
 # cat clamd.conf 
##
## Example config file for the Clam AV daemon
## Please read the clamd.conf(5) manual before editing this file.
##

# Comment or remove the line below. #Example

# Uncomment this option to enable logging. # LogFile must be writable for the user running daemon. # A full path is required. # Default: disabled LogFile /var/log/clamd.log

# By default the log file is locked for writing - the lock protects against # running clamd multiple times (if want to run another clamd, please # copy the configuration file, change the LogFile variable, and run # the daemon with --config-file option). # This option disables log file locking. # Default: no #LogFileUnlock yes

# Maximum size of the log file. # Value of 0 disables the limit. # You may use 'M' or 'm' for megabytes (1M = 1m = 1048576 bytes) # and 'K' or 'k' for kilobytes (1K = 1k = 1024 bytes). To specify the size # in bytes just don't use modifiers. # Default: 1M #LogFileMaxSize 2M

# Log time with each message. # Default: no #LogTime yes

# Also log clean files. Useful in debugging but drastically increases the # log size. # Default: no #LogClean yes

# Use system logger (can work together with LogFile). # Default: no #LogSyslog yes

# Specify the type of syslog messages - please refer to 'man syslog' # for facility names. # Default: LOG_LOCAL6 #LogFacility LOG_MAIL

# Enable verbose logging. # Default: no #LogVerbose yes

# This option allows you to save a process identifier of the listening # daemon (main thread). # Default: disabled #PidFile /var/run/clamd.pid

# Optional path to the global temporary directory. # Default: system specific (usually /tmp or /var/tmp). TemporaryDirectory /tmp

# Path to the database directory. # Default: hardcoded (depends on installation options) DatabaseDirectory /var/lib/clamav

# The daemon can work in local mode, network mode or both. # Due to security reasons we recommend the local mode.

# Path to a local socket file the daemon will listen on. # Default: disabled (must be specified by a user) LocalSocket /tmp/clamd.socket

# Remove stale socket after unclean shutdown. # Default: yes #FixStaleSocket yes

# TCP port address. # Default: no #TCPSocket 3310

# TCP address. # By default we bind to INADDR_ANY, probably not wise. # Enable the following to provide some degree of protection # from the outside world. # Default: no #TCPAddr 127.0.0.1

# Maximum length the queue of pending connections may grow to. # Default: 15 #MaxConnectionQueueLength 30

# Clamd uses FTP-like protocol to receive data from remote clients. # If you are using clamav-milter to balance load between remote clamd daemons # on firewall servers you may need to tune the options below.

# Close the connection when the data size limit is exceeded. # The value should match your MTA's limit for a maximum attachment size. # Default: 25M #StreamMaxLength 10M

# Limit port range. # Default: 1024 #StreamMinPort 30000 # Default: 2048 #StreamMaxPort 32000

# Maximum number of threads running at the same time. # Default: 10 #MaxThreads 20

# Waiting for data from a client socket will timeout after this time (seconds). # Value of 0 disables the timeout. # Default: 120 #ReadTimeout 300

# This option specifies the time (in seconds) after which clamd should # timeout if a client doesn't provide any initial command after connecting. # Default: 5 #CommandReadTimeout 5

# This option specifies how long to wait (in miliseconds) if the send buffer is full. # Keep this value low to prevent clamd hanging # # Default: 500 #SendBufTimeout 200

# Maximum number of queued items (including those being processed by MaxThreads threads) # It is recommended to have this value at least twice MaxThreads if possible. # WARNING: you shouldn't increase this too much to avoid running out of file descriptors, # the following condition should hold: # MaxThreads*MaxRecursion + (MaxQueue - MaxThreads) + 6< RLIMIT_NOFILE (usual max is 1024) # # Default: 100 #MaxQueue 200

# Waiting for a new job will timeout after this time (seconds). # Default: 30 #IdleTimeout 60

# Don't scan files and directories matching regex # This directive can be used multiple times # Default: scan all #ExcludePath ^/proc/ #ExcludePath ^/sys/

# Maximum depth directories are scanned at. # Default: 15 #MaxDirectoryRecursion 20

# Follow directory symlinks. # Default: no #FollowDirectorySymlinks yes

# Follow regular file symlinks. # Default: no #FollowFileSymlinks yes

# Perform a database check. # Default: 600 (10 min) #SelfCheck 600

# Execute a command when virus is found. In the command string %v will # be replaced with the virus name. # Default: no #VirusEvent /usr/local/bin/send_sms 123456789 "VIRUS ALERT: %v"

# Run as another user (clamd must be started by root for this option to work) # Default: don't drop privileges User clamav

# Initialize supplementary group access (clamd must be started by root). # Default: no #AllowSupplementaryGroups no

# Stop daemon when libclamav reports out of memory condition. #ExitOnOOM yes

# Don't fork into background. # Default: no #Foreground yes

# Enable debug messages in libclamav. # Default: no #Debug yes

# Do not remove temporary files (for debug purposes). # Default: no #LeaveTemporaryFiles yes

# Detect Possibly Unwanted Applications. # Default: no #DetectPUA yes

# Exclude a specific PUA category. This directive can be used multiple times. # See http://www.clamav.net/support/pua for the complete list of PUA # categories. # Default: Load all categories (if DetectPUA is activated) #ExcludePUA NetTool #ExcludePUA PWTool

# Only include a specific PUA category. This directive can be used multiple # times. # Default: Load all categories (if DetectPUA is activated) #IncludePUA Spy #IncludePUA Scanner #IncludePUA RAT

# In some cases (eg. complex malware, exploits in graphic files, and others), # ClamAV uses special algorithms to provide accurate detection. This option # controls the algorithmic detection. # Default: yes #AlgorithmicDetection yes

## ## Executable files ##

# PE stands for Portable Executable - it's an executable file format used # in all 32 and 64-bit versions of Windows operating systems. This option allows # ClamAV to perform a deeper analysis of executable files and it's also # required for decompression of popular executable packers such as UPX, FSG, # and Petite. # Default: yes #ScanPE yes

# Executable and Linking Format is a standard format for UN*X executables. # This option allows you to control the scanning of ELF files. # Default: yes #ScanELF yes

# With this option clamav will try to detect broken executables (both PE and # ELF) and mark them as Broken.Executable. # Default: no #DetectBrokenExecutables yes

## ## Documents ##

# This option enables scanning of OLE2 files, such as Microsoft Office # documents and .msi files. # Default: yes #ScanOLE2 yes

# This option enables scanning within PDF files. # Default: yes #ScanPDF yes

## ## Mail files ##

# Enable internal e-mail scanner. # Default: yes #ScanMail yes

# If an email contains URLs ClamAV can download and scan them. # WARNING: This option may open your system to a DoS attack. # Never use it on loaded servers. # Default: no #MailFollowURLs no

# Scan RFC1341 messages split over many emails. # You will need to periodically clean up $TemporaryDirectory/clamav-partial directory. # WARNING: This option may open your system to a DoS attack. # Never use it on loaded servers. # Default: no #ScanPartialMessages yes

# With this option enabled ClamAV will try to detect phishing attempts by using # signatures. # Default: yes #PhishingSignatures yes

# Scan URLs found in mails for phishing attempts using heuristics. # Default: yes #PhishingScanURLs yes

# Always block SSL mismatches in URLs, even if the URL isn't in the database. # This can lead to false positives. # # Default: no #PhishingAlwaysBlockSSLMismatch no

# Always block cloaked URLs, even if URL isn't in database. # This can lead to false positives. # # Default: no #PhishingAlwaysBlockCloak no

# Allow heuristic match to take precedence. # When enabled, if a heuristic scan (such as phishingScan) detects # a possible virus/phish it will stop scan immediately. Recommended, saves CPU # scan-time. # When disabled, virus/phish detected by heuristic scans will be reported only at # the end of a scan. If an archive contains both a heuristically detected # virus/phish, and a real malware, the real malware will be reported # # Keep this disabled if you intend to handle "*.Heuristics.*" viruses # differently from "real" malware. # If a non-heuristically-detected virus (signature-based) is found first, # the scan is interrupted immediately, regardless of this config option. # # Default: no #HeuristicScanPrecedence yes

## ## Data Loss Prevention (DLP) ##

# Enable the DLP module # Default: No #StructuredDataDetection yes

# This option sets the lowest number of Credit Card numbers found in a file # to generate a detect. # Default: 3 #StructuredMinCreditCardCount 5

# This option sets the lowest number of Social Security Numbers found # in a file to generate a detect. # Default: 3 #StructuredMinSSNCount 5

# With this option enabled the DLP module will search for valid # SSNs formatted as xxx-yy-zzzz # Default: yes #StructuredSSNFormatNormal yes

# With this option enabled the DLP module will search for valid # SSNs formatted as xxxyyzzzz # Default: no #StructuredSSNFormatStripped yes

## ## HTML ##

# Perform HTML normalisation and decryption of MS Script Encoder code. # Default: yes #ScanHTML yes

## ## Archives ##

# ClamAV can scan within archives and compressed files. # Default: yes #ScanArchive yes

# Mark encrypted archives as viruses (Encrypted.Zip, Encrypted.RAR). # Default: no #ArchiveBlockEncrypted no

## ## Limits ##

# The options below protect your system against Denial of Service attacks # using archive bombs.

# This option sets the maximum amount of data to be scanned for each input file. # Archives and other containers are recursively extracted and scanned up to this # value. # Value of 0 disables the limit # Note: disabling this limit or setting it too high may result in severe damage # to the system. # Default: 100M #MaxScanSize 150M

# Files larger than this limit won't be scanned. Affects the input file itself # as well as files contained inside it (when the input file is an archive, a # document or some other kind of container). # Value of 0 disables the limit. # Note: disabling this limit or setting it too high may result in severe damage # to the system. # Default: 25M #MaxFileSize 30M

# Nested archives are scanned recursively, e.g. if a Zip archive contains a RAR # file, all files within it will also be scanned. This options specifies how # deeply the process should be continued. # Note: disabling this limit or setting it too high may result in severe damage # to the system. # Value of 0 disables the limit. # Default: 16 #MaxRecursion 10

# Number of files to be scanned within an archive, a document, or any other # container file. # Value of 0 disables the limit. # Note: disabling this limit or setting it too high may result in severe damage # to the system. # Default: 10000 #MaxFiles 15000

## ## Clamuko settings ## WARNING: This is experimental software. It is very likely it will hang ## up your system!!! ##

# Enable Clamuko. Dazuko (/dev/dazuko) must be configured and running. # Default: no #ClamukoScanOnAccess yes

# Set access mask for Clamuko. # Default: no #ClamukoScanOnOpen yes #ClamukoScanOnClose yes #ClamukoScanOnExec yes

# Set the include paths (all files inside them will be scanned). You can have # multiple ClamukoIncludePath directives but each directory must be added # in a seperate line. # Default: disabled #ClamukoIncludePath /home #ClamukoIncludePath /students

# Set the exclude paths. All subdirectories are also excluded. # Default: disabled #ClamukoExcludePath /home/bofh

# Don't scan files larger than ClamukoMaxFileSize # Value of 0 disables the limit. # Default: 5M #ClamukoMaxFileSize 10M

Войдите или зарегистрируйтесь, чтобы ответить.