{"id":292,"date":"2017-12-28T09:38:21","date_gmt":"2017-12-28T09:38:21","guid":{"rendered":"https:\/\/langhard.net\/?p=292"},"modified":"2018-10-12T07:48:03","modified_gmt":"2018-10-12T07:48:03","slug":"personal-proxy-server-squid-setup","status":"publish","type":"post","link":"https:\/\/langhard.net\/?p=292","title":{"rendered":"Personal proxy server Squid setup"},"content":{"rendered":"<h2>How to set up a personal Proxy server with Squid<\/h2>\n<h3>Squid: Optimising Web Delivery<\/h3>\n<p>Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-requested web pages. Squid has extensive access controls and makes a great server accelerator. It runs on most available operating systems, including Windows and is licensed under the GNU GPL.\u00a0<span>Squid is used by hundreds of Internet Providers world-wide to provide their users with the best possible web access. Squid optimises the data flow between client and server to improve performance and caches frequently-used content to save bandwidth. Squid can also route content requests to servers in a wide variety of ways to build cache server hierarchies which optimise network throughput.\u00a0Thousands of web-sites around the Internet use Squid to drastically increase their content delivery. Squid can reduce your server load and improve delivery speeds to clients. Squid can also be used to deliver content from around the world &#8211; copying only the content being used, rather than inefficiently copying everything. Finally, Squid&#8217;s advanced content routing configuration allows you to build content clusters to route and load balance requests via a variety of web servers.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3>Have a fully updated ubuntu 16.04 server<\/h3>\n<pre>sudo apt-get update\r\n\r\nsudo apt-get upgrade<\/pre>\n<h3>Installing Squid<\/h3>\n<pre class=\"code\">sudo apt-get install squid3<\/pre>\n<p>Install apache utilities for htpasswd<\/p>\n<pre><span>sudo apt-get install apache2-utils<\/span><\/pre>\n<p>Edit the\u00a0 squid configuration file.<\/p>\n<pre>sudo nano\u00a0\/etc\/squid\/squid.conf<\/pre>\n<p>Replace text with:<\/p>\n<pre>auth_param basic program \/usr\/lib\/squid\/digest_pw_auth \/etc\/squid\/passwords\r\nauth_param basic realm proxy\r\nacl authenticated proxy_auth REQUIRED\r\nhttp_access allow authenticated\r\n\r\n# Choose the port you want. Below we set it to default 3128.\r\nhttp_port 3128<\/pre>\n<p>Setup a user for authentication<\/p>\n<pre>sudo htpasswd -c \/etc\/squid\/passwords username<\/pre>\n<p>Type password twice<\/p>\n<p>&nbsp;<\/p>\n<p><span>Now you have a personal proxy server up and running on port 3128 and the IP address of the system you just installed Squid on. You would then go to your computers and configure them to use that newly configured proxy via IP and port.<\/span><\/p>\n<p><em>Don&#8217;t forget to redirect your firewall to your newly created proxyserver.<\/em><\/p>\n<h3>Proxy browser setup<\/h3>\n<p>Below you can se an example of how you can configurate your computer to use proxy with all your internet browsers.<\/p>\n<p>Click on magnify and search for internet options.<br \/>\nClick on connections then LAN-setup.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/staging.langhard.net\/wp-content\/uploads\/2017\/12\/inslanproxy.png\" alt=\"\" width=\"357\" height=\"350\" class=\"alignnone wp-image-295 size-full\" srcset=\"https:\/\/langhard.net\/wp-content\/uploads\/2017\/12\/inslanproxy.png 357w, https:\/\/langhard.net\/wp-content\/uploads\/2017\/12\/inslanproxy-300x294.png 300w\" sizes=\"auto, (max-width: 357px) 100vw, 357px\" \/><\/p>\n<p>How to add exeptions for proxy. for example microsoft office 365. Just add ;*.microsoft.com ;*.office365.com<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/staging.langhard.net\/wp-content\/uploads\/2017\/12\/proxy2.png\" alt=\"\" width=\"462\" height=\"536\" class=\"alignnone wp-image-302 size-full\" srcset=\"https:\/\/langhard.net\/wp-content\/uploads\/2017\/12\/proxy2.png 462w, https:\/\/langhard.net\/wp-content\/uploads\/2017\/12\/proxy2-259x300.png 259w\" sizes=\"auto, (max-width: 462px) 100vw, 462px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to set up a personal Proxy server with Squid Squid: Optimising Web Delivery Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-requested web pages. Squid has extensive access controls and makes a great server accelerator. It runs [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":294,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[89],"tags":[69,75,77,79,73],"class_list":["post-292","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux-en","tag-linux-en","tag-proxy-en","tag-safe-en","tag-squid-en","tag-ubuntu-en"],"_links":{"self":[{"href":"https:\/\/langhard.net\/index.php?rest_route=\/wp\/v2\/posts\/292","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/langhard.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/langhard.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/langhard.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/langhard.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=292"}],"version-history":[{"count":0,"href":"https:\/\/langhard.net\/index.php?rest_route=\/wp\/v2\/posts\/292\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/langhard.net\/index.php?rest_route=\/wp\/v2\/media\/294"}],"wp:attachment":[{"href":"https:\/\/langhard.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=292"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/langhard.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=292"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/langhard.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=292"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}