Re: [squid-users] DNS options for Windows port of Squid 2.6

2008-05-06 Thread H.Lekin

On 06.05.2008 23:56, Guido Serassio wrote:


Here you can find a binary (standard build) of Squid STABLE20 patched 
with the changeset 11868:

http://squid.acmeconsulting.it/download/squid-11868.zip

Please note: the Squid reconfigure happens after any changes to any IP 
address of any machine interface.



I had to try it out right away and it works. Brilliant! Excellent!

Thank you very much for your work. It's almost unbelievable, not even 
twelve hours after my help request I receive a tailored binary.


In the last months I twice had to contact professional support. In both 
cases it took them days / a week to respond, one answer with a broken 
link and after that no reply at all anymore...


My appreciation for your work, your help, your documentation and web 
site, its styling, and everything.


Greetings
H.L


Re: [squid-users] DNS options for Windows port of Squid 2.6

2008-05-06 Thread Guido Serassio

Hi,

At 23:30 06/05/2008, H.Lekin wrote:

 Will it compile on cygwin with mingw packages from mid 2005 
(different naming scheme)instead of MinGW 3.1.0?

What'is your build version ? Standard, Delay Pools or SSL ?

Don't know. Squid -v output is:
Squid Cache: Version 2.6.STABLE20


It's a standard build.


I can send to you an already patched binary.

Yes, please.


Here you can find a binary (standard build) of Squid STABLE20 patched 
with the changeset 11868:

http://squid.acmeconsulting.it/download/squid-11868.zip

Please note: the Squid reconfigure happens after any changes to any 
IP address of any machine interface.


Regards

Guido



-

Guido Serassio
Acme Consulting S.r.l. - Microsoft Certified Partner
Via Lucia Savarino, 1   10098 - Rivoli (TO) - ITALY
Tel. : +39.011.9530135  Fax. : +39.011.9781115
Email: [EMAIL PROTECTED]
WWW: http://www.acmeconsulting.it/



Re: [squid-users] DNS options for Windows port of Squid 2.6

2008-05-06 Thread Henrik Nordstrom
On tis, 2008-05-06 at 16:48 +0200, H.Lekin wrote:

> What do you mean by system triggers?

That there should be some registry entry or similar which tells Windows
that when the dialup interface beomes active please run this action on
the system account.

> However, shouldn't the name server resolution be done by Squid itself.

It is, but it needs to be told when there is changes...

> You reconfigured Squid on a MS Window system. Because of the same problem?

No, the very few Windows Squid installations I have touched has not used
DNS at all... (reverse proxies).

Regards
Henrik



Re: [squid-users] DNS options for Windows port of Squid 2.6

2008-05-06 Thread H.Lekin



On 06.05.2008 23:04, Guido Serassio wrote:

Hi,

At 22:20 06/05/2008, H.Lekin wrote:

On 06.05.2008 18:12, Guido Serassio wrote:

Hi,
At 14:14 06/05/2008, Henrik Nordstrom wrote:

On tis, 2008-05-06 at 13:25 +0200, H.Lekin wrote:
> Reconfiguring the Squid service with the -k option after being 
dialed in

> works in principle, but is not allowed from an user's account
> (OpenSCManager failed).

That should be fixable somehow I think..

Isn't it possible to set up system triggers run when the dialup
interface goes up/down? Not very familiar with Windows unfortunately..

This was already implemented into Squid 2.HEAD:
http://www.squid-cache.org/Versions/v2/HEAD/changesets/11818.patch
This feature will be available on Squid 2.7.

When will 2.7 be released? Is there a work around for in between?


I think few months. As I know the only work around is to force a squid 
reconfiguration.



Can this patch file be applied to the 2.6STABLE20 source code?


Yes, it should work fine.

 Will it compile on cygwin with mingw packages from mid 2005 
(different naming scheme)instead of MinGW 3.1.0?


