[DNS] me bloquea url a otras ip  [INACTIVE]

Foro en español para discutir sobre cuestiones generales de BrazilFW 2.x.

[DNS] me bloquea url a otras ip

Mensagempor Horus » Sex Jun 15, 2012 1:21 pm

holas usando dns para bloquear paginas puse esto

address=/pornhub.com/10.20.2.4
address=/redtube.com/10.20.2.4
address=/youtube.com/10.20.2.4

pero me bloque otras pc (probe con 10.20.2.2), pero no me carga la paganina ((111) Connection refused)


saludos...
Avatar do usuário
Horus
BFW Very Participative
 
Mensagens: 311
Registrado em: Qui Abr 02, 2009 12:34 pm
BrazilFW Box:

Re: [DNS] me bloquea url a otras ip

Mensagempor Oso » Sáb Jun 16, 2012 12:50 am

por que no usas redirector.-
colocas la web que quieres renviar a x sitio y pones las ip de las pc que quieres q sufran dicha redireccion.
Oso
 

Re: [DNS] me bloquea url a otras ip

Mensagempor Horus » Sáb Jun 16, 2012 12:59 pm

cual es el link del addon, lo busque en la seccion, pero no lo encontre...

saludos..
Avatar do usuário
Horus
BFW Very Participative
 
Mensagens: 311
Registrado em: Qui Abr 02, 2009 12:34 pm
BrazilFW Box:


Re: [DNS] me bloquea url a otras ip

Mensagempor Horus » Dom Jun 17, 2012 7:05 pm

al ca**** el SQUID

aparece esto

/usr/local/squid/etc/squid.conf
Código: Selecionar todos
Stopping Squid ... FATAL: Bungled squid.conf line 90: url_rewrite_program /redirector/redirector.pl
Squid Cache (Version 2.7.STABLE6-20090224): Terminated abnormally.
Cron will be restarted within the next minute
Flush all old rules or create the chain if it is the first time
Configuring Squid ...
Check Disk Cache Partition ... Mount!
Cron will be restarted within the next minute
FATAL: Bungled squid.conf line 90: url_rewrite_program /redirector/redirector.pl
Squid Cache (Version 2.7.STABLE6-20090224): Terminated abnormally.
Squid to reconfigure
Flush all old rules or create the chain if it is the first time
Not proxy fbcdn.net
Not proxy zynga.com
Not proxy cityvillefb0.static.zgncdn.com
Not proxy cityvillefb3.static.zgncdn.com
Configuring Transparent Proxy to Squid
Forwarding net 192.168.10.0/24
Forwarding net 10.20.2.0/24
FATAL: Bungled squid.conf line 90: url_rewrite_program /redirector/redirector.pl
Squid Cache (Version 2.7.STABLE6-20090224): Terminated abnormally.


saludos..

Disabled squid.conf create: "si"

Código: Selecionar todos
http_port 8080 transparent
icp_port 0
#SquidCacheAux ACL start
acl store_rewrite_list urlpath_regex \/(get_video\?|videodownload\?|videoplayback.*id)
acl store_rewrite_list_orkut dstdomain .orkut.com .orkut.com.br
cache allow store_rewrite_list_orkut
acl QUERY2 urlpath_regex get_video\? videoplayback\? videodownload\?
cache allow QUERY2
acl googlevideo dstdomain .googlevideo.com
cache allow googlevideo
#SquidCacheAux ACL end
hierarchy_stoplist cgi-bin ?
   acl QUERY urlpath_regex cgi-bin \?
   cache deny QUERY
cache_replacement_policy heap LFUDA
memory_replacement_policy heap GDSF
cache_mem 128 MB
   maximum_object_size 51200 KB
   minimum_object_size 4 KB
   maximum_object_size_in_memory 64 KB
cache_dir diskd /partition/squid/cache 13000 16 256 Q1=72 Q2=64
access_log /partition/squid/logs/access.log
cache_log /partition/squid/logs/cache.log
cache_store_log none

cache_effective_user nobody
cache_effective_group nogroup
pid_filename /var/run/squid.pid
half_closed_clients off
server_persistent_connections off
client_persistent_connections off
memory_pools on
buffered_logs on
pipeline_prefetch on

dns_retransmit_interval 15 seconds

#cache_swap_low 70
#cache_swap_high 90
#SquidCacheAux URL_REWRITE start
url_rewrite_program /etc/SquidCacheAux/redir.pl
url_rewrite_children 6
#SquidCacheAux URL_REWRITE end

