Easy Technical Guides for Windows and Linux Admins
  • Home
  • Linux Basics
  • Squid Proxy
  • Linux HowTo's
  • Windows HowTo's
  • Free E-Books
  • Disclaimer
  • Contact
  • About
21 December 2014

How to Allow Specific IP in Squid Proxy

Written by H.Haider
CentOS/RHEL, Proxy 2 Comments

Last updated on May 25th, 2018 at 08:55 pm

How to Allow Specific IP in Squid Proxy

Some time we require to allow specific ip address to be exempted from all the restriction, such as boss and system administrators. So this guide will show you step by step instruction to Allow Specific IP in Squid Proxy Server.

In your squid configuration file, located at /etc/squid/squid.conf you would write something like this to Allow Specific IP in Squid Proxy:

Example- 1: Allow Single IP:

acl Boss_IP src 192.168.1.199
http_access allow Boss_IP

After adding those lines save and exit squid configuration file and restart squid proxy server service using following command:

systemctl restart squid.service

Squid implement ACL’s line by line if first ACL’s will match so it will apply and ignore rest all, so make sure you add this allowed ip ACL’s above to restricted ACL’s.

Example-2: Allow list of IP’s

For instance, you need to allow more than one ip address, in this case you will create list of ip address in a file then point this file in squid configuration file acl section by giving path.

Create IP Address List:

# vi /etc/squid/Allowed_IPs.txt

Paste below ip list ( you can modify ip list as per your network requirements)

192.168.1.100
192.168.1.101
192.168.1.102
192.168.1.103
192.168.1.104

Now Add ACL to Block This IPs List

acl Allowed_IPs  src "/etc/squid/Allowed_IPs.txt"
http_access allow Allowed_IPs

Note:- Make sure to add this ACL above to any restricted Access List.

Restart Squid Service

systemctl restart squid.service


If you like this Post, please give us your valuable feedback by pressing Vote Up / Vote Down Button. Thanks.

[thumbs-rating-buttons]


Like This Article?

We have tons of great free content! Join 590 others and get access to coupons, freebies, and other great Tips & Tricks.

Invalid email address
We promise not to spam you. You can unsubscribe at any time.
Thanks for subscribing! Please check your email for further instructions.

Post Views: 12,942
Share On
Share on Facebook
Share on Twitter
Share on Google+
Share on LinkedIn
Share on Pinterest
Share on StumbleUpon
Share on Tumblr
Share on Whatsapp

Related Posts

  • Mac restriction in squid proxy

    Deny Access Based on MAC Address in Squid Proxy

    September 12, 2017
  • How to Install Lamp Server on Fedora/Redhat/Centos 7.0

    June 25, 2015
  • How to fix Microsoft Office Configuration Progress Every time When it starts

    June 9, 2015

2 Comments

  1. sharik Reply to sharik
    March 29, 2017 at 4:03 pm

    thanks for this post ….. really amezing.

  2. Mark Reply to Mark
    January 27, 2018 at 2:58 pm

    Thanks a lot. Do you have any tips for how to only allow particular external IPs to use certain proxy IPs.
    E.g. if there are 10 proxy IPs, and you want to assign 3 to some unique IPs, another 3 to another unique IP, and the others to unique IPs.

Leave a Reply

Cancel reply

Search Tech Resources

Never Miss an Update !

Receive all our future posts instantly in your inbox. Enter your email to enroll.
Invalid email address
We promise not to spam you. You can unsubscribe at any time.
Thanks for subscribing! Please check your email for further instructions.

Categories

  • Android (16)
  • CentOS/RHEL (118)
  • Deals (1)
  • Game Errors (6)
  • iPhone Tips & Tricks (4)
  • Linux Basics (19)
  • Mobile Tips & Tricks (3)
  • Photoshop Tips & Tricks (1)
  • Printer Tips & Tricks (2)
  • Proxy (10)
  • Security (6)
  • Shell Scripts (6)
  • Ubuntu (3)
  • Windows (40)
  • Wordpress (4)
  • WordPress Basics (1)
  • YouTube Tips (5)

Popular Posts

  • Easy Guide – How to Save Facebook Video to iPhone/iPad H.Ali September 28, 2018
  • Mac restriction in squid proxy
    Deny Access Based on MAC Address in Squid Proxy H.Haider September 12, 2017

Quick Links


Home
About
Windows HowTo's
Linux Basics
Contact

Social Media

  • Connect on Facebook
  • Connect on Twitter
  • Connect on YouTube

Copyright 2009-2019