Jump to content

Recommended Posts

 

To allow http_access for some IP or access you need to define ACL (access control list) to work with squid proxy server.

 

Squid configuration file located at /etc/squid/squid.conf. Open file using a text editor:

# vi /etc/squid/squid.conf

 

Please try this one for some single IP address:

------------------------------------------------

acl all src 0.0.0.0/0.0.0.0

acl allow_list src 10.0.0.0/255.255.0.0

http_access allow allow_list

http_access deny all

 

If you want to give access to some specfic range of IP:

-------------------------------------------------------

acl our_networks src 192.168.1.0/24 192.168.2.0/24

http_access allow our_networks

http_access deny all

 

And finally Save and close the file. Start squid proxy server by using command given below:

-------------------------------------------------------------------------------------------

chkconfig squid on

/etc/init.d/squid start

 

 

JPC-Daniel

____________

JaguarPC.com

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.