Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've tried to make proxy authentication but I couldn't. This is the part of my squid.conf :
auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/passwd
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server - SO Coka
auth_param basic credentialsttl 2 hours
In almost every place where I've read about proxy authentication it was written that " Go to the ../auth_modules/NCSA directory and give
# make
# make install
At first I didn't find the ../auth_modules/NCSA directory. Where is it?
After that I faund (by the Search for Files main menu program) the ncsa_auth file in the /usr/lib/squid/ directory but I dont know how to check if it is a correct program and ready to run.
After that I made the passwd file (htpasswd -c /etc/squid/passwd username).
After that I reloaded the squid.conf , but the result is negativ.
When I am trying to use internet the login prompt appears, I type the username and the password, but I can't use internet and the login prompt appears again. But if I comment the authentication lines the internet is ok.
I had similar problem with auth a while back but it was with apache it maybe be the same issue though. Check that permissions for the passwd file and others and make sure that the correct user squid in this case has ownership and rwx permissions to it.
It doesn't matter that you are loged into the computer as root, because the squid service is being run as the user squid and web as the web user usually apache or httpd so if they dont have the proper permissions to the password files etc squid wont authenicate you .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.