Dear Users,
Any Help Is Greatly Appreciated.
My problem is ,i am using squid 2.7 as a transparent proxy on Ubuntu Server
9.10 on Sun VirtualBox and my network is divided into two groups, to one i want
to allow gtalk & gmail and to other i want to allow just gmail.
I came to know that one solution could be WPAD/PAC.
But I am looking for other alternative. i tried
a) Recompiling it with --enable-ssl and installing,which allowed me to control
gtalk
but it stopped opening gmail.com
b) So i thought of redirecting 0:442, 444:65535 to port 3128(http_port) and
masquerading port 443.this allowed gmail,but removed the access control over
gtalk
c) then i reverted to snapshot when i repeated the step a ,my gtalk is unable
to connect, i dont understand what had i missed(there is something i have
missed i just dont know what i am missing).
d) then i tried 3129(https_port) and generated key and certificate as a wild
try.but still gtalk is unable to connect.
Also I Would Like To Ask
e)Can I Use Squid 3.0 For HTTPS?, although it is still not maintained by ubuntu
core developers and is not quoted as stable.Is it reliable?.
Also Attaching The squid.conf and rules of iptables in a script file.
I have tried using all the four groups in the script file, but none of them is
working.
i am using eth0(192.168.0.44) for lan and eth1(192.168.8.10) for internet
Please advice where am i going wrong.
Hoping You Will Help.
Thanks,
Anand
The INTERNET now has a personality. YOURS! See your Yahoo! Homepage.
http://in.yahoo.com/
acl all src all
acl SOHO src 192.168.0.0/24
acl manager proto cache_object
acl localhost src 127.0.0.1/32
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
http_access allow localhost
http_access allow SOHO
http_access allow all
icp_access allow all
http_port 3128 transparent
#https_port 3129 cert=/usr/local/squid/sbin/cacert.pem
key=/usr/local/squid/sbin/privkey.pem
hierarchy_stoplist cgi-bin ?
access_log /var/log/squid/access.log squid
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern (Release|Package(.gz)*)$ 0 20% 2880
refresh_pattern . 0 20% 4320
acl shoutcast rep_header X-HTTP09-First-Line ^ICY.[0-9]
upgrade_http0.9 deny shoutcast
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
extension_methods REPORT MERGE MKACTIVITY CHECKOUT
hosts_file /etc/hosts
coredump_dir /var/spool/squid
iptables -F
iptables -X
iptables -t nat -F
iptables -t nat -X
iptables -t mangle -F
iptables -t mangle -X
modprobe ip_conntrack
modprobe ip_conntrack_ftp
#Group 1
#iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 0:442 -j DNAT --to
192.168.0.44:3128
#iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 0:442 -j REDIRECT
--to-port 3128
#iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 444:65535 -j DNAT --to
192.168.0.44:3128
#iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 444:65535 -j REDIRECT
--to-port 3128
#iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 443 -j DNAT --to
192.168.0.44:3129
#iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 443 -j REDIRECT --to-port
3129
#Group 2
#iptables -t nat -A PREROUTING -i eth0 -p tcp -j DNAT --to 192.168.0.44:3128
#iptables -t nat -A PREROUTING -i eth1 -p tcp -j REDIRECT --to-port 3128
#Group 3
#iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 0:442 -j REDIRECT
--to-port 3128
#iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 444:65535 -j REDIRECT
--to-port 3128
#iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 443 -j REDIRECT --to-port
3129
#Group 4
#iptables -t nat -A PREROUTING -i eth0 -p tcp -j REDIRECT --to-port 3128