<?xml version='1.0' encoding='UTF-8'?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-8037929</id><updated>2008-07-30T21:33:08.435+04:30</updated><title type='text'>My recent activities!</title><link rel='alternate' type='text/html' href='http://www.sarbanha.com/recentAct/index.php'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8037929/posts/default'/><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.sarbanha.com/recentAct'/><author><name>Mohammad Ali</name><uri>http://www.blogger.com/profile/00318854002221474770</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>23</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8037929.post-113585925815234296</id><published>2005-12-29T15:50:00.000+03:30</published><updated>2006-01-02T13:35:12.310+03:30</updated><title type='text'>The technology in next 50 years</title><content type='html'>We all know that the technology is strongly tightened with our lives; if we look around we can easily find technology footprints. We are surrounded by technology, we are borne with technology and live with technology. It's been long time that this phenomenon is penetrated to any aspect of our life.&lt;br /&gt;&lt;br /&gt;As a proof we can refer to UNESCO reports and announcements that define literate individuals as people who are able to program computers. This implies the fact that we need to employ technology in order to find ourselves as a member of a modern society.&lt;br /&gt;&lt;br /&gt;This is the beginning, technology growth will never stop, and hence living in modern societies enforces us to employ this phenomenon more than ever. No one could believe that those big, heavy and low quality music players would be replaced by small, light and high quality digital music players? This particular example shows the tremendous increase of mass storages density, at the century of information, mass storage devices became abundant and everybody holds a huge amount of information in hand and move them as he walks.&lt;br /&gt;&lt;br /&gt;Next 50 years is the scene of battle of technology owners to consume more resources and bring us more technological facilities to ease our life. Having integrated communication devices makes the world smaller than ever, every body can communicate with his/her family within a fraction of time, yet another question, does this small world make people closer when you can sit far away from your family and speak to them remotely? What does it mean when we say to our friend "see you soon" or "be in touch"? In my point of view technology can be a strong wall with a small window between individuals. Today is the time of thinking about what we have lost and what we are losing, we achieved a lot, still there is a long way but if we forget ourselves we might consume human being existence to produce technological innovations.&lt;br /&gt;&lt;br /&gt;From a positive point of view, we can expect upcoming innovations helping us to think and see our surroundings better than before, exploring further areas in space, recovering our consumed resources by out sourcing from other planets.&lt;br /&gt;&lt;br /&gt;Today, technology is the most important part of our life; we can not eliminate it as it's growing as human being grows, it continues and we expect more and more innovations as result of technology progress. To believe or not, we will use this phenomenon in all aspects of our life.&lt;br /&gt;&lt;br /&gt;Author: Mohammad Ali Sarbanha&lt;br /&gt;Editor: Mrs. F. Nezami</content><link rel='alternate' type='text/html' href='http://www.sarbanha.com/recentAct/2005/12/technology-in-next-50-years.php' title='The technology in next 50 years'/><link rel='replies' type='application/atom+xml' href='http://www.sarbanha.com/recentAct' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8037929/posts/default/113585925815234296'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8037929/posts/default/113585925815234296'/><author><name>Mohammad Ali</name><uri>http://www.blogger.com/profile/00318854002221474770</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-8037929.post-112677568692712934</id><published>2005-09-15T13:16:00.000+04:30</published><updated>2005-09-15T17:54:10.663+04:30</updated><title type='text'>Using NetMeeting to share your Desktop</title><content type='html'>NetMeeting, like any other Client-Server technologies, need two different types of configuration to share your home desktop to be accessed from remote.&lt;br /&gt;At Server side you need to configure NetMeeting to host your connection session, after configuring the server side you will have a service running on your system waiting for remote connections, for the client side you don’t need to do very specific settings.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.sarbanha.ir/infoBaseGroup.php?cat=3&amp;item=64"&gt;Read full story&lt;/a&gt;.</content><link rel='alternate' type='text/html' href='http://www.sarbanha.com/recentAct/2005/09/using-netmeeting-to-share-your-desktop.php' title='Using NetMeeting to share your Desktop'/><link rel='replies' type='application/atom+xml' href='http://www.sarbanha.com/recentAct' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8037929/posts/default/112677568692712934'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8037929/posts/default/112677568692712934'/><author><name>Mohammad Ali</name><uri>http://www.blogger.com/profile/00318854002221474770</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-8037929.post-112031392899504606</id><published>2005-07-02T18:26:00.000+04:30</published><updated>2005-07-02T18:58:11.090+04:30</updated><title type='text'>Loading Cisco IOS from ROMMON...</title><content type='html'>Few days ago when I reloaded my Cisco 3725, it didn't come up, I tried many times, I found that it can not be the IOS problem, though it could't be found by the router, I finally recovered that problem, my Cisco Instructor, Charles, gave me useful hints to fix my problem.&lt;br /&gt;Here I want to tell you about useful commands in ROMMON mode which help you to run your IOS from &lt;strong&gt;flash:&lt;/strong&gt; memory, &lt;strong&gt;dir&lt;/strong&gt; and &lt;strong&gt;boot&lt;/strong&gt; , see the examples below:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;rommon2&gt; &lt;strong&gt;dir flash:&lt;/strong&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;File size&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Checksum&amp;nbsp; File name&lt;br /&gt;5358032 bytes (0x51c1d0)   0x7b16&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;strong&gt;c2600-i-mz.122-10b.bin&lt;/strong&gt;&lt;br /&gt;rommon3&gt; &lt;strong&gt;boot flash:c2600-i-mz.122-10b.bin&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You can find more information about those commands in &lt;a href="http://www.cisco.com/warp/public/130/recovery_c2600.html"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;a href="http://www.cisco.com/warp/public/130/recovery_c2600.html"&gt;http://www.cisco.com/warp/public/130/recovery_c2600.html&lt;/a&gt;</content><link rel='alternate' type='text/html' href='http://www.sarbanha.com/recentAct/2005/07/loading-cisco-ios-from-rommon.php' title='Loading Cisco IOS from ROMMON...'/><link rel='replies' type='application/atom+xml' href='http://www.sarbanha.com/recentAct' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8037929/posts/default/112031392899504606'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8037929/posts/default/112031392899504606'/><author><name>Mohammad Ali</name><uri>http://www.blogger.com/profile/00318854002221474770</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-8037929.post-112031196068119594</id><published>2005-07-02T17:51:00.000+04:30</published><updated>2005-07-02T18:20:14.350+04:30</updated><title type='text'>Free  Sony-Ericsson Theme for T68i</title><content type='html'>Today I made a theme for my T68i cell phone, I decided to put it on my website as a gift to my website visitors, below you can see theme sample, if you like it you can download it to your cell phone.&lt;br /&gt;&lt;br /&gt;NOTE: I tested this theme on my cell phone but I do not take responsibility of any kind of malfunctioning or damages on your cell phone regarding to use of this theme.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.sarbanha.ir/recentAct/blogFiles/T68iFlower-Sarbanha.thm"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://www.sarbanha.ir/recentAct/blogFiles/T68iTheme.jpg" alt="T68i Theme Picture" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.sarbanha.ir/recentAct/blogFiles/T68iFlower-Sarbanha.thm"&gt;&gt;&gt;&gt;Click here to download Theme&lt;&lt;&lt;&lt;/a&gt;</content><link rel='alternate' type='text/html' href='http://www.sarbanha.com/recentAct/2005/07/free-sony-ericsson-theme-for-t68i.php' title='Free  Sony-Ericsson Theme for T68i'/><link rel='replies' type='application/atom+xml' href='http://www.sarbanha.com/recentAct' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8037929/posts/default/112031196068119594'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8037929/posts/default/112031196068119594'/><author><name>Mohammad Ali</name><uri>http://www.blogger.com/profile/00318854002221474770</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-8037929.post-111606574305550309</id><published>2005-05-14T14:18:00.000+04:30</published><updated>2005-05-14T15:13:55.846+04:30</updated><title type='text'>Loading Cisco IOS using TFTPDNLD !</title><content type='html'>Suppose you lost your Cisco flash memory and you need to download a new IOS using ROMmon mode, my Friend &lt;span style="font-style: italic; font-weight: bold;"&gt;Ahmed Magdy&lt;/span&gt; who is my Cisco instructor as well, gave me the following instructions.&lt;br /&gt;&lt;br /&gt;Step 1:&lt;br /&gt;Put your TFTP Server and Cisco router on a LAN segment. You should know TFTP Server IP address, IOS image name, Subnet mask of the network which your TFTP Server is connected to, and if your router is not connected to the same LAN of your TFTP Server you should use the gateway address as well.&lt;br /&gt;&lt;br /&gt;Step 2:&lt;br /&gt;Follow these commands,&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;strong&gt;&lt;br /&gt;rommon 1&gt; IP_ADDRESS=10.1.1.110&lt;br /&gt;rommon 2&gt; IP_SUBNET_MASK=255.255.255.0&lt;br /&gt;rommon 3&gt; DEFAULT_GATEWAY=10.1.1.111&lt;br /&gt;rommon 4&gt; TFTP_SERVER=10.1.1.111&lt;br /&gt;rommon 5&gt; TFTP_FILE=c2600-jsx-mz.122-10a.bin&lt;br /&gt;rommon 6&gt; TFTP_VERBOSE=2&lt;br /&gt;rommon 7&gt; TFTP_CHECKSUM=0&lt;br /&gt;rommon 7&gt; tftpdnld&lt;br /&gt;&lt;br /&gt;      IP_ADDRESS: 10.1.1.3&lt;br /&gt;      IP_SUBNET_MASK: 255.255.255.0&lt;br /&gt;      DEFAULT_GATEWAY: 10.1.1.3&lt;br /&gt;      TFTP_SERVER: 10.1.1.3&lt;br /&gt;      TFTP_FILE: c2600-js-mz.120-8.bin&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;Try to memorize, this is a useful comment for a network expert....&lt;br /&gt;You can check following links as well,&lt;br /&gt;&lt;a href="http://www.cisco.com/warp/public/471/76.html"&gt;http://www.cisco.com/warp/public/471/76.html&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.cisco.com/warp/public/471/76.pdf"&gt;http://www.cisco.com/warp/public/471/76.pdf&lt;/a&gt;</content><link rel='alternate' type='text/html' href='http://www.sarbanha.com/recentAct/2005/05/loading-cisco-ios-using-tftpdnld.php' title='Loading Cisco IOS using TFTPDNLD !'/><link rel='replies' type='application/atom+xml' href='http://www.sarbanha.com/recentAct' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8037929/posts/default/111606574305550309'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8037929/posts/default/111606574305550309'/><author><name>Mohammad Ali</name><uri>http://www.blogger.com/profile/00318854002221474770</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-8037929.post-111252581531195979</id><published>2005-04-03T15:15:00.000+04:30</published><updated>2005-04-03T15:29:34.273+04:30</updated><title type='text'>BSCI means Building Scalable Cisco Internetworks</title><content type='html'>One of my favourite things that I really like by heart is to learn and learn and learn..... last month I attended in BSCI course and learned lots of new things and experienced a lot. Of course my instructor &lt;span style="font-weight: bold;"&gt;Charles&lt;/span&gt; helped me too much and I really appreciate him because of all of his efforts that put to help me learn whatever I didn't know.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thanks Charles....</content><link rel='alternate' type='text/html' href='http://www.sarbanha.com/recentAct/2005/04/bsci-means-building-scalable-cisco.php' title='BSCI means Building Scalable Cisco Internetworks'/><link rel='replies' type='application/atom+xml' href='http://www.sarbanha.com/recentAct' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8037929/posts/default/111252581531195979'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8037929/posts/default/111252581531195979'/><author><name>Mohammad Ali</name><uri>http://www.blogger.com/profile/00318854002221474770</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-8037929.post-111095285110154756</id><published>2005-03-16T09:12:00.000+03:30</published><updated>2005-03-16T09:57:04.130+03:30</updated><title type='text'>3Com Switch Password Recovery</title><content type='html'>Today I tried to find how I can recover a lost password of 3Com Manageable Switch for my further reference, we use &lt;span style="font-weight: bold;font-family:courier new;" &gt;3Com Manageable SuperStack3 Model:3250&lt;/span&gt;, you can try this procedure with the other models it might work.&lt;br /&gt;&lt;br /&gt;Follow these steps to recover the password:&lt;br /&gt;1. Connect your PC serial port to &lt;span style="font-weight: bold;font-family:courier new;" &gt;console &lt;/span&gt;port of your device, use Hyper Terminal as a dumb terminal with these communication settings,&lt;span style="font-weight: bold;"&gt; 8-N-1&lt;/span&gt;, &lt;span style="font-weight: bold;"&gt;Flow Control = Hardware&lt;/span&gt;, &lt;span style="font-weight: bold;"&gt;baud rate = 19200&lt;/span&gt;.&lt;br /&gt;2. To force device to go to password recovery mode enter recover for both login and password.&lt;br /&gt;3. Device goes to the recovery mode and it shows counting down for 30 seconds, during this period you should turn of your device and turn it on.&lt;br /&gt;&lt;br /&gt;Note: GIVE AT LEAST 15 SECONDS TO THE DEVICE BEFORE TURNING IT ON&lt;br /&gt;&lt;br /&gt;4. After starting  up, the device asks you for a new admin password.&lt;br /&gt;&lt;br /&gt;Enjoy it!</content><link rel='alternate' type='text/html' href='http://www.sarbanha.com/recentAct/2005/03/3com-switch-password-recovery.php' title='3Com Switch Password Recovery'/><link rel='replies' type='application/atom+xml' href='http://www.sarbanha.com/recentAct' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8037929/posts/default/111095285110154756'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8037929/posts/default/111095285110154756'/><author><name>Mohammad Ali</name><uri>http://www.blogger.com/profile/00318854002221474770</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-8037929.post-110706625488133027</id><published>2005-01-30T08:15:00.000+03:30</published><updated>2005-01-30T11:07:15.943+03:30</updated><title type='text'>Google Search Language Setting</title><content type='html'>Since I use Google search in my website, I had a small problem with its results. Google normally checks your IP address, regional settings and cookies then return results in your language if its possible. In my case I got different languages in different browsers, when you create search profile in Google control panel, it does not provide any feature to set the search result language.&lt;br /&gt;To solve this, when you search normally through Google website, look through the query string showing in your address bar, a parameter named &lt;strong&gt;hl&lt;/strong&gt; holds language name of the result, if you change its value like this &lt;strong&gt;hl=fa&lt;/strong&gt; you will receive search result in Persian, and &lt;strong&gt;en&lt;/strong&gt; is for English.&lt;br /&gt;For your website you need to add this inside Google search form for English language:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;strong&gt;&amp;lt;input type="hidden" value="en" name="hl"&amp;gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;For other languages, at this time, Goggle supports these languages:&lt;br /&gt;&lt;br /&gt;Persian=fa, Arabic=ar, English=en, Indonesian=id, Romanian=ro, Bulgarian=bg, Estonian=es, Italian=it, Russian=ru, Catalan=ca, Finnish=fi, Japanese=ja, Serbian=sr, Chinese (Simplified)=zh-CH, French=fr, Korean=ko, Slovak=sk, Chinese (Traditional)=zh-TW, German=de, Latvian=lv, Slovenian=sl, Croatian=hr, Greek=el, Lithuanian=lt, Spanish=es, Czech=cs, Hebrew=iw, Norwegian=no, Swedish=sv, Danish=da, Hungarian=hu, Polish=pl, Turkish=tr, Icelandic=is, Portuguese (Brazil)=pt-BR, Portuguese (Portugal)=pt-PT&lt;br /&gt;&lt;br /&gt;Other Languages may be supported, if your language is not listed above you should check at Google website.&lt;br /&gt;</content><link rel='alternate' type='text/html' href='http://www.sarbanha.com/recentAct/2005/01/google-search-language-setting.php' title='Google Search Language Setting'/><link rel='replies' type='application/atom+xml' href='http://www.sarbanha.com/recentAct' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8037929/posts/default/110706625488133027'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8037929/posts/default/110706625488133027'/><author><name>Mohammad Ali</name><uri>http://www.blogger.com/profile/00318854002221474770</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-8037929.post-110664267361055386</id><published>2005-01-25T11:58:00.000+03:30</published><updated>2005-01-25T12:16:45.180+03:30</updated><title type='text'>Picas2 Category Password Recovery....</title><content type='html'>When I was trying Picasa2 features I found that it can protect specific categories by password, I set a password, after a while I forgot it!!!! I tried google to find password recovery for Picasa2, but there was nothing on the web, to be honest, I didn't search too much because I was almost sure that I can solve it ;-)&lt;br /&gt;Anyway, This might help you to recover your Picasa2 category password.&lt;br /&gt;&lt;br /&gt;1. Open this folder on your computer:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;strong&gt;&lt;em&gt;[localUsernameProfile]&lt;/em&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;\Local Settings\Application Data\Google\Picasa2\db&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;2. Remove (Or Rename) this file: &lt;span style="font-family:courier new;"&gt;&lt;strong&gt;catdata_info.pmp&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;3. Open Picasa2&lt;br /&gt;4. Change the password of that category&lt;br /&gt;5. Exit from Picasa2&lt;br /&gt;&lt;br /&gt;After that you will find another &lt;span style="font-family:courier new;"&gt;&lt;strong&gt;catdata_info.pmp&lt;/strong&gt;&lt;/span&gt; in that folder&lt;br /&gt;&lt;br /&gt;Have Fun!!</content><link rel='alternate' type='text/html' href='http://www.sarbanha.com/recentAct/2005/01/picas2-category-password-recovery.php' title='Picas2 Category Password Recovery....'/><link rel='replies' type='application/atom+xml' href='http://www.sarbanha.com/recentAct' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8037929/posts/default/110664267361055386'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8037929/posts/default/110664267361055386'/><author><name>Mohammad Ali</name><uri>http://www.blogger.com/profile/00318854002221474770</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-8037929.post-110664176615963358</id><published>2005-01-25T11:45:00.000+03:30</published><updated>2005-01-25T11:59:26.160+03:30</updated><title type='text'>Hello and Picasa2 are good softwares!</title><content type='html'>Today I found these two softwares very useful to manage my pictures and share them with my friends, I installed both of them, at first glance they look very strange but easy to understand, after you start working with them you will find that their dictionary is completely different from other common softwares, I think they will add some new words to our Computer/Internet vocabulary, these two softwares are other inventions of Google and I think they can be more common for home users.&lt;br /&gt;Picasa manages your pictures and Hello lets you communicate with other Hello users and share your pictures, when you chat with your friends try some smilies, they are funny I tried ':)'  ':('  'XO'  'LOL' , you may find more!&lt;br /&gt;Picasa and Hello work together, it means when you receive a picture from your friends on Hello  you can have it in you Picasa as well, even you can have chatting archive.&lt;br /&gt;&lt;br /&gt;You can find them from here:&lt;br /&gt;&lt;br /&gt;Picasa: &lt;a href="http://www.picasa.com/"&gt;http://www.picasa.com/&lt;/a&gt;&lt;br /&gt;Hello: &lt;a href="http://www.hello.com/"&gt;http://www.hello.com/&lt;/a&gt;&lt;br /&gt;</content><link rel='alternate' type='text/html' href='http://www.sarbanha.com/recentAct/2005/01/hello-and-picasa2-are-good-softwares.php' title='Hello and Picasa2 are good softwares!'/><link rel='replies' type='application/atom+xml' href='http://www.sarbanha.com/recentAct' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8037929/posts/default/110664176615963358'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8037929/posts/default/110664176615963358'/><author><name>Mohammad Ali</name><uri>http://www.blogger.com/profile/00318854002221474770</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-8037929.post-110551872622556314</id><published>2005-01-12T11:53:00.000+03:30</published><updated>2005-01-18T11:11:16.630+03:30</updated><title type='text'>GAG! The Graphical Boot Manager.</title><content type='html'>I was looking for a simple and easy to user/install software to use it as multiboot manager on my laptop. I googled and found a very simple boot manager, it's just a free software which you can download it from &lt;a href="http://gag.sourceforge.net/download.html"&gt;http://gag.sourceforge.net/download.html&lt;/a&gt; , then you just need to make a floppy and ...... Okay.. When you download the zip file, read install.txt to find out how to deploy this small software.&lt;br /&gt;About the features I just copied following information:&lt;br /&gt;&lt;dl&gt;&lt;li&gt;Allows boot of up to 9 different operating systems.&lt;/li&gt;&lt;li&gt;It can boot operating systems installed in primary and extended partitions on any available hard disk.&lt;/li&gt;&lt;li&gt;Can be installed from nearly all operating systems.&lt;/li&gt;&lt;li&gt;GAG doesn't need its own partition. It installs itself in the first track of the hard disk, which is reserved for these kinds of programs. It can also be installed on a floppy disk, without using the hard disk.&lt;/li&gt;&lt;li&gt;It has a timer to boot a default operating system (selectable by the user).&lt;/li&gt;&lt;li&gt;The configuration menu can be protected with a password.&lt;/li&gt;&lt;li&gt;The program works in graphic mode (needs a VGA or better graphic card), and has a lot of icons.&lt;/li&gt;&lt;li&gt;Hides the primary partitions which allows the user to have installed more than one DOS and/or Windows in the same hard disk.&lt;/li&gt;&lt;li&gt;Allows a password to be put on each operating system, denying access to non-authorized people.&lt;/li&gt;&lt;li&gt;Allows the boot manager text to be translated to all languages.&lt;/li&gt;&lt;li&gt;Can exchange disk drives, allowing to boot from the second, third... Hard disk operating systems such as MS-DOS.&lt;/li&gt;&lt;li&gt;Has the SafeBoot system, that allows to boot your hard disk even if GAG is accidentally overwrited.&lt;/li&gt;&lt;li&gt;Supports a great variety of keyboards (QWERTY, AZERTY, QWERTZ and DVORAK keyboards).&lt;/li&gt;&lt;li&gt;Fully support for hard disks up to 4 terabytes (4096 gigabytes).&lt;/li&gt;&lt;li&gt;Full version and free software (distributed under GPL license, with source code)&lt;/li&gt;&lt;/dl&gt;&lt;br /&gt;..... Enjoy it!</content><link rel='alternate' type='text/html' href='http://www.sarbanha.com/recentAct/2005/01/gag-graphical-boot-manager.php' title='GAG! The Graphical Boot Manager.'/><link rel='replies' type='application/atom+xml' href='http://www.sarbanha.com/recentAct' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8037929/posts/default/110551872622556314'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8037929/posts/default/110551872622556314'/><author><name>Mohammad Ali</name><uri>http://www.blogger.com/profile/00318854002221474770</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-8037929.post-110527725538422397</id><published>2005-01-09T16:32:00.000+03:30</published><updated>2005-01-10T08:58:27.666+03:30</updated><title type='text'>Mozilla Firefox is amazing!</title><content type='html'>I'm really excited since I ran Mozilla Firefox 1.0 on my PC for the first time, I found Internet Explorer features and Mozilla security in Firefox. Specially I found it very quick and tiny!&lt;br /&gt;One of the most important features that other well known softwares does not support in a good manner is Site Feed Handling. With Firefox you will be informed if the website you are visiting has Site Feed.&lt;br /&gt;Firefox sister is Thunderbird, which is a powerful mail client, I like it. It handles Site Feeds like e-mails so you can be more comfortable with this part of it.&lt;br /&gt;The most important part of an e-mail client is to be able to work with large files, I didn't check this software with lots of e-mails, if Mozilla programmers haven't check this before, your huge amount of e-mails might overwhelm the software's normal activity!&lt;br /&gt;My suggestion is to backup your e-mails occasionally and don't let your mail directory become too big.&lt;br /&gt;Two things are useful to be added when Mozilla programmers revise the software. Ability of dragging and dropping e-mails from mailbox list in Thunderbird and copy them to a real folder on the hard drive with &lt;span style="font-weight: bold;"&gt;.eml&lt;/span&gt; extension, like outlook. This will help user to be able to make  a clean back up of his/her e-mail.&lt;br /&gt;Another thing, its good idea to add &lt;span style="font-weight: bold;"&gt;Tray Icon &lt;/span&gt;in software, so the user can hide Thunderbird's window and its button from Task bar and have the software running when user are doing other tasks.&lt;br /&gt;I suggest you to use this software and enjoy browsing the net, if you are not windows users or you use different language you can use it either. Check Mozilla website to find more information.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.mozilla.org/"&gt;http://www.mozilla.org/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;</content><link rel='alternate' type='text/html' href='http://www.sarbanha.com/recentAct/2005/01/mozilla-firefox-is-amazing.php' title='Mozilla Firefox is amazing!'/><link rel='replies' type='application/atom+xml' href='http://www.sarbanha.com/recentAct' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8037929/posts/default/110527725538422397'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8037929/posts/default/110527725538422397'/><author><name>Mohammad Ali</name><uri>http://www.blogger.com/profile/00318854002221474770</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-8037929.post-110527023480260878</id><published>2005-01-09T14:57:00.001+03:30</published><updated>2005-01-09T15:05:07.096+03:30</updated><title type='text'>Okay, my friend joined to the game!</title><content type='html'>For people who knows farsi language they can use his blog to improve their knowledge about compiling FreeBSD Kernel.&lt;br /&gt;&lt;a href="http://j2ee-saleh.blogspot.com/2005/01/kernel-freebsd-freebsd-source-mount.html"&gt;http://j2ee-saleh.blogspot.com/2005/01/kernel-freebsd-freebsd-source-mount.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I recoomend you to follow his blog...&lt;br /&gt;</content><link rel='alternate' type='text/html' href='http://www.sarbanha.com/recentAct/2005/01/okay-my-friend-joined-to-game_09.php' title='Okay, my friend joined to the game!'/><link rel='replies' type='application/atom+xml' href='http://www.sarbanha.com/recentAct' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8037929/posts/default/110527023480260878'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8037929/posts/default/110527023480260878'/><author><name>Mohammad Ali</name><uri>http://www.blogger.com/profile/00318854002221474770</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-8037929.post-110511708733019552</id><published>2005-01-07T19:57:00.000+03:30</published><updated>2005-01-07T20:36:46.506+03:30</updated><title type='text'>How to use .htaccess files for APACHE HTTP Server</title><content type='html'>If you have important information which you don't like to make them public, you can use &lt;span style="font-family:courier new;"&gt;&lt;strong&gt;.htaccess&lt;/strong&gt;&lt;/span&gt; files to customize your directory. But you have to ask from your provider if they can provide you &lt;span style="font-family:courier new;"&gt;&lt;strong&gt;.htaccess&lt;/strong&gt;&lt;/span&gt; file.&lt;br /&gt;I post this memo because lots of people use shared hosting services because of their cheap prices, so if you are going to put important information on those type of hosts, asking about this feature will help you for your further website developments.&lt;br /&gt;&lt;br /&gt;First of all you should have your passwd file to be uploaded on the server, or the hosting service provider should give you some tools to handle this file. After you create your passwd file you should put in a secure place that nobody can access it. of course you should be able to access it through FTP or webtools to handle users and passwords.&lt;br /&gt;&lt;br /&gt;If your provider doesn't have these tools you can create password file yourself.&lt;br /&gt;You need Apache Webserver to be installed on your computer you can find &lt;span style="font-family:courier new;"&gt;&lt;strong&gt;htpasswd.exe&lt;/strong&gt;&lt;/span&gt; in &lt;strong&gt;&lt;span style="font-family:courier new;"&gt;[apache home]\bin&lt;/span&gt;&lt;/strong&gt; directory. Using this command is so easy. If you run it without any parameter it will show you usage and parameters.&lt;br /&gt;For instance you can use this command as follows:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;strong&gt;c:\ApacheHome\bin&gt; htpasswd -c users.pwd sarbanha&lt;br /&gt;Automatically using MD5 format.&lt;br /&gt;New password: ***********&lt;br /&gt;Re-type new password: ***********&lt;br /&gt;Adding password for user test&lt;br&gt;&lt;br /&gt;C:\ApacheHome\bin&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br&gt;&lt;br /&gt;Now you have a file named &lt;span style="font-family:courier new;"&gt;&lt;strong&gt;users.pwd&lt;/strong&gt;&lt;/span&gt;, later if you want to change the password you don't need to use &lt;strong&gt;&lt;span style="font-family:courier new;"&gt;-c&lt;/span&gt;&lt;/strong&gt; parameter.&lt;br /&gt;Okay, You already have a simple password file. Two other files are needed, one to secure a directory on webserver and the other one is to force HTTP Authentication for directory visitors.&lt;br /&gt;&lt;br /&gt;Now make a directory on your host to store your password file, before uploading&lt;br /&gt;your password you should be sure about its security.&lt;br /&gt;Create a text file named &lt;strong&gt;&lt;span style="font-family:courier new;"&gt;.htaccess&lt;/span&gt;&lt;/strong&gt; with the following content:&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-family:courier new;"&gt;Deny from all&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Then upload it to the directory which you created to put your password files. Try the directory it shouldn't allow you to view its content otherwise there are two possibilities, first you put your file in a wrong place or your provider does not let you use &lt;strong&gt;&lt;span style="font-family:courier new;"&gt;Limit&lt;/span&gt;&lt;/strong&gt; tags like &lt;strong&gt;&lt;span style="font-family:courier new;"&gt;Deny&lt;/span&gt;&lt;/strong&gt; or &lt;strong&gt;&lt;span style="font-family:courier new;"&gt;Allow&lt;/span&gt;&lt;/strong&gt; in your &lt;strong&gt;&lt;span style="font-family:courier new;"&gt;.htaccess&lt;/span&gt;&lt;/strong&gt; file, So you have to cunsult with your provider to provide you a secure directory and give you its full path so you can upload your password files there.&lt;br /&gt;&lt;br /&gt;Okay, when you make sure that you have a secure place for password file you need to upload it there, you have to know its correct full path name otherwise your directory visitors can not be successfully authenticated.&lt;br /&gt;&lt;br /&gt;Time to creare another &lt;strong&gt;&lt;span style="font-family:courier new;"&gt;.htaccess&lt;/span&gt;&lt;/strong&gt; file which is our goal. Just to remind the subject we are doing this to secure a portion of a website, let say a sub directory of our website.&lt;br /&gt;So, create a new &lt;strong&gt;&lt;span style="font-family:courier new;"&gt;.htpasswd&lt;/span&gt;&lt;/strong&gt; file with the following content:&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-family:courier new;"&gt;AuthType Basic&lt;br /&gt;AuthName "Password Required"&lt;br /&gt;#Chenge the the path to your password file in the next line&lt;br /&gt;AuthUserFile /hosts/mywebsite/www/passwords/users.pwd&lt;br /&gt;Require valid-user&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Note that AuthName tag is only a prompt, you can change it to whatever you want.&lt;br /&gt;&lt;br /&gt;Now if you upload this file into any directory, it needs HTTP Authentication and the visitor should enter a correct password to be able to visit that part of your site.&lt;br /&gt;&lt;br /&gt;Thats it, if you have done this procedure correctly it should work.&lt;br /&gt;&lt;br /&gt;Another small tip is, if your service provider does not let directory visitors to be able to read your password files or it has a special format or extention for password files you will need only one &lt;strong&gt;&lt;span style="font-family:courier new;"&gt;.htaccess&lt;/span&gt;&lt;/strong&gt; file. I mean you don't need to creat a directory and secure it yourself. So you can omit the first &lt;strong&gt;&lt;span style="font-family:courier new;"&gt;.htaccess&lt;/span&gt;&lt;/strong&gt; creation.&lt;br /&gt;</content><link rel='alternate' type='text/html' href='http://www.sarbanha.com/recentAct/2005/01/how-to-use-htaccess-files-for-apache.php' title='How to use .htaccess files for APACHE HTTP Server'/><link rel='replies' type='application/atom+xml' href='http://www.sarbanha.com/recentAct' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8037929/posts/default/110511708733019552'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8037929/posts/default/110511708733019552'/><author><name>Mohammad Ali</name><uri>http://www.blogger.com/profile/00318854002221474770</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-8037929.post-110415327304850535</id><published>2004-12-27T16:15:00.000+03:30</published><updated>2004-12-27T17:10:16.766+03:30</updated><title type='text'>Is it Microsoft bug or SQUID cache server bug?!</title><content type='html'>These days I received lots of complains from my network users about logging into HOTMAIL, I installed an squid cache server in the transparent mode and it was working fine.&lt;br /&gt;I found out that when a user use IE6 and after logging into HOTMAIL.COM, instead of mailbox a blank page was appeared! But with Netscape 7.2 which I normally use, there is no problem!&lt;br /&gt;After some work around the issue I found out that its because of header encoding which IE uses to place its requests.&lt;br /&gt;Getting rid of this problem is very easy but the concept from SQUID Cache server point of view is, we have to anonymize headers to not to use encodings.&lt;br /&gt;&lt;br /&gt;for SQUID version 2.5.STABLE7, use the following configuration in squid.conf:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Courier New, Courier, mono;"&gt;&lt;strong&gt;header_access Accept-Encoding deny all&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;for SQUID Version 2.4.STABLE6&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Courier New, Courier, mono;"&gt;&lt;strong&gt;anonymize_headers deny Accept-Encoding&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;the second configuration may work for HOTMAIL, but check with GMAIL this might not working! its better to upgrade your SQUID if you have old version.&lt;br /&gt;</content><link rel='alternate' type='text/html' href='http://www.sarbanha.com/recentAct/2004/12/is-it-microsoft-bug-or-squid-cache.php' title='Is it Microsoft bug or SQUID cache server bug?!'/><link rel='replies' type='application/atom+xml' href='http://www.sarbanha.com/recentAct' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8037929/posts/default/110415327304850535'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8037929/posts/default/110415327304850535'/><author><name>Mohammad Ali</name><uri>http://www.blogger.com/profile/00318854002221474770</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-8037929.post-110096743832630322</id><published>2004-11-20T19:25:00.000+03:30</published><updated>2004-11-20T19:53:56.636+03:30</updated><title type='text'>PF Firewalling small tip</title><content type='html'>I was trying to block HTTP access of one of my users, I have a SQUID Cache server/Gateway in my network bottleneck and I just use one of Ethernet ports of that server just for catching HTTP connections and cache contents, I also installed a &lt;strong&gt;PF&lt;/strong&gt; as Firewall. As you may know with &lt;strong&gt;PF&lt;/strong&gt; is very easy to block any kind of access inbound or outbound, I used following command to not to let my user be able to initiate HTTP requests by editting &lt;font face="Courier New, Courier, mono" &gt;/etc/pf.conf&lt;/font&gt;:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Courier New, Courier, mono;"&gt;block in on bge0 proto tcp from 10.0.0.1 to any port 80&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;But I experienced a strange thing, the client was able to use HTTP, I also checked my SQIUID, all user queries were passing through SQUID proxy, the reason was because PF redirects packets before any kind of filtering!&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;IMPORTANT: PF redirects packets before any kind of filtering&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;So then, I edited &lt;font face="Courier New, Courier, mono" &gt;/etc/pf.conf&lt;/font&gt; like this:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Courier New, Courier, mono;"&gt;&lt;br /&gt;table &lt;myusers&gt;{ 10.0.0.0/8, !10.0.0.1 }&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;rdr on bge0 proto tcp from &lt;myusers&gt;to any port 80 -&gt; 127.0.0.1 port 3128&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;block in on bge0 proto tcp from 10.0.0.1 to any port 80&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;after configuration following commands reload the new configuration:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Courier New, Courier, mono;"&gt;&lt;br /&gt;$pfctl -d -k localhost&lt;br /&gt;$pfctl -e -f /etc/pf.conf&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now my user with a static 10.0.0.1 is not able to use HTTP, that was only a test! nobody want to limit HTTP access for a user!&lt;br /&gt;&lt;br /&gt;</content><link rel='alternate' type='text/html' href='http://www.sarbanha.com/recentAct/2004/11/pf-firewalling-small-tip.php' title='PF Firewalling small tip'/><link rel='replies' type='application/atom+xml' href='http://www.sarbanha.com/recentAct' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8037929/posts/default/110096743832630322'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8037929/posts/default/110096743832630322'/><author><name>Mohammad Ali</name><uri>http://www.blogger.com/profile/00318854002221474770</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-8037929.post-109698762538064111</id><published>2004-10-05T18:08:00.000+03:30</published><updated>2004-11-15T16:01:21.076+03:30</updated><title type='text'>Multiple Websites on a single Host</title><content type='html'>Have you ever stopped how shared Hosting service providers put multiple websites with different domain names on a single host and single IP? They usually call it shared webhosting in contrast with dedicated servers, if you are curious to find out how it works read this PDF.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.geocities.com/sarbanha/pdf/IISVirtualHost.pdf" target="new"&gt;Multiple Websites on a sigle Host&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Later, I will add some documents about Tomcat and Apache Webserver, though the concept is the same.&lt;br /&gt;&lt;br /&gt;</content><link rel='alternate' type='text/html' href='http://www.sarbanha.com/recentAct/2004/10/multiple-websites-on-single-host.php' title='Multiple Websites on a single Host'/><link rel='replies' type='application/atom+xml' href='http://www.sarbanha.com/recentAct' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8037929/posts/default/109698762538064111'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8037929/posts/default/109698762538064111'/><author><name>Mohammad Ali</name><uri>http://www.blogger.com/profile/00318854002221474770</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-8037929.post-109698299831630230</id><published>2004-10-05T16:54:00.000+03:30</published><updated>2004-10-05T17:13:47.023+03:30</updated><title type='text'>Web Hosting and Domain Registration</title><content type='html'>Today I started my new business, now I am representative and reseller of a WebHosting company, I can offer you best prices, so send me an e-mail for details, be sure that you will find it cheaper than the other companies! Try it!&lt;br /&gt;The Datacenter is based in Canada and Domains will be registered on tucows!&lt;br /&gt;&lt;br /&gt;</content><link rel='alternate' type='text/html' href='http://www.sarbanha.com/recentAct/2004/10/web-hosting-and-domain-registration.php' title='Web Hosting and Domain Registration'/><link rel='replies' type='application/atom+xml' href='http://www.sarbanha.com/recentAct' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8037929/posts/default/109698299831630230'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8037929/posts/default/109698299831630230'/><author><name>Mohammad Ali</name><uri>http://www.blogger.com/profile/00318854002221474770</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-8037929.post-109574568676643657</id><published>2004-09-21T09:08:00.000+03:30</published><updated>2004-09-29T09:23:49.376+03:30</updated><title type='text'>Here is my website</title><content type='html'>These days I was busy with my website, I prepaired it using JSP/Java/Servlets and Net beans, but my provider still didn't send me information about the J2EE facilities of their hosting, I had to launch my website so I moved to PHP for first time.&lt;br /&gt;PHP is like JSP but it doesn't compile to a servlet or any other binaries, PHP translates pages as they are requested then it generates an out put. I found that its very useful to make reports.&lt;br /&gt;In PHP you just need to make your file as a text document then insert some PHP tags for your specific purposes then pass that file to PHP interpreter:&lt;br /&gt;&lt;br /&gt;&lt;font face="Courier New, Courier, mono"&gt;$ vi myfile.php&lt;br /&gt;$ php myfile.php&lt;br /&gt;&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;Then it will show your text containing result of PHP processed data. I enjoyed using PHP, its fast and powerfull, you can find more information about PHP in its official website, documentation is very good and prepared in different formats.&lt;br /&gt;&lt;br /&gt;PHP Website: &lt;a href="http://www.php.net"&gt;http://www.php.net&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;</content><link rel='alternate' type='text/html' href='http://www.sarbanha.com/recentAct/2004/09/here-is-my-website.php' title='Here is my website'/><link rel='replies' type='application/atom+xml' href='http://www.sarbanha.com/recentAct' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8037929/posts/default/109574568676643657'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8037929/posts/default/109574568676643657'/><author><name>Mohammad Ali</name><uri>http://www.blogger.com/profile/00318854002221474770</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-8037929.post-109526171482622448</id><published>2004-09-15T19:18:00.000+04:30</published><updated>2004-09-29T09:33:00.753+03:30</updated><title type='text'>BLOCKING SPAM GENERATORS IP ADDRESSES ON QMAIL MTA</title><content type='html'>Well, today I studied some new points about blocking spams, lots of ways, I chosed one, I don't know how effecient is it. I added some spice to my mail server. Let's see how....&lt;br /&gt;There are lots of websites providing different types of databases to let your spam blockers how to distinguish between spams and good e-mails,&lt;br /&gt;&lt;br /&gt;Some ways are like DNS Lookups for bogus IP addresses, using dummy SMTP servers, using deferral SMTP daemons, firewalling and blocking bogus spam senders, They way I have chosen today was blocking IP addresses from TCPSERVER which handles my mail server services, the TCPSERVER provide TCP connectivity for any TCP based service, I should tell you that my mail server is installed on FreeBSD, so all given information is based on that OS.&lt;br /&gt;&lt;br /&gt;those guys who installed qmail with &lt;em&gt;Life With Qmail&lt;/em&gt; direction they remember that if they want to give access of connecting to SMTP server to specific network they should do this:&lt;br /&gt;&lt;br /&gt;&lt;font face="Courier New, Courier, mono" &gt;echo '127.:allow,RELAYCLIENT=""' &gt;&gt; /etc/tcp.smtp&lt;br /&gt;qmailctl cdb&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;Okay, &lt;a href="http://www.spews.org"&gt;http://www.spews.org&lt;/a&gt; provides you a prepaired &lt;strong&gt;cdb&lt;/strong&gt; that you can download it from &lt;a href="http://spfilter.openrbl.org/data/output/DEFAULT.qmail_uce.bz2"&gt;http://spfilter.openrbl.org/data/output/DEFAULT.qmail_uce.bz2&lt;/a&gt; , now you are ready to set it , just add your network specific settings and make new &lt;strong&gt;cdb&lt;/strong&gt;, then reload int into your server.&lt;br /&gt;When you download &lt;strong&gt;DEFAULT.qmail_uce.bz2 &lt;/strong&gt;use &lt;strong&gt;bunzip&lt;/strong&gt; command to unzip it and add it to current &lt;strong&gt;tcp.smtp&lt;/strong&gt; follow these steps:&lt;br /&gt;&lt;br /&gt;&lt;font face="Courier New, Courier, mono" &gt;bunzip DEFAULT.qmail_uce.bz2&lt;/font&gt;&lt;br /&gt;use &lt;font face="Courier New, Courier, mono" &gt;vi DEFAULT.qmail_uce&lt;/font&gt; and replace all &lt;strong&gt;&lt;em&gt;allow&lt;/em&gt;&lt;/strong&gt; keywords to &lt;strong&gt;&lt;em&gt;deny&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;&lt;font face="Courier New, Courier, mono" &gt;cat DEFAULT.qmail_uce &gt;&gt; /etc/tcp.smtp&lt;/font&gt;&lt;br /&gt;&lt;font face="Courier New, Courier, mono" &gt;qmailctl cdb&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;I kept my eyes on the server to see changes. it blocks more than 2/3 of spams on my network. &lt;br /&gt;Remember that its not the end, you should check &lt;a href="http://www.spews.org/"&gt;http://www.spews.org/&lt;/a&gt; occasionally for new updates.&lt;br /&gt;</content><link rel='alternate' type='text/html' href='http://www.sarbanha.com/recentAct/2004/09/blocking-spam-generators-ip-addresses.php' title='BLOCKING SPAM GENERATORS IP ADDRESSES ON QMAIL MTA'/><link rel='replies' type='application/atom+xml' href='http://www.sarbanha.com/recentAct' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8037929/posts/default/109526171482622448'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8037929/posts/default/109526171482622448'/><author><name>Mohammad Ali</name><uri>http://www.blogger.com/profile/00318854002221474770</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-8037929.post-109489171912084651</id><published>2004-09-11T13:53:00.000+04:30</published><updated>2004-09-20T18:59:10.603+04:30</updated><title type='text'>Custom Printer Paper size!</title><content type='html'>Have you ever tried to add a new paper size for your printer? Today I tried to define my fanfold paper size in windows, I thought that would be useful to share it with others,&lt;br /&gt;&lt;br /&gt;Follow these steps to add new paper size:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Go to &lt;strong&gt;Start-&gt;Settings-&gt;Printers&lt;/strong&gt;&lt;/li&gt;&lt;li&gt;Select one of your printers ( Just Select Single Click)&lt;/li&gt;&lt;li&gt;From menu bar select &lt;strong&gt;File-&gt;Server Properties&lt;/strong&gt;&lt;/li&gt;&lt;li&gt;Now you can add a new Customized Form size in &lt;strong&gt;Forms &lt;/strong&gt;tab&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;If you spent more time you can fine usefulthings in that window&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt; &lt;/p&gt;</content><link rel='alternate' type='text/html' href='http://www.sarbanha.com/recentAct/2004/09/custom-printer-paper-size.php' title='Custom Printer Paper size!'/><link rel='replies' type='application/atom+xml' href='http://www.sarbanha.com/recentAct' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8037929/posts/default/109489171912084651'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8037929/posts/default/109489171912084651'/><author><name>Mohammad Ali</name><uri>http://www.blogger.com/profile/00318854002221474770</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-8037929.post-109488909948799337</id><published>2004-09-09T11:27:00.000+04:30</published><updated>2004-09-20T18:16:37.766+04:30</updated><title type='text'>New day! New problem!</title><content type='html'>Actually there was no problem today; I just finalized my other plan in order to provide a better service for the company customers. In our network we provide two major services, first, dial-up internet access, second, POP3 e-mail.&lt;br /&gt;&lt;br /&gt;Currently, users from outside can connect to our dial-up lines which are low quality analogue PSTN lines; we already have internet access on new digital E1 lines but e-mail users still using the old service. It's been long time that I have this idea in my mind to move them all using new digital lines instead of those old lines. I had a design, today I made it.&lt;br /&gt;&lt;br /&gt;Yesterday, I installed my last Firewall/Webcache which prepared with FreeBSD, pf Firewall and SQUID web cache and I decided to use them to let our e-mail users to login to the same network access server without having access to internet, I needed a private IP range to assign it to mail users so first of all I added a new IP pool to their group in range 10.0.0.0/8 then enable NATting on my firewall on one interface, its a little bit strange to do NAT on one interface having routing and firewalling, looks like a messy job, I add an alias on that interface and made an internal network with no route to outside.&lt;br /&gt;&lt;br /&gt;Well, this internal network was between my web server, name server and mail server. They were supposed to be on that network as well as the public network, because users were going to access them through 10.0.0.0/8 network. You may ask why I had to do NATting when all users and our network are at the same IP range and physical network. I was thinking like this, I mean I didn't add IP alias to any of my servers; I just tried to use only NATting.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src="http://www.sarbanha.com/recentAct/NewDay.jpg" /&gt;&lt;br /&gt;&lt;br /&gt;As you can see users are supposed to access the other servers through Proxy/Firewall, because DNS server resolves names with public IPs so I had to use NATting to give them access to Intranet servers, I tested the setting from LAN, I set my computer IP in B.0.0.0/8 network and the gateway was B.0.0.1/8. I worked, I thought that its possible for Dial-up users which connect to the access server to be able to do same, So I tried it with dial-up, it didn’t work! After an hour of investigating TCP/IP packets and traffic, I found a strange thing, I found my packets go through Firewall and NATted correctly but when they come back from servers they look for B.0.0.0/8 network to reach originating address, I couldn’t find the reason and I just tried different ways to see the differences, the only way that I found was to add an alias IP address for servers interfaces in B.0.0.0/8 range. Now, servers are accessible from their public addresses, through LAN and Dial-up. But still I’m thinking how its possible!&lt;br /&gt;&lt;br /&gt;</content><link rel='alternate' type='text/html' href='http://www.sarbanha.com/recentAct/2004/09/new-day-new-problem.php' title='New day! New problem!'/><link rel='replies' type='application/atom+xml' href='http://www.sarbanha.com/recentAct' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8037929/posts/default/109488909948799337'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8037929/posts/default/109488909948799337'/><author><name>Mohammad Ali</name><uri>http://www.blogger.com/profile/00318854002221474770</uri><email>noreply@blogger.com</email></author></entry><entry><id>tag:blogger.com,1999:blog-8037929.post-109453483552767491</id><published>2004-09-07T09:19:00.000+04:30</published><updated>2004-09-20T19:00:42.906+04:30</updated><title type='text'>SQUID CACHE INSTALLATION</title><content type='html'>Nowadays, you can see too much of internet resources are consumed by useless garbage like spams, virus traffics, circular forwarded useless e-mails and many other stuff....&lt;br /&gt;&lt;br /&gt;Its administrator’s job to decrease internet traffic with using power of accelerators, caches, antispams and software’s like that....&lt;br /&gt;&lt;br /&gt;Today I installed new web-cache server, the most famous one SQUID. About a year ago I installed one on OpenBSD with a Compaq proliat, but the server was not so powerful to handle all demands as fast as you can feel it. The company bought Two Compaq G3 servers, I installed one as corporate mail server using Qmail on FreeBSD, the last one that I was working on today, I used it as Network Gateway and Firewall, I'm sure it can handle all demands, so I'm not worry about that.&lt;br /&gt;&lt;br /&gt;The reason I'm writing this is to tell you some directions to make your own cache server, you can easily find more resources on the net which can help you to install SQUID and FreeBSD and I don't want to duplicate all of them. I just give you some useful directions.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold;"&gt;FreeBSD or OpenBSD?&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;I prefer to use OpenBSD because its very fast and minimized, and I believe its very secure, though FreeBSD is good and secure, both are very stable, I am using both of them when I work with OpenBSD I feel better, that’s the feeling....I don’t want to argument ;-) ...&lt;br /&gt;OpenBSD has its own pf firewall but on FreeBSD you have to use pf as a port and you may face with some difficulties but it works.&lt;br /&gt;The most important advantage of FreeBSD is that it can be installed on Smart Array, if you want to install you OS on a new generation servers which use Smart Array, Mirroring/RAID systems you have to forget about OpenBSD at least for these available versions.&lt;br /&gt;&lt;br /&gt;Try to get the latest STABLE version of your OS and check the MD5 checksum then install it once to and see if everything is normal then continue the procedure, the OS I recently used to install my SQUID was FreeBSD 5.2.1 Release version&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.freebsd.org/"&gt;http://www.freebsd.org/&lt;/a&gt; is official FreeBSD website and &lt;a href="http://www.openbsd.org/"&gt;http://www.openbsd.org/&lt;/a&gt; is for  OpenBSD.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold;"&gt;What else you need?&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;You need to get the pf port from &lt;a href="http://pf4freebsd.love2party.net/"&gt;http://pf4freebsd.love2party.net/&lt;/a&gt; but its easier to  install it through ports, you can follow my steps if you have your OS installed and connected to Internet:&lt;br /&gt;&lt;br /&gt;1. &lt;span style="font-family:courier new;"&gt;cd /usr/ports/security/pf &lt;/span&gt;&lt;br /&gt;2. &lt;span style="font-family:courier new;"&gt;make&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Then it will start downloading pf from &lt;a href="http://pf4freebsd.love2party.net/"&gt;http://pf4freebsd.love2party.net/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;3. &lt;span style="font-family:courier new;"&gt;make install&lt;/span&gt;&lt;br /&gt;4. &lt;span style="font-family:courier new;"&gt;cp /usr/local/etc/pf.conf.default /etc/pf.conf&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Finished, now have pf downloaded and installed, but your kernel is not capable of using pf, you need to rebuild and install a new kernel capable of using pf firewall, see here to find more information about compiling FreeBSD kernel. If you are not going to install a transparent webcache/proxy server you can easily jump over pf installation.&lt;br /&gt;&lt;br /&gt;You need to add these items in you kernel configuration file:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    device         bpf&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;    options        PFIL_HOOKS&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;    options        RANDOM_IP_ID&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;you don’t need to memorize these items because as soon as you install pf it will show you these items which must be enabled in your OS kernel, then it will ask you if you need to do all changes in you &lt;span style="font-weight: bold;"&gt;rc.conf&lt;/span&gt; files, I suggest you to have a copy of your &lt;span style="font-weight: bold;"&gt;rc.conf&lt;/span&gt; but I usually trust it, it doesn’t add too many lines to the &lt;span style="font-weight: bold;"&gt;rc.conf&lt;/span&gt; file, these items will be added to &lt;span style="font-weight: bold;"&gt;rc.conf&lt;/span&gt;:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    pf_enable="YES"&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;    pf_logd="YES"&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;    pf_conf="/etc/pf.conf"&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Installer might set &lt;span style="font-family:courier new;"&gt;pf_conf&lt;/span&gt; to different location, check &lt;span style="font-weight: bold;"&gt;rc.conf&lt;/span&gt;, and set the correct one, if you are following this document you should set it to &lt;span style="font-family:courier new;"&gt;"/etc/pf.conf"&lt;br /&gt;Then save the followinf shell script as &lt;span style="font-weight: bold;"&gt;/etc/rc.d/pf&lt;/span&gt; and make it executable and read-only:&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;    #!/bin/sh&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;    # PROVIDE: pf&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;    # REQUIRE: DAEMON&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;    # KEYWORD: FreeBSD&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;/usr/local/etc/rc.d/pf start&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;IF YOU HAVE BETTER SUGGESTION YOU WILL BE WELCOMED, SEND IT TO ME AND I WILL REPLACE IT WITH THIS SIMPLE SCRIPT.&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold;"&gt;Installing SQUID&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;Before installing the SQUID you just need to download its latest STABLE version from  &lt;a href="http://www.squid-cache.org/"&gt;http://www.squid-cache.org&lt;/a&gt; , you can find lots of useful documents at that website specially, Squid put its latest documentation in a well formatted RTF file you can get it from &lt;a href="http://squid-docs.sourceforge.net/latest/zip-files/book-rtf.zip"&gt;http://squid-docs.sourceforge.net/latest/zip-files/book-rtf.zip&lt;/a&gt; the version I used was &lt;span style="font-style: italic;"&gt;squid-2.5.STABLE6 .&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;When you get the tarball zipped version of it open it under &lt;span style="font-weight: bold;"&gt;/usr/local/src&lt;/span&gt; directory, follow these steps:&lt;br /&gt;&lt;br /&gt;1. &lt;span style="font-family:courier new;"&gt;mv squid-2.5.STABLE6.tar.gz   /usr/local/src&lt;/span&gt;&lt;br /&gt;2. &lt;span style="font-family:courier new;"&gt;cd /usr/local/src&lt;/span&gt;&lt;br /&gt;3. &lt;span style="font-family:courier new;"&gt;tar xvfz squid-2.5.STABLE6.tar.gz&lt;/span&gt;&lt;br /&gt;4. &lt;span style="font-family:courier new;"&gt;cd squid-2.5.STABLE6&lt;/span&gt;&lt;br /&gt;5. Run &lt;span style="font-family:courier new;"&gt;./configure --help&lt;/span&gt; to see configuration options, select options which suit your needs then use &lt;span style="font-family:courier new;"&gt;./configure&lt;/span&gt; to make your squid source ready for compile and installation&lt;br /&gt;6. &lt;span style="font-family:courier new;"&gt;make&lt;/span&gt;&lt;br /&gt;7. &lt;span style="font-family:courier new;"&gt;make install&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now you have your squid installed in &lt;span style="font-weight: bold;"&gt;/usr/local/squid&lt;/span&gt;, but if you use another installation directory using &lt;span style="font-weight: bold;"&gt;--PREFIX=[...Directory...]&lt;/span&gt; option , you should find it in that directory.&lt;br /&gt;&lt;br /&gt;OK! Installation is over, you just need some configuration to make you SQUID running.&lt;br /&gt;&lt;br /&gt;Decide! if you need to install transparent cache server or normal one, its easy to ask you users to use proxy by setting their browser but the beauty of your job is to make your users life easier installing SQUID as a transparent proxy needs more steps but your users get about 10% better internet speed.&lt;br /&gt;&lt;br /&gt;Then select a directory to lay out your webcache file system in that, it must be big enough to fit your cache needs, I usually use a separate partition mounted as &lt;span style="font-weight: bold;"&gt;/cache&lt;/span&gt;,  then give its ownership to &lt;span style="font-weight: bold;"&gt;nobody:nobody&lt;/span&gt;.&lt;br /&gt;Same access must be gained by &lt;span style="font-weight: bold;"&gt;/usr/local/squid/var/&lt;/span&gt; directory and its subdirectories&lt;span style="font-weight: bold;"&gt;.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold;"&gt;Configuring SQUID&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;Five magic words are used to setup your SQUID as a transparent webcache&lt;br /&gt;&lt;br /&gt;1. &lt;span style="font-family:courier new;"&gt;http_port=3128&lt;/span&gt;&lt;br /&gt;2. &lt;span style="font-family:courier new;"&gt;http_accel_host=virtual&lt;/span&gt;&lt;br /&gt;3. &lt;span style="font-family:courier new;"&gt;http_accel_port=80&lt;/span&gt;&lt;br /&gt;4. &lt;span style="font-family:courier new;"&gt;http_accel_with_proxy=on&lt;/span&gt;&lt;br /&gt;5. &lt;span style="font-family:courier new;"&gt;http_accel_uses_host_header=on&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You should do these modifications in &lt;span style="font-weight: bold;"&gt;/usr/local/squid/etc/squid.conf&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;NOTE: Remember that your new installed SQUID will never give any access to HTTP requests, you need to find line access deny all and add these lines before that:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; &lt;/span&gt;&lt;span style="font-family:courier new;"&gt;# replace you network range below&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; acl myNetwork src 10.0.0.0/255.0.0.0&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt; access allow myNetwork&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;IMPORTANT: If you allow all ranges to have access to your proxy after a very short time you will see too much traffic on your network, there are lots of people who are looking for free open proxies to gain access to porn sites or even websites which they normally cannot access.&lt;br /&gt;&lt;br /&gt;Find &lt;span style="font-weight: bold;"&gt;cache_dir&lt;/span&gt; tag and set it like this:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;cache_dir ufs [cache dir you prepared] [cache size] 16 256&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You can change 16 and 256, you can find more useful information about these setting in &lt;span style="font-weight: bold;"&gt;squid.conf&lt;/span&gt; itself, these numbers are depended to you needs and server configuration.&lt;br /&gt;SQUID Configuration is finished, unless if you want to do some additional modifications on that.&lt;br /&gt;&lt;br /&gt;Now you need to create you cache file system structure use this:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    /usr/local/squid/sbin/squid -z&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Wait until it finishes the job, it may take several minutes keep you eyes on your hard drive if you don’t see any special activity on your HDD maybe you system is hung!&lt;br /&gt;If your installation is clean and good you shouldn’t face with a strange problem, your problem in installation might be because of three things&lt;br /&gt;&lt;br /&gt;1. Trying to install squid before making cache filesystem, &lt;span style="font-weight: bold;"&gt;squid -z&lt;/span&gt;&lt;br /&gt;2. Mistyping a setting in &lt;span style="font-weight: bold;"&gt;squid.conf&lt;/span&gt;&lt;br /&gt;3. Problem with cache or log directories, missing ownership/access assignment of  these directories to user nobody:nobody&lt;br /&gt;&lt;br /&gt;If you are sure about what you did, you might need to do some googleing to find more information.&lt;br /&gt;To do final check run squid from command line&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    /usr/local/squid/sbin/squid&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Then goto one of your clients on the network set its browser to use your cache server as proxy on port 3128&lt;span style="font-weight: bold;"&gt;, &lt;/span&gt;on the server you can use tail command to monitor &lt;span style="font-weight: bold;"&gt;access.log&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    tail -f /usr/local/squid/var/logs/access.log&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If you followed steps from the begining, your server should work properlyIs everything OK?&lt;br /&gt;If yes, now we are about to run it during system startup, save the following shell script as &lt;span style="font-weight: bold;"&gt;/etc/rc.d/&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;squid&lt;/span&gt; :&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    #!/bin/sh&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;    # PROVIDE: squid&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;    # REQUIRE: DAEMON&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;    # KEYWORD: FreeBSD&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;    . /etc/rc.subr&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;    name=squid&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;    rcvar=`set_rcvar`&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;    command="/usr/local/squid/sbin/${name}"&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;    pidfile="/usr/local/squid/var/logs/${name}.pid"&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    load_rc_config $name&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;    run_rc_command "$1"&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Make it executable and read only!&lt;br /&gt;Then add this line in &lt;span style="font-weight: bold;"&gt;rc.conf&lt;/span&gt;:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;    squid_enable="YES"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Okay! Have fun, restart your server and see what is happening!&lt;br /&gt;Without login you client, the one you set it before, should be able to browse the net.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold;"&gt;Make it transparent&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;Step one is to setup your server as a gateway, use sysinstall bring up Gateway feature during startup; see FreeBSD e-Book to find more.&lt;br /&gt;Step two is to add this line in &lt;span style="font-weight: bold;"&gt;/etc/pf.conf&lt;/span&gt; :&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;rdr on &lt;span style="font-style: italic; font-weight: bold;"&gt;bge0&lt;/span&gt; proto tcp from any to any port 80 -&gt; 127.0.0.1 port 3128 &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;NOTE: You can substitute your functional LAN adaptor name instead of &lt;span style="font-weight: bold; font-style: italic;"&gt;bge0&lt;/span&gt; in this example&lt;br /&gt;NOTE: If you have other settings in &lt;span style="font-weight: bold;"&gt;pf.conf&lt;/span&gt; it’s important to insert the line in its correct place.&lt;br /&gt;&lt;br /&gt;Now, restart your server. Then go to your client and set its gateways address to your new server and remove those proxy settings from its browser. Use traceroute to make sure if it can route correctly, then browse the net. If you monitor &lt;span style="font-weight: bold;"&gt;/usr/local/squid/var/logs/access.log&lt;/span&gt; using tail command you can see logs rolling when you browse the net. Be sure that your browser is not using previous proxy setting.&lt;br /&gt;If everything looks normal on your client, try to use all internet services to be sure about it, and then you can use your server as gateway.&lt;br /&gt;&lt;br /&gt;This document does not cover all issues but at least you can experience installing your own webcache server. I hope this could be help for people who are looking for shortcuts.&lt;br /&gt;&lt;br /&gt;</content><link rel='alternate' type='text/html' href='http://www.sarbanha.com/recentAct/2004/09/squid-cache-installation.php' title='SQUID CACHE INSTALLATION'/><link rel='replies' type='application/atom+xml' href='http://www.sarbanha.com/recentAct' title='Post Comments'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8037929/posts/default/109453483552767491'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8037929/posts/default/109453483552767491'/><author><name>Mohammad Ali</name><uri>http://www.blogger.com/profile/00318854002221474770</uri><email>noreply@blogger.com</email></author></entry></feed>