CentOS SQL Proxy
Hello All,
Im trying to set up a Proxy server on my CentOS server and I have been looking at Squid, however I wondered if there is a proxy server that will support having authenticated users and passwords in a MySQL database? I wanted to do this so I have good control over who is connected through my proxy. Thanks in advance, trscookie. |
Refer the following
http://people.arxnet.hu/airween/mysql_auth/ |
Humm,
I've followed the guide however on CentOS squid doesnt come with mysql_auth. It does however come with the following: Code:
[root@server squid]# pwd Is it possible to write my own authentication script if so, how does it work? I cant find out how it passes in the user, password and all that. Cheers again, trscookie. |
Ah I may have just found something that might help:
http://www.freesoftwaremagazine.com/...ion_with_squid |
Ok, now I have a new error!!! I have tried to create my own auth script however I just get crap in the log files and I cant find anything useful on google:
/var/log/squid/cache.log: Code:
1031 2010/11/29 18:18:18| helperHandleRead: unexpected read from basicauthenticator #4, 3 bytes 'ERR' squid.conf: Code:
10 auth_param basic program /usr/bin/php /usr/lib64/squid/sql_auth.php My auth script - /usr/lib64/squid/sql_auth.php: Code:
<?php I believe that this error is causing my authentication to fail, however the script returns OK or ERR in the command line when passing the values in, such as: Code:
root@server squid]# php /usr/lib64/squid/sql_auth.php Any ideas would be more than appreciated. Many thanks, trscookie |
All times are GMT -5. The time now is 04:35 AM. |