Dansguardian - Não consigo faze-lo funcionar.  [RESOLVIDO]

Fórum de discussão exclusivo para "proxies".

Dansguardian - Não consigo faze-lo funcionar.

Mensagempor RogerdosSantos » Ter Fev 19, 2013 11:22 am

Olá,

Estou com o seguinte problema: Instalei o BrazilFW 3.0.258, editei o arquivo de configuração do squid...

Código: Selecionar todos
edit /etc/brazilfw/custom/squid.cfg
Na linha WEB_CONTENT_FILTER='no'

Troque o 'no' por 'yes'

Salve e saia


...Salvei e reiniciei o servidor. Vi que, por padrão, o dansguardian bloqueia o site "badboys.com", então tentei acessa-lo e ele não estava bloqueado. Para testar novamente, inseri o domínio "baixaki.com" na mesma lista onde o domínio "badboys.com" estava. Salvei, reiniciei o servidor e o "baixaki.com" também não foi bloqueado.


O servidor não pussui nenhum add-on a mais. Provavelmente estou fazendo algo de errado e, por isso, estou pedindo ajuda.

Colocarei aqui alguns arquivos para que o problema, se necessário, seja melhor analisado:

brazilfw.cfg
Código: Selecionar todos
WEBADMIN_PORT='8181'
SSH_PORT='22'
ADMIN_AUTH='$1$0TXIobnj$jKFnNLE6Gszk/PWqEhkj/1'
DNSSERVER='yes'
HOSTNAME='brazilfw'
DNS1=''
DNS2=''
PERSIST_LOG='no'
PARTITION=''
TIME_ZONE='25,-3:00'
CACHE_DISK='no'
USE_QOS='no'
DHCP_SERVER='yes'
DHCP_DEFAULT_LEASE='7200'
DHCP_DNS1=''
DHCP_DNS2=''
IPUPDATE='no'
IPUPDATE_REFRESH='600'
USE_MAC_CONTROL='no'
CERTIFICATE_ISSUED_TO=''
EXTERNAL_PING='yes'
ENABLE_MYSQL='no'
ARP_SCAN_RETRY='1'
ARP_SCAN_TIMEOUT='250'
KEYBOARD='br-abnt2'
DNSFREECHOICE='no'
USE_RESTRICTION_FILE='no'
SHOW_LINK_USAGE='no'
DMZ=''
ADDON_EXPERIMENTAL='no'


squid.cfg
Código: Selecionar todos
MAXIMUM_OBJECT_SIZE=''
MAXIMUM_OBJECT_SIZE_MEMORY=''
MAXIMUM_CACHE_SIZE=''
MAXIMUM_RAM_CACHE_SIZE=''
WEB_CONTENT_FILTER='yes'
SQUID_REPORT='no'
REPORT_DELETE_AFTER_DAYS='0'
RUN_REPORT_PERIODIC='yes'
CACHE_LOG='no'
TPROXY='no'
HIDE_PROXY='no'



dansguardian.cfg
Código: Selecionar todos
reportinglevel = 3
languagedir = '/etc/brazilfw/dansguardian/languages'
language = 'ptbrazilian'
loglevel = 0
logexceptionhits = 2
logfileformat = 3
loglocation = '/partition/squid/logs/access.log'
filterip =
filterport = 3128
proxyip = 127.0.0.1
proxyport = 3129
usecustombannedimage = on
custombannedimagefile = '/usr/local/dansguardian/transparent1x1.gif'
filtergroups = 1
filtergroupslist = '/etc/brazilfw/dansguardian/filtergroupslist'
bannediplist = '/etc/brazilfw/dansguardian/bannediplist'
exceptioniplist = '/etc/brazilfw/dansguardian/exceptioniplist'
showweightedfound = off
weightedphrasemode = 0
urlcachenumber = 1000
urlcacheage = 900
scancleancache = off
phrasefiltermode = 2
preservecase = 0
hexdecodecontent = off
forcequicksearch = off
reverseaddresslookups = off
reverseclientiplookups = off
logclienthostnames = off
createlistcachefiles = on
maxuploadsize = -1
maxcontentfiltersize = 256
maxcontentramcachescansize = 2000
maxcontentfilecachescansize = 20000
filecachedir = '/tmp'
deletedownloadedtempfiles = on
initialtrickledelay = 20
trickledelay = 10
downloadmanager = '/etc/brazilfw/dansguardian/downloadmanagers/default.conf'
authplugin = '/etc/brazilfw/dansguardian/authplugins/ip.conf'
contentscannertimeout = 60
contentscanexceptions = off
recheckreplacedurls = off
forwardedfor = on
usexforwardedfor = on
logconnectionhandlingerrors = on
logchildprocesshandling = off
maxchildren = 120
minchildren = 8
minsparechildren = 4
preforkchildren = 6
maxsparechildren = 32
maxagechildren = 500
maxips = 0
ipcfilename = '/tmp/.dguardianipc'
urlipcfilename = '/tmp/.dguardianurlipc'
ipipcfilename = '/tmp/.dguardianipipc'
pidfilename = '/var/run/dansguardian.pid'
nodaemon = off
nologger = off
logadblocks = off
loguseragent = off
daemonuser = 'squid'
daemongroup = 'squid'
softrestart = off


bannedsitelist
Código: Selecionar todos
#domains in banned list
#Don't bother with the www. or the http://

#The bannedurllist is for blocking PART of a site
#The bannedsitelist is for blocking ALL of a site

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

#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.

#You can have multiple .Includes.

# Time limiting syntax:
# #time: <start hour> <start minute> <end hour> <end minute> <days>
# Example:
##time: 9 0 17 0 01234
# Remove the first # from the line above to enable this list only from
# 9am to 5pm, Monday to Friday.

# List categorisation
#listcategory: "Banned Sites"

#List other sites to block:

badboys.com
baixaki.com.br

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

#Blanket SSL/CONNECT Block.  To block 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 Block.  To block all sites specified only as an IP,
#remove the # from the next line to leave only a '*ip':
#*ip

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

Re: Dansguardian - Não consigo faze-lo funcionar.

Mensagempor DigiCal » Ter Fev 19, 2013 11:39 am

Instale esses dois addons e você conseguirá o que quer, com maior facilidade.

Painel de Controle do DansGuardian - Cpanel
Check System - Através do menu Addons/Gerencia/Instalar no Webadmin do BFW
"A resposta branda desvia o furor, mas a palavra dura suscita a ira." Provérbios 15:1
BrazilFW sempre!
Avatar do usuário
DigiCal
BFW Documenter
BFW Beneméritos
BFW Manager
 
Mensagens: 896
Registrado em: Sex Jun 04, 2010 5:50 pm
Localização: Carpina-PE
BrazilFW Box: BFW 3.0.262 (64 bits) + eBackup + MySAR

Re: Dansguardian - Não consigo faze-lo funcionar.  [RESOLVIDO]

Mensagempor RogerdosSantos » Ter Fev 19, 2013 11:48 am

Obrigado pela atenção, Digical,


O check system mostrou que o squid não estava ativado e eu achava que ele funcionaria automaticamente desde o inicio. Enfim, MUITO OBRIGADO. Tópico solucionado.
RogerdosSantos
 


Voltar para Proxies

Quem está online

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