Squid3 proxy setup




















While Squid has rich feature sets as a general web-caching proxy server, this tutorial will not discuss all those features. Instead, it focuses on describing how to configure a transparent proxy with Squid. Squid is set to start automatically upon boot. To configure Squid as a transparent proxy, modify its configuration file, and restart it as follows. The line starting with acl specifies the clients which are allowed to use the proxy. In this case, those whose IP address belongs to By enabling the authentication setting, you can ask the users to prove their authorization by logging in to your server.

You need to install the Apache utility tools on your Linux system to configure the login approval system. Run the following command-line given below to install the Apache tool. Once the installation is done, you can now create a script to assign a username and password for your network. After creating the login script, you just need to set the path of the login file inside the Squid configuration settings. Add the following parameters inside the configuration script of the Squid proxy.

First, you need to create a file to store the URLs of the websites that you want to block. You need to add the URLs after a. Let, I want to block Facebook; in that case, I have to put the address as. After that, open the configuration script of your proxy server and add the following lines after the ACL settings. This is the step where you can configure your client to access your Squid proxy server.

You need to open your web browser and find the network setting to set up the configuration. Here, I am using the Firefox web browser, and you can use any other browser as well. Usually, the connection settings can be found inside the Preferences setting on a web browser. On the No proxy setting, you can put your localhost address. The Squid proxy server is an excellent tool for filtering traffic, controlling bandwidth, monitoring user activity, and web caching. In the entire post, I have described the notion of the Squid proxy server and illustrated the installation process of the Squid proxy server on a Linux system.

I have also shown the process of how you can configure an HTTP connection with the Squid proxy server. If you find this post informative and helpful, please share it with your friends and the Linux community. You can also write down your opinions regarding this post in the comment section. Save my name, email, and website in this browser for the next time I comment. Sign in. Forgot your password? Get help. Privacy Policy. Password recovery.

By Staff Writer. Last Update: November 8, Save the changes, and to check whether your blocked websites are blocked or not, restart your squid service and verify the URL in your web browser. You can also block a user from downloading specific files like audio and video files using ACL. It will prevent the user from downloading audio or video files with extensions like mp3, mp4, FLV, etc.

Add any file extension you want to prevent from downloading. Now, below this line, write the deny statement. You can also change the directory location where cached data should be stored. Moreover, you can also change the cache file size and no. The shows the size of the cache file, and you may change it to any size like



0コメント

  • 1000 / 1000