What'is your build version ? Standard, Delay Pools or SSL ?

Don't know. Squid -v output is:
Squid Cache: Version 2.6.STABLE20
configure options: --enable-win32-service --enable-storeio='ufs aufs 
null coss'
--enable-removal-policies='heap lru' --enable-snmp --enable-htcp 
--disable-wccp
--disable-wccpv2 --enable-useragent-log --enable-referer-log 
--enable-cache-dige
sts --enable-auth='basic ntlm digest negotiate' --enable-coss-aio-ops 
--enable-b
asic-auth-helpers='LDAP NCSA mswin_sspi' 
--enable-negotiate-auth-helpers=mswin_s
spi--enable-ntlm-auth-helpers='mswin_sspi fakeauth' 
--enable-external-acl-helper
s='mswin_lm_group ldap_group' --enable-large-cache-files 
--enable-digest-auth-he

lpers='password LDAP'--enable-arp-acl --prefix=c:/squid
Compiled as Windows System Service.
((Sorry for the line breaks))

I can send to you an already patched binary.

Yes, please.

Thank you very much
H.L


Re: [squid-users] DNS options for Windows port of Squid 2.6

2008-05-06 Thread Guido Serassio

Hi,

At 22:20 06/05/2008, H.Lekin wrote:

On 06.05.2008 18:12, Guido Serassio wrote:

Hi,
At 14:14 06/05/2008, Henrik Nordstrom wrote:

On tis, 2008-05-06 at 13:25 +0200, H.Lekin wrote:
> Reconfiguring the Squid service with the -k option after being dialed in
> works in principle, but is not allowed from an user's account
> (OpenSCManager failed).

That should be fixable somehow I think..

Isn't it possible to set up system triggers run when the dialup
interface goes up/down? Not very familiar with Windows unfortunately..

This was already implemented into Squid 2.HEAD:
http://www.squid-cache.org/Versions/v2/HEAD/changesets/11818.patch
This feature will be available on Squid 2.7.

When will 2.7 be released? Is there a work around for in between?


I think few months. As I know the only work around is to force a 
squid reconfiguration.



Can this patch file be applied to the 2.6STABLE20 source code?


Yes, it should work fine.

 Will it compile on cygwin with mingw packages from mid 2005 
(different naming scheme)instead of MinGW 3.1.0?


What'is your build version ? Standard, Delay Pools or SSL ?
I can send to you an already patched binary.

Regards

Guido



-

Guido Serassio
Acme Consulting S.r.l. - Microsoft Certified Partner
Via Lucia Savarino, 1   10098 - Rivoli (TO) - ITALY
Tel. : +39.011.9530135  Fax. : +39.011.9781115
Email: [EMAIL PROTECTED]
WWW: http://www.acmeconsulting.it/



Re: [squid-users] DNS options for Windows port of Squid 2.6

2008-05-06 Thread H.Lekin

On 06.05.2008 18:12, Guido Serassio wrote:

Hi,

At 14:14 06/05/2008, Henrik Nordstrom wrote:

On tis, 2008-05-06 at 13:25 +0200, H.Lekin wrote:
> Reconfiguring the Squid service with the -k option after being 
dialed in

> works in principle, but is not allowed from an user's account
> (OpenSCManager failed).

That should be fixable somehow I think..

Isn't it possible to set up system triggers run when the dialup
interface goes up/down? Not very familiar with Windows unfortunately..


This was already implemented into Squid 2.HEAD:
http://www.squid-cache.org/Versions/v2/HEAD/changesets/11818.patch

This feature will be available on Squid 2.7.


When will 2.7 be released? Is there a work around for in between?

Can this patch file be applied to the 2.6STABLE20 source code? Will it 
compile on cygwin with mingw packages from mid 2005 (different naming 
scheme)instead of MinGW 3.1.0?


Thanks
H.L


Re: [squid-users] DNS options for Windows port of Squid 2.6

