AJUDINHA AI GALERA SOBRE SQUI TRANSPARENT

1. AJUDINHA AI GALERA SOBRE SQUI TRANSPARENT

Dudu
debianx

(usa Debian)

Enviado em 09/04/2010 - 22:07h

Galera tem como me ajudar a montar um servidor proxy transparente, tem um maquina gateway separada do servidor proxy(Squid)


http_port 192.168.1.2:3128 transparent
visible_hostname proxy
error_directory /usr/share/squid/errors/Portuguese/

#cache_mem 600 MB
#maximum_object_size_in_memory 64 KB
#maximum_object_size 500 MB
#minimum_object_size 0 KB
#cache_swap_low 90
#cache_swap_high 95
#cache_dir ufs /var/spool/squid 60048 16 256
#cache_access_log /var/log/squid/access.log
#refresh_pattern ^ftp: 15 20% 2280
#refresh_pattern ^gopher: 15 0% 2280
#refresh_pattern . 15 20% 2280

acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews

acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
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 Safe_ports port 901 # swat
acl Safe_ports port 1025-65535 # portas altas
acl purge method PURGE
acl CONNECT method CONNECT

acl bloqueados dstdomain www.cassino.com.br cassino.com.br www.hotmail.com
http_access deny bloqueados

http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports


acl redelocal src 192.168.1.0/24
http_access allow localhost
http_access allow redelocal

http_access deny all


A regra do firewall esta assim

# Generated by iptables-save v1.4.2 on Fri Apr 9 21:57:41 2010
*filter
:INPUT ACCEPT [20885:13908758]
:FORWARD ACCEPT [164090:98426609]
:OUTPUT ACCEPT [22059:3108141]
COMMIT
# Completed on Fri Apr 9 21:57:41 2010
# Generated by iptables-save v1.4.2 on Fri Apr 9 21:57:41 2010
*nat
:PREROUTING ACCEPT [17683:3007367]
:POSTROUTING ACCEPT [462:41619]
:OUTPUT ACCEPT [2452:172046]
-A POSTROUTING -o eth1 -j MASQUERADE
COMMIT
# Completed on Fri Apr 9 21:57:41 2010



  






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts