Squid proxy MySQL authentication config -
i'm wondering know how configure squid server mysql authentication. i've found config example following:
auth_param basic program /usr/local/squid/libexec/squid_db_auth --user dbusername --password dbuserpassword --plaintext --persist auth_param basic children 5 auth_param basic realm web-proxy auth_param basic credentialsttl 1 minute auth_param basic casesensitive off
http://linuxpoison.blogspot.com/2010/08/configuring-squid-server-to.html
and tested on localhost. worked well. in case, mysql server located on server. so, need specify "hostname" , "port" of mysql server.
can ?
thanks in advance.
as per code make changes in squid_db_auth
example below,
my $dsn = "dbi:mysql:database=yourdbname;host=remotemysqlserverip";
add above line `squid_db_auth?. have tested same squid 3.1.10.
Comments
Post a Comment