2008-05-06 Thread Guido Serassio

Hi,

At 14:14 06/05/2008, Henrik Nordstrom wrote:

On tis, 2008-05-06 at 13:25 +0200, H.Lekin wrote:
> Reconfiguring the Squid service with the -k option after being dialed in
> works in principle, but is not allowed from an user's account
> (OpenSCManager failed).

That should be fixable somehow I think..

Isn't it possible to set up system triggers run when the dialup
interface goes up/down? Not very familiar with Windows unfortunately..


This was already implemented into Squid 2.HEAD:
http://www.squid-cache.org/Versions/v2/HEAD/changesets/11818.patch

This feature will be available on Squid 2.7.

Regards

Guido



-

Guido Serassio
Acme Consulting S.r.l. - Microsoft Certified Partner
Via Lucia Savarino, 1   10098 - Rivoli (TO) - ITALY
Tel. : +39.011.9530135  Fax. : +39.011.9781115
Email: [EMAIL PROTECTED]
WWW: http://www.acmeconsulting.it/



Re: [squid-users] DNS options for Windows port of Squid 2.6

2008-05-06 Thread Mathias R. Baumgartner
this may be an overkill and somewhat unrelated to squid, but why not
run your own local caching nameserver? this should solve your
problems:

http://www.simpledns.com/download.aspx

pretty painless to setup and run. doesn't require many resources
(definitely not with 1 user). you can evaluate it for 14 days, after
that a licence is 79$

I am not affiliated with simpledns in any way.


On 5/6/08, H.Lekin <[EMAIL PROTECTED]> wrote:
> Hello list,
>
>  I wish to run the Windows port of Squid 2.6 on an XP system with dial up
> access. The name server is supposed to be taken from the registry. This
> value is only set after dialing in, i.e. there is no name server defined
> when the service starts (cache.log: Warning: Could not find any
> nameservers...).
>
>  As several ISPs are used, dns_nameservers can't be specified in
> squid.conf.; the name server of ISP 1 does not work when dialed in via ISP
> 2. The public resolver name servers of the Open Root Server Network are
> blocked by the ISPs. The only DNS proxy - Acrylic - I could find needs a
> specified name server.
>
>  Reconfiguring the Squid service with the -k option after being dialed in
> works in principle, but is not allowed from an user's account (OpenSCManager
> failed). There might be a workaround by setting the
> SERVICE_INTERACTIVE_PROCESS flag for The Squid service. This sounds rather
> dubious; moreover I do not know how to script an internet connection
> detector to start the reconfiguration.
>
>  Is there any solution for this problem?
>
>  Thanks in advance for your help.
>
>  Greetings,
>  H.Lekin
>


Re: [squid-users] DNS options for Windows port of Squid 2.6

2008-05-06 Thread Mathias
this may be an overkill and somewhat unrelated to squid, but why not
run your own local caching nameserver? this should solve your
problems:

http://www.simpledns.com/download.aspx

pretty painless to setup and run. doesn't require many resources
(definitely not with 1 user). you can evaluate it for 14 days, after
that a licence is 79$

I am not affiliated with simpledns in any way.

