LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-25-2014, 12:52 AM   #1
danialnaeem
Member
 
Registered: Feb 2014
Posts: 35

Rep: Reputation: Disabled
Question 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
 
Old 06-25-2014, 04:22 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,167
Blog Entries: 1

Rep: Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038
Quote:
Originally Posted by danialnaeem View Post
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
 
  


Reply

Tags
redhat, squid, squidproxy



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Squid config, allow external IP address to connect to Squid langerak Linux - Server 10 08-04-2010 09:17 AM
Bind IP address with MAC address in squid 3 ( Source baced) gulnawaz Linux - Server 3 01-14-2010 01:25 AM
binding of IP address to its mac address in squid proxy ramamalempati Linux - Server 5 06-05-2009 02:51 AM
Squid acl block internet by ip address xzeppelin Linux - Newbie 5 05-28-2008 03:06 PM
Should i use the eth0 ip address of my internet ip address when applying iptables ForumKid Linux - Security 2 01-03-2002 08:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration