Всем доброго времени суток, у меня вот такие вот проблемы. Ковыряюсь с ними уже не первую неделю.
1 Не могу до конца настроить прозрачную проксю
2 Не блокируються баннеры
3 Кеш создаеться только тогда когда указан прокси в браузере
4 Нужно сделать так что бы все что не попало в прокси дропилось iptablesом.
Настроен маскарадинг есть 2 сетевухи eth0 локальная сеть, eth1 интернет, так же поднять dhcp3-server всем раздаються адреса с основным шлюзом и днсками.
Вот мои конфиги.
http_port 192.168.100.1:3128 transparent
icp_port 0
acl QUERY urlpath_regex cgi-bin /?
cache_swap_low 80
cache_swap_high 90
minimum_object_size 0 KB
maximum_object_size 4090 MB
maximum_object_size_in_memory 4 MB
cache_mem 512 MB
cache_dir ufs /home/tester/cache 40960 16 256
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
logfile_rotate 10
ftp_user kb88@bk.ru
ftp_list_width 256
ftp_passive on
ftp_sanitycheck on
dns_nameservers 10.7.3.40
acl server src 192.168.100.1-192.168.100.9/255.255.255.255
acl director src 192.168.100.10-192.168.100.49/255.255.255.255
acl class src 192.168.100.50-192.168.100.250/255.255.255.255
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 to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 # https
acl SSL_ports port 563 # snews
acl SSL_ports port 873 # rsync
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 Safe_ports port 631 # cups
acl Safe_ports port 873 # rsync
acl Safe_ports port 901 # SWAT
acl purge method PURGE
acl CONNECT method CONNECT
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 nobanners src 0/0
acl banners url_regex "/home/tester/banners.acl"
no_cache deny QUERY nobanners banners
http_access deny nobanners banners
#deny_info http://192.168.100.1/empty.jpg banners
http_access deny all
cache_mgr kb88@bk.ru
# Generated by iptables-save v1.3.6 on Thu Dec 6 16:12:53 2007
*filter
:INPUT ACCEPT [185233:153168125]
:FORWARD ACCEPT [137236:78941395]
:OUTPUT ACCEPT [104956:58187708]
COMMIT
# Completed on Thu Dec 6 16:12:53 2007
# Generated by iptables-save v1.3.6 on Thu Dec 6 16:12:53 2007
*nat
:PREROUTING ACCEPT [54242:7369739]
:POSTROUTING ACCEPT [535:25366]
:OUTPUT ACCEPT [1295:72602]
-A PREROUTING -i eth0 -p tcp -m tcp --dport 21 -j REDIRECT --to-ports 3128
-A PREROUTING -i eth0 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 3128
-A POSTROUTING -o eth1 -j MASQUERADE
COMMIT
# Completed on Thu Dec 6 16:12:53 2007
# Generated by iptables-save v1.3.6 on Thu Dec 6 16:12:53 2007
*mangle
:PREROUTING ACCEPT [356340:236323517]
:INPUT ACCEPT [185233:153168125]
:FORWARD ACCEPT [137236:78941395]
:OUTPUT ACCEPT [104956:58187708]
:POSTROUTING ACCEPT [242213:137130607]
COMMIT
# Completed on Thu Dec 6 16:12:53 2007
ps я прочитал почти все 16 страниц нашел некоторые советы которые мне помогли, но на некоторые вопросы я или не нашел ответа, или вариант решения проблемы не дал результатов.
И вот еще одна новая проблема =(, пробовал донастроить это все но теперь когда прокси указанна он выдает вот это, а если прокси не указанна в браузере то все нормально!
ERROR
The requested URL could not be retrieved
While trying to retrieve the URL: http://ziza.ru/2007/12/10/iz_seti.html
The following error was encountered:
* Access Denied.
Access control configuration prevents your request from being allowed at this time. Please contact your service provider if you feel this is incorrect.
Your cache administrator is kb88@bk.ru.
Generated Mon, 10 Dec 2007 18:12:30 GMT by b1tch.local (squid/2.6.STABLE14)