PDA

View Full Version : Squid users related problem


mrtornado
29th December 2008, 07:31
First of all I'm a total noob :) Second let me explain you my problem.

I have set up a squid anonymous proxy server following this guide:
http://www.howtoforge.com/anonymous-proxy-using-squid-3-centos-5.x

so I'm using a ncsaauth system.

Let's say I have 2 users test and demo and let's say I have 4 outgoing ip's on the server.

I want user test to be able to use 2 of the ips and user demo to be able to access the other 2 ips.
On my current configuration each user is able to access any ip from my server. I know I should do this with acl but I have no idea how to do it.

The problem is better described here
http://www.mail-archive.com/squid-users@squid-cache.org/msg58698.html

but this guy didn't got any answer.
Also search about 2 days and I wasn't able to find anything.
Thanks in advance for the help

sohaileo
29th December 2008, 20:17
Hi,

I got your an email and i understand your need. You are right here i.e you have to define ACL here to let your user to use on specific IP.

1) Edit ACL

Remove below line
acl ncsaauth proxy_auth REQUIRED
http_access allow ncsaauth

and enter

acl user1 proxy_auth demo
acl user2 proxy_auth test

http_access allow user1
http_access allow user2

in tcp_outgoing_address define user acl after ip acl like this

acl myip ip1 192.168.0.1
tcp_outgoing_address 192.168.0.1 ip1 user1

and so on.

Regards,

mrtornado
29th December 2008, 22:18
Thanks again, everything is working.
Even if a user can access some other ip he only gets the default server ip.

rcom
30th March 2009, 05:29
Thanks again, everything is working.
Even if a user can access some other ip he only gets the default server ip.

Hey bro, nice to see you on here too. I had been having a similar problem. See you on bhw! :D