[squid-users] Something strange with automatic configuration script

From: Aleksey Trubin <aleks@dont-contact.us>
Date: Mon, 03 Jun 2002 19:12:38 +0500

Maybe offtopic...

I have 2 kinds of users. First are privileged users and they must go
througth Squid2 (port 8000). Second users are ordinary users and they
are redirected on Squid1(3128) and they must be authenticated with
PAM-Radius. I use for this automatic configuration script

------ cut -------
    if (isInNet(myIpAddress(),"192.168.1.224","255.255.255.255")) {
#privileged
        return "PROXY 192.168.1.36:8000";
    }

    if (isInNet(myIpAddress(),"192.168.10.0","255.255.255.0")) {
  #also privileged
        return "PROXY 192.168.1.36:8000";
    }

    return "PROXY 192.168.1.36:3128";
              #rest common users
------- cut -------

It's seems that script is working, but not for all users... There is
such scheme to get to Internet:
1) User connect to RAS (Max6000);
2) RAS redirect user to RADIUS for authentication (for all dial-in users);
3) if authentication failed Max searchs records for this user in its own
database and if find such record gives to user static IP,
otherwise user get random IP ( :) from local subnet).
Now that for I wrote all this...
Some of my privileged users couldn't reach Squid2 (but they get their
static IP! and they are redirected to Squid1). This was tested by me
from 1 computer and 1 brouser IE5...
Squid2.5S6/FreeBSD4.5/XTRadius

PS...
My privileged users - directors and their assistants so this is very
important for me...
Received on Mon Jun 03 2002 - 08:12:13 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:08:25 MST