DansGuardian bloqueio por Horário.

Tutoriais BrazilFW 3.x em Português

DansGuardian bloqueio por Horário.

Mensagempor hcsskt » Qua Out 05, 2011 7:45 pm

Para facilitar Instale o Painel do DansGuardian.
Código: Selecionar todos
get-pkg /users/tecjair/addons/dansguardian/dansguardian

Para saber mais ou duvidas da addons va no http://www.brazilfw.com.br/forum/viewtopic.php?f=58&t=80730

Para configurar ele por horário para bloquear e muito fácil.
Va em Addons>Dansguardian>Dansguardian clike em linsta de bloqueios.
Adicione nas lista que vc usar as linhas com exeção da que esta entre "":
Código: Selecionar todos
##Regra de Horario
"#     hora-minuto  08 00   hora-minuto 18 00 Dias  01234"
#time: 8 0 18 0 01234

obs: nao pode tirar o #do time e o brigatorio o uso do mesmo.
exemplo se vc bloqueia o Bloqueio por Extensao de Arquivos ficaria
Código: Selecionar todos
#Banned extension list

# File extensions with executable code
##Regra de Horario
#time: 8 0 18 0 01234

# The following file extensions can contain executable code.
# This means they can potentially carry a virus to infect your computer.

#.ade  # Microsoft Access project extension
#.adp  # Microsoft Access project
#.asx  # Windows Media Audio / Video
#.bas  # Microsoft Visual Basic class module
.bat  # Batch file
.cab  # Windows setup file
#.chm  # Compiled HTML Help file
.cmd  # Microsoft Windows NT Command script
.com  # Microsoft MS-DOS program
#.cpl  # Control Panel extension
#.crt  # Security certificate
#.dll  # Windows system file
.exe  # Program
#.hlp  # Help file
.ini  # Windows system file
#.hta  # HTML program
#.inf  # Setup Information
#.ins  # Internet Naming Service
#.isp  # Internet Communication settings
# .js   # JScript file - often needed in web pages
# .jse  # Jscript Encoded Script file - often needed in web pages
#.lnk  # Windows Shortcut
#.mda  # Microsoft Access add-in program
#.mdb  # Microsoft Access program
#.mde  # Microsoft Access MDE database
#.mdt  # Microsoft Access workgroup information
#.mdw  # Microsoft Access workgroup information
#.mdz  # Microsoft Access wizard program
#.msc  # Microsoft Common Console document
.msi  # Microsoft Windows Installer package
.msp  # Microsoft Windows Installer patch
#.mst  # Microsoft Visual Test source files
#.pcd  # Photo CD image, Microsoft Visual compiled script
#.pif  # Shortcut to MS-DOS program
#.prf  # Microsoft Outlook profile settings
.reg  # Windows registry entries
.scf  # Windows Explorer command
.scr  # Screen saver
.sct  # Windows Script Component
#.sh   # Shell script
#.shs  # Shell Scrap object
#.shb  # Shell Scrap object
.sys  # Windows system file
#.url  # Internet shortcut
.vb   # VBScript file
.vbe  # VBScript Encoded script file
.vbs  # VBScript file
#.vxd  # Windows system file
#.wsc  # Windows Script Component
#.wsf  # Windows Script file
#.wsh  # Windows Script Host Settings file
#.otf  # Font file - can be used to instant reboot 2k and xp
#.ops  # Office XP settings



# Arquivos que normalmente as coisas como uma não-executável, mas
# Pode conter macros e vírus nocivos

#.doc  # Word document
#.xls  # Excel document
#.pps


# Outros arquivos que podem conter arquivos com código executável

#.gz   # Gziped file
#.tar  # Tape ARchive file
#.zip  # Windows compressed file
#.tgz  # Unix compressed file
#.bz2  # Unix compressed file
#.cdr  # Mac disk image
#.dmg  # Mac disk image
#.smi  # Mac self mounting disk image
#.sit  # Mac compressed file
#.sea  # Mac compressed file, self extracting
#.bin  # Mac binary compressed file
#.hqx  # Mac binhex encoded file
#.rar  # Similar to zip


# Time/largura de banda arquivos desperdiçar

.mp3  # Music file
.mpeg # Movie file
.mpg  # Movie file
.avi  # Movie file
.asf  # this can also exploit a security hole allowing virus infection
.iso  # CD ISO image
.ogg  # Music file
.wmf  # Movie file
.bin # CD ISO image
.cue # CD ISO image
.flv # movie file

# Banned Media (Áudio, Vídeo, Streaming),Lista de extensão
# Organizar em ordem alfabética
# Alguns não têm Descrição

