• Categories
    Category
  • Categories
    Category
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial Comments FAQ Related Articles

How to configure ACL rule for Browser by Squid proxy server in Ubuntu 16.04

1949

To configure ACL rule for Browser by Squid proxy server in Ubuntu 16.04

A proxy server is acts as an intermediary between a end user and the internet and allows a end user to make an indirect connection to network servers and services. A proxy server can help you take control of how users reach the internet. Squid Proxy is mainly used for caching frequently requested web content in order to speed up response time and also save network bandwidth. It supports many different protocols such as HTTP, FTP, TLS, SSL, Internet Gopher and HTTPS. This tutorial covers the configuration procedure of ACL rule for Browser by Squid proxy server in Ubuntu 16.04.

Configuration procedure

To proceed with the installation procedure, install the squid application by running the following command and press y to continue with the installation procedure.

root@linuxhelp11:~# apt-get install squid -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  gnome-software-common libgtkspell3-3-0
Use ' sudo apt autoremove'  to remove them.
Suggested packages:
  squidclient squid-cgi squid-purge smbclient winbind
.
.
Processing triggers for man-db (2.7.5-1) ...
Setting up squid (3.5.12-1ubuntu7.4) ...
Skipping profile in /etc/apparmor.d/disable: usr.sbin.squid

The Squid application has been installed successfully. Next update the target machine by running the apt-get update command.

root@linuxhelp11:~# apt-get update
Hit:1 http://in.archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Get:3 http://in.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Get:4 http://in.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Get:5 http://security.ubuntu.com/ubuntu xenial-security/main amd64 DEP-11 Metadata [60.4 kB]
.
.
Get:19 http://in.archive.ubuntu.com/ubuntu xenial-backports/universe amd64 DEP-11 Metadata [4,584 B]
Fetched 3,778 kB in 14s (258 kB/s)                                                     
Reading package lists... Done

Start the squid service by executing the following command.

root@linuxhelp11:~# systemctl start squid

Next open the squid.conf configuration file and edit the squid configuration file using vim editor and enter the following changes in the file. Save and exit the file.

root@linuxhelp11:~# vim /etc/squid/squid.conf
acl test src 192.168.7.104
acl browser_block browser Firefox
http_access deny test browser_block
http_access allow test

Restart the squid proxy server by running the following command.

root@linuxhelp11:~# systemctl restart squid

The configuration process in terminal has been completed. Next open a client machine and set proxy for the machine by opening the internet properties window and select the connection tab menu.
internet properties

Click the LAN settings on the connections menu.
LAN settings

Set the proxy address and port details and click ok.
LAN settings

To check the internet connections, select the Chrome browser and search for any website. The connections will work properly.
chrome browser

Now check for the same in Firefox browser and the site cannot be accessed in the Firefox due to the proxy connections set by the user.
not accessed


proxy server refused

The configuration procedure of setting ACL rule for browser using Squid Proxy on Ubuntu 16.04 is done successfully.

Tags:
gabriel
Author: 

Comments ( 0 )

No comments available

Add a comment

Frequently asked questions ( 5 )

Q

How to install SARG on Ubuntu?

A

For the installation of SARG on Ubuntu, use the following link as given below "https://www.linuxhelp.com/how-to-install-sarg-on-ubuntu-16-04/ "

Q

Which Protocols will support on squid?

A

The HTTP and FTP protocol will supported where squid proxy.

Q

Where to specify a hostname for Squid?

A

For specify the Hostname for squid, configure the following line in the Squid configuration "visible_hostname"

Q

What is default port number of Squid?

A

3128 is a default port number for the Squid proxy server.

Q

What are the feature available in the Squid?

A

The following features will available in the Squid,
/SquidLogs: writing and most important reading the various squid log files

/SquidMemory describes how squid uses RAM and how to optimize its usage

/SquidAcl (or Authorization): controlling squid's powerful access control features

/ContentAdaptation how to analyze, capture, block, replace, or modify the messages being proxied

