[SOLVED] Bypass_squid_authentication for specific ip
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
hi every one, i installed squid on rhel6 working perfect with all restcricted sites authentication, the problem is one of my Director asked me that he hates the authentication process, so please remove and allow internet directly. Can any one of you help me how to by pass authentication only for that particular IP address
bathory, thank you very much for your reply, im sorry to inform you that i did the same as you written, but its still asking the password. Please tel me if you know any other method. My requirement is proxy shouldn't ask authentication for that ip, when my director from that IP type www.google.com and hit enter it directly show google web page without asking username and password, but for other systems and other users it should ask for authentication.
I guess you're reloading squid after making changes in squid.conf.
Could you post squid.conf? Also check the squid access.log to make sure that your director is actually uses that IP
What is the subbu acl for user subbu. If it's for your director, you don't need that.
Anyway, you can put the "http_access allow director" before any other "http_access ..." directive, so that it's first evaluated and so your director is allowed access without providing username/password:
Code:
<snip>
http_access allow director
http_access deny !valid_users <-- this is useless
http_access allow authenticated
http_access allow all <-- this is useless
http_access deny all
hi, bathory you are really awesome. Thank you very much, Funny thing is i been using exactly the same acl, directives for a long time. but as you said "httP_acceess allow director" should be used only before any "http_access" directive. i always used to keep "http_access allow director" after few "http_access....." directives. Now it's working two birds for one shot... didn't get it, i used the same trick to alway_direct.
Hilight is the reall stuff educated me rather than giving blind instuctions.
thank you very much can i ask you help. Can you send me request for me on facebook. my id SUBBARAOGANESHNA
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.