LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How to Allow one IP Address in squid for internet? (https://www.linuxquestions.org/questions/linux-general-1/how-to-allow-one-ip-address-in-squid-for-internet-4175509091/)

danialnaeem 06-25-2014 12:52 AM

How to Allow one IP Address in squid for internet?
 
Dear Experts:

i am using squid 3.1 and i have block some websites downloading in squid.conf for all users but i want to allow all internet and downloading access to a specific IP address how i will do this in my squid .conf file.?


Thanks

bathory 06-25-2014 04:22 AM

Quote:

Originally Posted by danialnaeem (Post 5193514)
Dear Experts:

i am using squid 3.1 and i have block some websites downloading in squid.conf for all users but i want to allow all internet and downloading access to a specific IP address how i will do this in my squid .conf file.?


Thanks

You can use an acl to specify the IP you want to allow and then use "http_access allow" before any http_access deny:
Code:

acl specialIP src x.x.x.x
http_access allow specialIP
http_access deny all

Regards


All times are GMT -5. The time now is 02:20 AM.