#SquidCacheAux refresh_pattern start
refresh_pattern orkut.com/.* 10080 100% 43200 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern orkut.com.br/.* 10080 100% 43200 override-expire override-lastmod reload-into-ims ignore-reload
refresh_pattern (get_video\?|videoplayback\?|videodownload\?) 5259487 99999999% 5259487 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private
refresh_pattern (get_video\?|videoplayback\?|videodownload\?|\.flv?)    129600 999999% 129600 ignore-no-cache ignore-private override-expire override-lastmod reload-into-ims
refresh_pattern (get_video\?|videoplayback\?id|videoplayback.*id|videodownload\?|\.flv?)    129600 999999% 129600 ignore-no-cache ignore-private override-expire override-lastmod reload-into-ims
refresh_pattern -i (get_video\?|videoplayback\?id|videoplayback.*id||videodownload\?|\.flv?)      129600 999999% 129600 ignore-no-cache ignore-private override-expire override-lastmod reload-into-ims
refresh_pattern ytimg\.com.*\.jpg               129600 999999% 129600   override-expire ignore-reload
#SquidCacheAux refresh_pattern end
refresh_pattern -i ^http://.*\.(css|htm|html|ico|js|jsp|xml)$ 1440 80% 999999
refresh_pattern -i ^http://.*\.(bmp|gif|jpeg|jpg|png)$ 1440 80% 999999 ignore-reload
refresh_pattern -i ^http://.*\.(ace|adt|arj|asf|avi|bin|bz2|bzip|cab|dat|dll|doc|dot|exe|fla|flv|gz|iso|lha|log|lzh|mdb|mid|mov|mp3|mpeg|mpg|msi|mso|ogg|pps|ppt|rar|rm|rtf|shs|src|sys|swf|tgz|tif|ttf|wav|wma|wri|wmv|vpu|vpaa|vqf|vob|zip)$ 43200 100% 999999 ignore-reload

refresh_pattern ^ftp:   1440   20%   10080
refresh_pattern ^gopher:   1440   0%   1440
refresh_pattern .      0   20%   4320

acl all src 0.0.0.0/0.0.0.0
acl localhost src 127.0.0.1/255.255.255.255
#acl to_localhost dst 127.0.0.1/32

acl SSL_ports port 443 563
acl Safe_ports port 80
acl Safe_ports port 21
acl Safe_ports port 443 563
acl Safe_ports port 70
acl Safe_ports port 210
acl Safe_ports port 8180
acl Safe_ports port 1025-65535
acl Safe_ports port 280
acl Safe_ports port 488
acl Safe_ports port 591
acl Safe_ports port 777
acl Safe_ports port 901

acl manager proto cache_object
acl PURGE method PURGE
acl CONNECT method CONNECT

http_access allow PURGE localhost
http_access allow manager localhost
http_access deny PURGE
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
url_rewrite_program /redirector/redirector.pl
redirect_children 15

acl filterneg dstdom_regex "/usr/local/squid/etc/filter.flt"
acl internal_net src "/usr/local/squid/etc/ipaccess.yes"

#Access deny to Squid ident. header
header_access Via deny all
header_access X-Forwarded-For deny all
header_access Proxy-Connection deny all
header_access Accept-Encoding deny all
http_access deny filterneg
http_access allow internal_net
http_access deny all
#http_reply_access allow all
#icp_access allow all
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
visible_hostname brazilfw
   coredump_dir /partition/squid/cache
   error_directory /usr/local/squid/share/errors/Spanish
### Zero Penalty Hits ###
server_persistent_connections off
zph_mode tos
zph_local 0x30
server_http11 on
#SquidCacheAux STOREURL start
storeurl_access allow store_rewrite_list
storeurl_access allow store_rewrite_list_orkut
storeurl_access deny all
storeurl_rewrite_program /etc/SquidCacheAux/storeurl.pl
storeurl_rewrite_children 6
storeurl_rewrite_concurrency 6
#SquidCacheAux STOREURL end

saludos
Avatar do usuário
Horus
BFW Very Participative
 
Mensagens: 311
Registrado em: Qui Abr 02, 2009 12:34 pm
BrazilFW Box:

Re: [DNS] me bloquea url a otras ip

Mensagempor Oso » Dom Jun 17, 2012 7:47 pm

revisa el post del redirector paso por paso.-
leelo bien de la primera ala ultima pag. que de seguro ya existe la respuesta a tu error
Oso
 

Re: [DNS] me bloquea url a otras ip

Mensagempor Horus » Seg Jun 18, 2012 1:25 am

no salia en ese link, pero buscando y rebuscando...

encontre que necesitaba este
http://www.brazilfw.com.br/forum/viewtopic.php?f=15&t=72723

ya que estaba trabajando con SCA


saludos..


PD: el redirector, como bloqueo el yotube??
Avatar do usuário
Horus
BFW Very Participative
 
Mensagens: 311
Registrado em: Qui Abr 02, 2009 12:34 pm
BrazilFW Box:


Voltar para BrazilFW 2.x - Ayuda en general

Quem está online

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