/CacheDigests or ICP on steroids

/MiscFeatures: Squid 2.X miscellaneous features

Related Tutorials in How to configure ACL rule for Browser by Squid proxy server in Ubuntu 16.04

Related Tutorials in How to configure ACL rule for Browser by Squid proxy server in Ubuntu 16.04

How to install Meld tool in Ubuntu
How to install Meld tool in Ubuntu
Feb 25, 2017
How to install Dconf-Editor on Ubuntu 18.04
How to install Dconf-Editor on Ubuntu 18.04
Jul 14, 2018
How to install and update OpenSSL on Ubuntu 16.04
How to install and update OpenSSL on Ubuntu 16.04
Mar 9, 2017
How to install GLib 2.0 on Ubuntu 17.04
How to install GLib 2.0 on Ubuntu 17.04
May 22, 2017
How to Install Android Emulator on Ubuntu 20.4.1
How to Install Android Emulator on Ubuntu 20.4.1
Jul 13, 2021
How To Install AnyDesk on Ubuntu 16.04
How To Install AnyDesk on Ubuntu 16.04
Apr 4, 2018
How to install Genymotion 2.12.1 on Ubuntu 18.04
How to install Genymotion 2.12.1 on Ubuntu 18.04
Jul 9, 2018
How to limit bandwidth in Squid - Part 4
How to limit bandwidth in Squid - Part 4
Jun 28, 2016

Related Forums in How to configure ACL rule for Browser by Squid proxy server in Ubuntu 16.04

Related Forums in How to configure ACL rule for Browser by Squid proxy server in Ubuntu 16.04

Ubuntu
matthew class=
Failed to enable unit: Refusing to operate on linked unit file sshd.service
Apr 15, 2019
Ubuntu
mason class=
Passwd: You may not view or modify password information for root On Ubuntu 19.04
May 27, 2019
Ubuntu
isaac class=
/etc/apt/sources.list Permission denied
May 18, 2017
Squid
oliver class=
how to clear squid cache
Feb 7, 2017
Ubuntu
yousuf class=
lsb_release command not working : Debian
Jan 18, 2018
Squid
owen class=
How to change default logformat in squid access log
Sep 1, 2017
ifconfig command
jackbrookes class=
what is the location of the ifconfig program on your machine?
Jan 4, 2018
Ubuntu
mason class=
"E: Package 'php-mcrypt' has no installation candidate" error on Ubuntu 20.4.1
Mar 15, 2021

Related News in How to configure ACL rule for Browser by Squid proxy server in Ubuntu 16.04

Related News in How to configure ACL rule for Browser by Squid proxy server in Ubuntu 16.04

How To Install Mixxx on Ubuntu 16.04
How To Install Mixxx on Ubuntu 16.04
Oct 11, 2017
Ubuntu 17.04 released with greater expectations
Ubuntu 17.04 released with greater expectations
Apr 15, 2017
Ubuntu Core now available on i.MX6 based TS-4900 thanks to Technologic Systems Inc.
Ubuntu Core now available on i.MX6 based TS-4900 thanks to Technologic Systems Inc.
Mar 1, 2017
Ubuntu 17.10 Artful Aardvark Beta 1 is now here. Download Now
Ubuntu 17.10 Artful Aardvark Beta 1 is now here. Download Now
Sep 2, 2017
5 Best Secure and Private Web Browsers to Look Our For
5 Best Secure and Private Web Browsers to Look Our For
Nov 24, 2018
Ubuntu Unity is no more: One Linux dream has been axed
Ubuntu Unity is no more: One Linux dream has been axed
Apr 7, 2017
Min browser may reduce the noise
Min browser may reduce the noise
Jan 28, 2017
What’s next for Ubuntu Linux Desktop?
What’s next for Ubuntu Linux Desktop?
Apr 11, 2017
Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Ganesh Konka ?
Zentya 6.1 http proxy configuration

please send link for creating zentyal 6.1 for http proxy and firewall as gateway.

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.