Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 29th December 2008, 06:31
mrtornado mrtornado is offline
Junior Member
 
Join Date: Jan 2008
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Default Squid users related problem

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-...d-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-us.../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
Reply With Quote
Sponsored Links
  #2  
Old 29th December 2008, 19:17
sohaileo sohaileo is offline
Junior Member
 
Join Date: Nov 2006
Posts: 5
Thanks: 0
Thanked 1 Time in 1 Post
Default

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,
__________________
Sohail Riaz
RHCE
www.acs.com.sa
sohaileo@gmail.com
Reply With Quote
The Following User Says Thank You to sohaileo For This Useful Post:
mrtornado (29th December 2008)
  #3  
Old 29th December 2008, 21:18
mrtornado mrtornado is offline
Junior Member
 
Join Date: Jan 2008
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Thanks again, everything is working.
Even if a user can access some other ip he only gets the default server ip.
Reply With Quote
  #4  
Old 30th March 2009, 04:29
rcom rcom is offline
Junior Member
 
Join Date: Mar 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Quote:
Originally Posted by mrtornado View Post
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!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Install and configure Dansguardian with NTLM auth - squid problem propercc HOWTO-Related Questions 5 11th November 2008 16:34
problem with squid nuxia Server Operation 5 23rd February 2008 14:01
Apache problem (users own web-dir) murmel Server Operation 5 26th December 2007 19:06
Postfix virtual users with MySQL problem bschultz Installation/Configuration 2 2nd October 2007 20:05
Virtual Users And Domains With Postfix, Courier And MySQL - SASLauthd problem qtx HOWTO-Related Questions 7 22nd May 2007 18:19


All times are GMT +2. The time now is 23:51.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.