On 5/6/08, H.Lekin <[EMAIL PROTECTED]> wrote:
> On 06.05.2008 13:32, Amos Jeffries wrote:
>
> >
> > Unless the ISP are playing nasty games with DNS the squid option
> dns_nameservers should work. Squid tries all the listed NS and the first
> working one or fastest replying one is used.
> >
> >
>  I can't set dns_nameservers as the assigned name servers vary with the
> ISPs. If I set the name servers of ISP 1 as dns_nameservers in squid.conf,
> things do not work reliably when dialed in via ISP 2.
>
>  I just tried it out again:
>
>  Dialed in via ISP 1
>  ---
>  H:\WinHome>ipconfig /all
>  snip
>  DNS-Server. . . . . . . . . . . . : 62.53.238.227
> 193.189.244.205
>  snip
>
>  H:\WinHome>nslookup www.squid-cache.org 62.53.238.227
>  Server:  mgr1.drms.mediaWays.net
>  Address:  62.53.238.227
>
>  Nicht autorisierte Antwort:
>  Name:squid-cache.org
>  Address:  12.160.37.9
>  Aliases:  www.squid-cache.org
>
>  H:\WinHome>nslookup www.squid-cache.org 193.189.244.205
>  Server:  frnk.dnscache.mediaways.net
>  Address:  193.189.244.205
>
>  Nicht autorisierte Antwort:
>  Name:squid-cache.org
>  Address:  12.160.37.9
>  Aliases:  www.squid-cache.org
>
>  Dialed in via ISP 2
>  ---
>  H:\WinHome>ipconfig /all
>  snip
>  DNS-Server. . . . . . . . . . . . : 195.50.140.252
> 145.253.2.203
>  snip
>
>  H:\WinHome>nslookup www.squid-cache.org 62.53.238.227
>  Server:  mgr1.drms.mediaWays.net
>  Address:  62.53.238.227
>
>  Nicht autorisierte Antwort:
>  Name:squid-cache.org
>  Address:  12.160.37.9
>  Aliases:  www.squid-cache.org
>
>  H:\WinHome>nslookup www.squid-cache.org 193.189.244.205
>  *** Der Servername für die Adresse 193.189.244.205 konnte nicht gefunden
> werden:
>
>  Query refused
>  Server:  UnKnown
>  Address:  193.189.244.205
>
>  *** www.squid-cache.org wurde von UnKnown nicht gefunden: Query refused
>  ((tried several times without success))
>
>
>  Dialed in via ISP 2, the first name server of ISP 1 can be used, the second
> name server of ISP 1 can not.
>
>  A couple of days ago, I used ISP 3 and none of the name servers of a
> different ISP could be used at all; with different failure messages. In one
> case I remember because of its oddity, I got a list of names and IPs of
> Top-Level name servers.
>
>  I don't know exactly how the name server stuff works, but the browser for
> example does not need to be restarted or reconfigured when the name servers
> change. I assume it queries the name servers set in the registry every time.
> Can Squid be configured like this?
>
>  Thanks
>  H.L.
>


Re: [squid-users] DNS options for Windows port of Squid 2.6

2008-05-06 Thread H.Lekin

On 06.05.2008 13:32, Amos Jeffries wrote:


Unless the ISP are playing nasty games with DNS the squid option 
dns_nameservers should work. Squid tries all the listed NS and the first 
working one or fastest replying one is used.


I can't set dns_nameservers as the assigned name servers vary with the 
ISPs. If I set the name servers of ISP 1 as dns_nameservers in 
squid.conf, things do not work reliably when dialed in via ISP 2.


I just tried it out again:

Dialed in via ISP 1
---
H:\WinHome>ipconfig /all
snip
DNS-Server. . . . . . . . . . . . : 62.53.238.227
193.189.244.205
snip

H:\WinHome>nslookup www.squid-cache.org 62.53.238.227
Server:  mgr1.drms.mediaWays.net
Address:  62.53.238.227

Nicht autorisierte Antwort:
Name:squid-cache.org
Address:  12.160.37.9
Aliases:  www.squid-cache.org

H:\WinHome>nslookup www.squid-cache.org 193.189.244.205
Server:  frnk.dnscache.mediaways.net
Address:  193.189.244.205

Nicht autorisierte Antwort:
Name:squid-cache.org
Address:  12.160.37.9
Aliases:  www.squid-cache.org

Dialed in via ISP 2
---
H:\WinHome>ipconfig /all
snip
DNS-Server. . . . . . . . . . . . : 195.50.140.252
145.253.2.203
snip

H:\WinHome>nslookup www.squid-cache.org 62.53.238.227
Server:  mgr1.drms.mediaWays.net
Address:  62.53.238.227

