[x] Welcome to LinuxSolved.com Linux help forums, here we are a community of Linux users helping each other. It is helpful to both ie. new linux users as well experienced one. We always have our experts to help you and ofcourse members help each other, so you can ask for help any time by Registering.: Click to Register

Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Linux Forums - Linux Help,Advice & support community:LinuxSolved.com  |  Forum  |  Network Troublshooting  |  Linux Servers Support  |  Topic: Squid - Windows Update problems.... (Fails)
The LinuxSolved.com GNU/Linux User Communit - Forum
Welcome to LinuxCommunity You have just arrived to a friendly linux community which is helping Linux Users from Years.. You can be its part if you have not already joined it. Registration is FREE and is gateway to unlimited help and support to all your linux related needs. If you are an GNU/Linux supporter then you have come to the right place.
Pages: [1]
  Print  
Author Topic: Squid - Windows Update problems.... (Fails)  (Read 1316 times)
0 Members and 1 Guest are viewing this topic.
tallship
Linux Noob !
*
Offline Offline

Posts: 4


View Profile WWW
« on: September 14, 2004, 12:17:45 AM »

I've followed the guide to get Squid up and rolling as a Transparent proxy. Everything works just fine, I point everyone to the Squid box as the default gateway with DHCPD and then hijack port 80, redirecting it to 3128.

But the users are unable to use the Windows Update service, which fails when "checking for updates".

I've seen a lot of posts about this when googling - but not a single solution. A couple of people, after much frustration did manage to get Windows Update service working, but all they did was post that they had gotten it working and didn't bother to say what they did to correct the problem.

I can post my squid.conf file here if neccessary (it's still pretty basic along the lines of the mini-howto here

Upon googling, this seems like such a common problem that I would think that there would have been some attention given to it in the FAQs at suid-chche.org or other sites, but I've seen no mention of it.

If anyone can provide some assistance It would be greatly appreciated, and we could perhaps add it to the mini-howto here

.
Logged
tallship
Linux Noob !
*
Offline Offline

Posts: 4


View Profile WWW
« Reply #1 on: September 14, 2004, 01:12:30 AM »

Here's the redirect that hijacks the connection to port 80 on 192.168.1.100 (The Squid box) - from /etc/rc.d/rc.local

NOTE: Connections to this box do not currently go in one nic and out the other, they simply are intercepted by this machine on one NIC and then go out through the Squid machine's default gateway (firewall). This will change later so that all packets will be NAT'd by this box instead of the choke firewall, and this machine will become the firewall at that point.

Code:

/usr/local/squid/sbin/squid
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 443 -j REDIRECT --to-port 3128



Okay, here's the squid.conf file, stripped of much of it's fluff - this is the complete file at this point - only the extraneous comments have been stripped out:

Code:

~# cat /usr/local/squid/etc/squid.conf
http_port 192.168.1.100:3128

hierarchy_stoplist cgi-bin ?

acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY

# OPTIONS WHICH AFFECT THE CACHE SIZE
# -----------------------------------------------------------------------------

cache_mem 32 MB

maximum_object_size 8192 KB

# maximum_object_size_in_memory 8 KB
maximum_object_size_in_memory 20 KB

# LOGFILE PATHNAMES AND CACHE DIRECTORIES
# -----------------------------------------------------------------------------

cache_dir ufs /usr/local/squid/cache 1024 16 256

# cache_store_log /usr/local/squid/var/logs/store.log
cache_store_log none

#Default:
# debug_options ALL,1

#Default:
# log_fqdn off

# OPTIONS FOR EXTERNAL SUPPORT PROGRAMS
# -----------------------------------------------------------------------------

# ftp_user Squid@
ftp_user someone@sld.tld

# ftp_list_width 32
ftp_list_width 80

# on|off determines whether you "CAN" use PASSV mode, you don't have to use it
# ftp_passive on

#  TAG: redirect_rewrites_host_header
#       By default Squid rewrites any Host: header in redirected
#       requests.  If you are running an accelerator then this may
#       not be a wanted effect of a redirector.
#
#Default:
# redirect_rewrites_host_header on

auth_param basic children 5
auth_param basic realm Companies Name
auth_param basic credentialsttl 2 hours

# OPTIONS FOR TUNING THE CACHE
# -----------------------------------------------------------------------------

# TIMEOUTS
# -----------------------------------------------------------------------------

# ACCESS CONTROLS
# -----------------------------------------------------------------------------

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 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 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 all

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

http_access deny to_localhost

http_access deny all

http_reply_access allow all

icp_access allow all

# ADMINISTRATIVE PARAMETERS
# -----------------------------------------------------------------------------

cache_mgr someone@sld.tld

cache_effective_user squid
cache_effective_group squid

# HTTPD-ACCELERATOR OPTIONS
# -----------------------------------------------------------------------------

httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on

# MISCELLANEOUS
# -----------------------------------------------------------------------------

coredump_dir /usr/local/squid/cache

# EOF

Logged
Ricky
LST CareTaker
Specially Skilled
*****
Offline Offline

Gender: Male
Posts: 2215


View Profile
« Reply #2 on: September 14, 2004, 03:44:37 PM »

I had done lots of work on squid ! really never noticed such problem, may be I am not much interested in window's update, at this point i really don't understand that why win update is not working !

How you are sure that win  update is not working, may be it uses some specific port which is not allowed in our standard coinfiguration !

Well have to look out in this matter ! no idea here too at this moment ! sorry!
Logged
Linux Forums - Linux Help,Advice & support community:LinuxSolved.com
   

 Logged
Pages: [1]
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Squid problems with Windows Update Linux Servers Support lsantana 2 1622 Last post October 19, 2004, 08:47:57 AM
by lsantana
How do i update the GTK+????? Linux Application yzq 4 841 Last post April 09, 2005, 02:27:44 PM
by yzq
Symantec Update Linux Proxy Server Support sachin 1 473 Last post October 17, 2006, 04:15:38 AM
by Ricky
Update gnome Linux Application Ujjwol 0 308 Last post July 19, 2007, 02:16:27 AM
by Ujjwol
Installation Fails On Lenovo Desktop Linux Installation Support rajesh.bahl 2 288 Last post August 06, 2008, 02:48:05 AM
by rajesh.bahl
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 01, 2008, 10:12:05 PM

Login with username, password and session length
Navigation
Recent Discussions
[November 29, 2008, 02:23:49 PM]

[November 29, 2008, 02:14:14 PM]

[November 29, 2008, 04:00:36 AM]

[November 28, 2008, 07:05:28 AM]

[November 28, 2008, 07:04:39 AM]

[November 28, 2008, 06:58:16 AM]

[November 28, 2008, 06:47:09 AM]

[November 26, 2008, 11:53:32 AM]

[November 26, 2008, 04:00:22 AM]

[November 25, 2008, 06:44:47 PM]
Members
Total Members: 6252
Latest: rash31
Stats
Total Posts: 8285
Total Topics: 2257
Online Today: 34
Online Ever: 111
(June 28, 2007, 06:47:29 AM)
Users Online
Users: 0
Guests: 10
Total: 10
Privacy Policy| Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks
Theme & TinyPortal v0.9.8 © Bloc