LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-14-2012, 01:24 PM   #1
simon26r
LQ Newbie
 
Registered: Dec 2012
Posts: 4

Rep: Reputation: Disabled
Squid ACL with SQL setup


Hello all

I would like to know if anyone can help me with my problem

We have setup a squid server that our network can access
At the moment we add IP's to the ACL so people can connect to our squid server. I am looking of help in replacing this from a sql database so squid checks to see if the IP address is in the list to allow access.

I have build a web based IP address update button that my clients can click on and there new ip address will be updated in the SQL. I just need a way for this to link to squid.

I would be very grateful if anyone can help me


Thank you all
 
Old 12-14-2012, 04:35 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
putting this data into SQL really isn't going to make things any faster. You can store ACL's in an external file, but putting them in a database is not something that happens. You can pull data from anywhere using an acl helper but it just slows things down really. if it's just a list, how is an IP list not preferable? http://www.squid-cache.org/Doc/confi...rnal_acl_type/
 
1 members found this post helpful.
Old 12-14-2012, 04:48 PM   #3
simon26r
LQ Newbie
 
Registered: Dec 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
thanks for your help

Hi.
maybe you can help?

What we have is a joomla website where people register to use the squid / dns server. this would be ok if people did not have a dynamic ip address so for this reason we have had to create a update ip address buttonon the website, its saves the ips in the joomla sql as a list. My question is how to we get that list on the squid to accept them the second the click update ip in the squid ACL where at the moment we are doing this by hand..

We are unsure if the sql is any good or we need to do this a different way somehow. We have now spent 3 days trying to do this so if you can answer this with easy it would be amazing

Thank you again
 
Old 12-15-2012, 02:46 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
why don't you just use user authentication for the proxy access? IP addresses are irrelevant then.
 
1 members found this post helpful.
Old 12-17-2012, 03:11 PM   #5
simon26r
LQ Newbie
 
Registered: Dec 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
we have done it now.. Thanks for your help
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
squid acl amartlk Linux - Newbie 1 07-18-2012 05:40 AM
squid acl fernfrancis Linux - Newbie 1 10-21-2010 07:48 AM
squid ACL andycol Linux - Server 8 10-31-2009 05:58 AM
SQUID: Can anyone help me out with the ACL's foubie Linux - Server 5 10-07-2009 08:55 AM
squid ACL's seanfitz Linux - Networking 0 05-13-2003 07:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration