<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3910265020443939004</id><updated>2011-11-27T15:31:31.785-08:00</updated><title type='text'>SQUID FOR WINDOWS XP/2003</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://squidforwindows.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3910265020443939004/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://squidforwindows.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>b-mood</name><uri>http://www.blogger.com/profile/00741418506102750796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_TZTlvqG31ks/TA31L4rWsEI/AAAAAAAAABE/jYWzdQcJb_k/S220/jay.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3910265020443939004.post-5952710365643059483</id><published>2010-05-29T07:48:00.000-07:00</published><updated>2010-05-29T07:48:39.375-07:00</updated><title type='text'>WEB FILTERING IN WINDOWS XP AND 2003 ENVIRONMENT</title><content type='html'>&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;The inability and not easy to configure &lt;b&gt;ISA&lt;/b&gt; (Internet Security and Acceleration) Server and licenses on this product is a great burden when you are a System Administrator yet you are task to filter the websites being visited by your clients in a windows xp and 2003 environment.&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;Good thing that there's SQUID for windows nowadays. It helps those System Administrators implement web proxy cache,filtering, blocking of unwanted sites using SQUID.&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;This sites shows the step by step configuration and a bit scripting on SQUID.&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;1. Download SQUID &lt;a href="http://www.ausgamers.com/images/features/squid-tutorial/parabol_squid-2.7.STABLE2-bin.zip"&gt;here&lt;/a&gt;.&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;2. Extract the file and cut the folder named "squid" on drive C.&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;b&gt;Preparing squid ::&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;Now we need to make squid's swap directories, which will contain all the cache data: &lt;br /&gt;&lt;br /&gt;1. Open up &lt;i&gt;Command Prompt&lt;/i&gt; (Start -&amp;gt; Run -&amp;gt; cmd.exe) &lt;br /&gt;2. Navigate to &lt;i&gt;c:\squid\sbin&lt;/i&gt; ( execute: &lt;b&gt;cd /d c:\squid\sbin&lt;/b&gt; ) &lt;br /&gt;3. Run: &lt;b&gt;squid -z&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;It should now create swap directories like so: &lt;br /&gt;&lt;br /&gt;&lt;img src="http://www.ausgamers.com/images/features/squid-tutorial/squid_swap.png" /&gt; &lt;br /&gt;&lt;br /&gt;If it fails with "Abnormal Termination" or similar, then something went wrong. Don't proceed any further if this is so. Step through the tutorial again or grab my version of squid if you didn't. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;:: Configuring browser ::&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;If you have Firefox, find your way to the Network &lt;i&gt;Connection Settings&lt;/i&gt; menu and add IP &lt;i&gt;127.0.0.1&lt;/i&gt; with port &lt;i&gt;3128&lt;/i&gt; as a proxy like so: &lt;br /&gt;&lt;br /&gt;&lt;img height="320" src="http://www.ausgamers.com/images/features/squid-tutorial/squid_ff.png" width="314" /&gt; &lt;br /&gt;&lt;br /&gt;For Internet Explorer, you can do the same via the &lt;i&gt;LAN Settings&lt;/i&gt; in &lt;i&gt;Internet Options&lt;/i&gt; like so: &lt;br /&gt;&lt;br /&gt;&lt;img height="230" src="http://www.ausgamers.com/images/features/squid-tutorial/squid_ie6.png" width="300" /&gt; &lt;br /&gt;&lt;br /&gt;(You can undo these steps at any time if you get rid of squid in future or if it's causing problems) &lt;br /&gt;&lt;br /&gt;Now try to view a website. &lt;b&gt;It should fail&lt;/b&gt;. &lt;br /&gt;&lt;br /&gt;That's good, it just means there's nothing already running on squid's port, which is what we want. We can now get the proxy up and running in the next section. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;:: Testing squid ::&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;With the prompt still open, run: &lt;b&gt;squid -X&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;The &lt;i&gt;-X&lt;/i&gt; switch just tells squid to stay attached to the prompt and show heaps of output. You should see a whole heap of text, and then squid will look like it's paused like this: &lt;br /&gt;&lt;br /&gt;&lt;img src="http://www.ausgamers.com/images/features/squid-tutorial/squid_test.png" /&gt; &lt;br /&gt;&lt;br /&gt;With the prompt still open with squid running, try to browse in Firefox or Internet Explorer. It should work this time round. Great! &lt;br /&gt;&lt;br /&gt;Now hold &lt;i&gt;CTRL&lt;/i&gt; and then &lt;i&gt;C&lt;/i&gt; to terminate the squid session. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;:: Finalising squid ::&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;Now we wrap it up so that squid is launched automatically when Windows starts. &lt;br /&gt;&lt;br /&gt;Again with the prompt still open, run: &lt;b&gt;squid -i -n squid -O "-D"&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;It should now output success: &lt;br /&gt;&lt;br /&gt;&lt;img src="http://www.ausgamers.com/images/features/squid-tutorial/squid_service.png" /&gt; &lt;br /&gt;&lt;br /&gt;You can now reboot to get squid to run in the background, or alternatively launch the service manually just this once: &lt;b&gt;net start squid&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;&lt;img src="http://www.ausgamers.com/images/features/squid-tutorial/squid_start.png" /&gt; &lt;br /&gt;&lt;br /&gt;The tutorial is now complete. You can now enjoy the benefits of a local web proxy cache and snappy browsing! &lt;br /&gt;&lt;br /&gt;&lt;b&gt;:: Serving a LAN ::&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;The tutorial was written to show how one would run and use squid locally. This is because the typical desktop machine isn't necessarily on 24/7 to allow other machines to have proxy access. If your situation differs and you wish to allow other machines to connect, it's fairly simple to achieve. &lt;br /&gt;&lt;br /&gt;1. Open up &lt;i&gt;c:\squid\etc\squid.conf&lt;/i&gt; in a text-editor. &lt;br /&gt;2. Search for: &lt;b&gt;10.0.0.0/8&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;You'll see several 'allow' rules for different networks/subnets: &lt;br /&gt;&lt;br /&gt;&lt;img src="http://www.ausgamers.com/images/features/squid-tutorial/squid_acl.png" /&gt; &lt;br /&gt;&lt;br /&gt;If one of these IP ranges corresponds to your LAN then you don't need to alter the configuration file. Otherwise, simply add a new rule for your network (or modify the existing ones). The "192.168.0.0/16" template would be the best to build from for most purposes. Once you've made the configuration change, restart the squid server (either reboot or perform: &lt;b&gt;net stop squid&lt;/b&gt; followed by &lt;b&gt;net start squid&lt;/b&gt;). &lt;br /&gt;&lt;br /&gt;Now just restep through the "Configuring Browser" step earlier in the tutorial for the other machines, but put the LAN IP of the squid server in.&amp;nbsp;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;b&gt;Configure squid.conf to filter some websites&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;To filter streaming sites like youtube or metacafe edit the file "squid.conf" using notepad &lt;b&gt;C:\squid\etc\squid.conf&lt;/b&gt; file and do this script&lt;br /&gt;&lt;br /&gt;acl nameofscript dstdomain sites sites sites&lt;br /&gt;http_access deny nameofscript&lt;br /&gt;&lt;br /&gt;see example.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_TZTlvqG31ks/S__kXPVDeZI/AAAAAAAAAAg/ECdc3Y7wKBg/s1600/2.JPG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://1.bp.blogspot.com/_TZTlvqG31ks/S__kXPVDeZI/AAAAAAAAAAg/ECdc3Y7wKBg/s640/2.JPG" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt; &lt;/b&gt;&lt;br /&gt;&lt;b&gt; &lt;/b&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;/div&gt;&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3910265020443939004-5952710365643059483?l=squidforwindows.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://squidforwindows.blogspot.com/feeds/5952710365643059483/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://squidforwindows.blogspot.com/2010/05/web-filtering-in-windows.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3910265020443939004/posts/default/5952710365643059483'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3910265020443939004/posts/default/5952710365643059483'/><link rel='alternate' type='text/html' href='http://squidforwindows.blogspot.com/2010/05/web-filtering-in-windows.html' title='WEB FILTERING IN WINDOWS XP AND 2003 ENVIRONMENT'/><author><name>b-mood</name><uri>http://www.blogger.com/profile/00741418506102750796</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_TZTlvqG31ks/TA31L4rWsEI/AAAAAAAAABE/jYWzdQcJb_k/S220/jay.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_TZTlvqG31ks/S__kXPVDeZI/AAAAAAAAAAg/ECdc3Y7wKBg/s72-c/2.JPG' height='72' width='72'/><thr:total>0</thr:total></entry></feed>
