acl localhost src 127.0.0.1/32
hemen altına
http_port localipadresi:3128 transparent
denermisiniz....
> Date: Mon, 24 Nov 2008 03:31:01 +0200> From: [EMAIL PROTECTED]> To:
> [email protected]> Subject: [Linux-ag] (konu yok)> > Merhabalar,> >
> > Netfilter/iptables bir firewallumuz mevcut ayni zamanda bir kaç segment>
> için backbone gibi davranıyor. Bu nedenle ayrı bir makina üzerine squid>
> proxy kurulumu yaptık ve de transparent olarak kullanmak istiyoruz.> >
> firewall eth0 : 192.168.0.254/24> eth1 : 85.77.66.49/28> > proxy eth0 :
> 85.77.66.50/28> > iptables script file :> iptables -t nat -A PREROUTING -i
> eth0 -p tcp -s 192.168.0.0/24 --dport 80 > -j DNAT --to 85.77.66.50:3128> >
> iptables -t nat -A POSTROUTING -o eth1 -s 192.168.0.0/24 -j SNAT> --to-source
> 85.77.66.49> > squid.conf :> > acl manager proto cache_object> acl localhost
> src 127.0.0.1/32> acl to_localhost dst 127.0.0.0/8> acl localnet src
> 192.168.0.0/16 k> acl SSL_ports port 443> 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 CONNECT method CONNECT> http_access
> allow manager localhost> http_access deny manager> http_access deny
> !Safe_ports> http_access deny CONNECT !SSL_ports> http_access allow localnet>
> http_access allow localhost> http_access deny all> icp_access allow localnet>
> icp_access deny all> htcp_access allow localnet> htcp_access deny all>
> http_port 3128 transparent> hierarchy_stoplist cgi-bin ?> cache_dir ufs
> /var/spool/squid 200 32 256> access_log /var/log/squid/access.log squid>
> refresh_pattern ^ftp: 1440 20% 10080> refresh_pattern ^gopher: 1440 0% 1440>
> refresh_pattern (cgi-bin|\?) 0 0% 0> refresh_pattern . 0 20% 4320>
> visible_hostname proxy.edyafox.com.tr> icp_port 3130> error_directory
> /usr/share/squid/errors/Turkish> coredump_dir /var/spool/squid> > ayarlarımız
> bu halde iken çalışmıyor.> > Yalnız browser lardan proxy girişi yaplırsa
> sorun olmuyor. Transparent> olarak squidi aktif etmek için ne yapabilirim.
> Iptables kuralları bu> senaryoya göre nasıl yapılandırılmalı.> >
> _______________________________________________> Linux-ag mailing list>
> [email protected]>
> http://liste.linux.org.tr/mailman/listinfo/linux-ag
_________________________________________________________________
Yeni nesil Windows Live Services'ı ücretsiz edinin.
http://get.live.com
_______________________________________________
Linux-ag mailing list
[email protected]
http://liste.linux.org.tr/mailman/listinfo/linux-ag