Nicht autorisierte Antwort:
Name:squid-cache.org
Address:  12.160.37.9
Aliases:  www.squid-cache.org

H:\WinHome>nslookup www.squid-cache.org 193.189.244.205
*** Der Servername für die Adresse 193.189.244.205 konnte nicht gefunden 
werden:


Query refused
Server:  UnKnown
Address:  193.189.244.205

*** www.squid-cache.org wurde von UnKnown nicht gefunden: Query refused
((tried several times without success))


Dialed in via ISP 2, the first name server of ISP 1 can be used, the 
second name server of ISP 1 can not.


A couple of days ago, I used ISP 3 and none of the name servers of a 
different ISP could be used at all; with different failure messages. In 
one case I remember because of its oddity, I got a list of names and IPs 
of Top-Level name servers.


I don't know exactly how the name server stuff works, but the browser 
for example does not need to be restarted or reconfigured when the name 
servers change. I assume it queries the name servers set in the registry 
every time. Can Squid be configured like this?


Thanks
H.L.


Re: [squid-users] DNS options for Windows port of Squid 2.6

2008-05-06 Thread Henrik Nordstrom
On tis, 2008-05-06 at 13:25 +0200, H.Lekin wrote:
> Reconfiguring the Squid service with the -k option after being dialed in 
> works in principle, but is not allowed from an user's account 
> (OpenSCManager failed).

That should be fixable somehow I think.. 

Isn't it possible to set up system triggers run when the dialup
interface goes up/down? Not very familiar with Windows unfortunately..

The few times I have run Squid on windows I have always been logged in
on an administrator account, and had no problems to run "squid -n squid
-k reconfigure". 

Regards
Henrik



Re: [squid-users] DNS options for Windows port of Squid 2.6

2008-05-06 Thread Amos Jeffries

H.Lekin wrote:

Hello list,

I wish to run the Windows port of Squid 2.6 on an XP system with dial up 
access. The name server is supposed to be taken from the registry. This 
value is only set after dialing in, i.e. there is no name server defined 
when the service starts (cache.log: Warning: Could not find any 
nameservers...).


As several ISPs are used, dns_nameservers can't be specified in 
squid.conf.; the name server of ISP 1 does not work when dialed in via 
ISP 2. The public resolver name servers of the Open Root Server Network 
are blocked by the ISPs. The only DNS proxy - Acrylic - I could find 
needs a specified name server.


Unless the ISP are playing nasty games with DNS the squid option 
dns_nameservers should work. Squid tries all the listed NS and the first 
working one or fastest replying one is used.


If you see any other behavior I'd like to know.

Thanks
Amos
--
Please use Squid 2.6.STABLE20 or 3.0.STABLE5


[squid-users] DNS options for Windows port of Squid 2.6

2008-05-06 Thread H.Lekin

Hello list,

I wish to run the Windows port of Squid 2.6 on an XP system with dial up 
access. The name server is supposed to be taken from the registry. This 
value is only set after dialing in, i.e. there is no name server defined 
when the service starts (cache.log: Warning: Could not find any 
nameservers...).


As several ISPs are used, dns_nameservers can't be specified in 
squid.conf.; the name server of ISP 1 does not work when dialed in via 
ISP 2. The public resolver name servers of the Open Root Server Network 
are blocked by the ISPs. The only DNS proxy - Acrylic - I could find 
needs a specified name server.


Reconfiguring the Squid service with the -k option after being dialed in 
works in principle, but is not allowed from an user's account 
(OpenSCManager failed). There might be a workaround by setting the 
SERVICE_INTERACTIVE_PROCESS flag for The Squid service. This sounds 
rather dubious; moreover I do not know how to script an internet 
connection detector to start the reconfiguration.


Is there any solution for this problem?

Thanks in advance for your help.

Greetings,
H.Lekin