.3g2    #
.3gp      # Nokia Movie File
.3gp2
.3gpp
.3gpp2
.aac    # AAC Audio
.acp    # AAC for SD Media
.adts
.aif
.aifc
.aiff    # AIFF Audio
.amc    # AMC Media
.amr    # narrow-Band Content
.asf      # Media / this can also exploit a security hole allowing virus infection
.asx      # Windows Media Audio / Video
.au    # uLaw/AU Audio
.avi      # Movie file
.awb    # AMR Wide-Band Content
.bwf
.caf    # CAF Audio
.cda    # Audio CD File
.cdda    # Audio CD File
.cel
.cue     # CD ISO image
.dif
.divx    # Compress Movie
.dv    # Video Format used in Portable Camera
.flc      # Autodesk Animator
.fli
.gsm
.ivf
.kar    # Karaoke Media Files
.m15
.m1a
.m1s
.m1v
.m2v
.m3u    # MP3 Playlist
.m4a    # AAC Audio
.m4b
.m4e
.m4p    # AAC Audio (Protected)
.m4v    # Video (Protected)
.m75
.mid    # Midi Audio Files
.midi    # Midi Audio Files
.mjpg
.mov    # Movie Files
.mp1
.mp2
.mp3      # Music file
.mp4    # Mpeg-4 Media
.mpa
.mpe
.mpeg     # Movie file
.mpg      # Movie file
.mpga
.mpm
.mps
.mpv
.mpv2
.mqv      # Quicktime Movies
.mv
.ogg      # Music file
.ogm      # Ogg Based Movie Files
.pls      # Shoutcast type of radio
.qcp    # Qualcomm Purevoice Audio
.qt    # Quicktime File
.qtc
.qtl      # Quicktime Movies
.ra    # Real Audio
.ram    # Real Audio Media
.rm       # Real Media Files
.rmi
.rmm
.rmp
.rmvb    # Real Media Video
.rnx
.rp    # Real Player Files
.rt
.rts
.rtsp
.rv
.sd2    # Sound Designer II
.sdp      # Stream Descriptor
.sdv    # SD Video
#.sf
.smf
.smi    #
.smil     # SMIL Multimedia Presentation (Video and Audio Presentation
.snd
.ssm      # Streaming Media Metafile
.swa    # MP3 Audio
.swf      # Shockwave Streaming files
.ulw
.vfw       # Video for Windows
.wav
.wax
.wm
.wma
.wmf      # Movie file
.wmp
.wmv     # Windows Media Video
.wmx
.wvx
.xpl

assim ele so bloqueara durante os horarios informados,o mesmo server para as demais Bloqueio por Tipos de Arquivos - MIME, Bloqueio por Frases, Bloqueio de Expressaes Regulares na URL, Sites Banidos(Bloqueados), Bloqueio de URLs - Bloqueio Parcial de Sites, Bloqueio de URLs - Bloqueio Parcial de Sites. :o!
Agora Caso precise liberar durante o almoço:
Va em addons>DansGuardian>Configuraçoes Avançadas>Lista Cinza - Sites clique em editar
Código: Selecionar todos
#domains in grey list
#Don't bother with the www. or the http://

#The 'grey' lists override the 'banned' lists.
#The 'exception' lists override the 'banned' lists also.
#The difference is that the 'exception' lists completely switch
#off *all* other filtering for the match.  'grey' lists only
#stop the URL filtering and allow the normal filtering to work.

#An example of grey list use is when in Blanket Block (whitelist)
#mode and you want to allow some sites but still filter as normal
#on their content

#Another example of grey list use is when you ban a site but want
#to allow part of it.

#The greyurllist is for partly unblocking PART of a site
#The greysitelist is for partly unblocking ALL of a site

#As of DansGuardian 2.7.3 you can now include
#.tld so for example you can match .gov for example

#To include additional files in this list use this example:
#.Include</etc/dansguardian/anotherurllist>

#You can have multiple .Includes.

# Time limiting syntax:
# #time: <start hour> <start minute> <end hour> <end minute> <days>
# Example:
#time: 12 0 13 0 012345

off *all*

.Include</etc/brazilfw/dansguardian/lists/bannedextensionlist>
.Include</etc/brazilfw/dansguardian/lists/bannedmimetypelist>
.Include</etc/brazilfw/dansguardian/lists/bannedphraselist>
.Include</etc/brazilfw/dansguardian/lists/bannedregexpheaderlist>
.Include</etc/brazilfw/dansguardian/lists/bannedregexpurllist>
.Include</etc/brazilfw/dansguardian/lists/bannedsitelist>
.Include</etc/brazilfw/dansguardian/lists/bannedurllist>


# Remove the first # from the line above to enable this list only from
# 9am to 5pm, Monday to Friday.


# Blanket match.  To greylist all sites except those in the
# exceptionsitelist and greysitelist files, remove
# the # from the next line to leave only a '**':
#**

# Blanket SSL/CONNECT match.  To greylist all SSL
# and CONNECT tunnels except to addresses in the
# exceptionsitelist and greysitelist files, remove
# the # from the next line to leave only a '**s':
#**s

# Blanket IP match.  To greylist all sites specified only as an IP,
# remove the # from the next line to leave only a '*ip':
#*ip

# Blanket SSL/CONNECT IP match.  To greylist all SSL and CONNECT
# tunnels to sites specified only as an IP,
# remove the # from the next line to leave only a '*ips':
#*ips


#List other sites to greylist:

#www.bbc.co.uk



Testado e funcionando ^~, qualquer duvidas resolvemos aqui no fórum.
hcsskt
 

Voltar para BrazilFW 3.x

Quem está online

Usuários navegando neste fórum: Nenhum usuário registrado e 3 visitantes

cron