<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Knopix's Weblog</title>
	<atom:link href="http://knopix.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://knopix.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Tue, 12 Feb 2008 02:52:13 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='knopix.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/704b26633d7f968e98c1d87e03c22fea?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Knopix's Weblog</title>
		<link>http://knopix.wordpress.com</link>
	</image>
			<item>
		<title>Bandwith Manajemen dengan SQUID &#8211; Delay POOLS</title>
		<link>http://knopix.wordpress.com/2008/02/12/bandwith-manajemen-dengan-squid-delay-pools/</link>
		<comments>http://knopix.wordpress.com/2008/02/12/bandwith-manajemen-dengan-squid-delay-pools/#comments</comments>
		<pubDate>Tue, 12 Feb 2008 02:52:13 +0000</pubDate>
		<dc:creator>knopix</dc:creator>
				<category><![CDATA[Komputer]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://knopix.wordpress.com/2008/02/12/bandwith-manajemen-dengan-squid-delay-pools/</guid>
		<description><![CDATA[


 [LINUX] Bandwith Manajemen dengan SQUID &#8211;   Delay POOLS
diposting pada 10:44:47, 2007-07-22 

   
SQUID   &#8211; Delay POOLS
Latar Belakang
Bandwidth merupakan barang yang mahal. Untuk saat ini kisaran 64 kps dihargai   sekitar 4 jt perbulan. Permasalahnnya bandwith 64 kbits itu bukan nilai yang   besar. Rata-rata yang didapat pelanggan [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=knopix.wordpress.com&blog=2225514&post=12&subd=knopix&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><table class="MsoNormalTable" style="width:100%;" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td style="padding:1.5pt;">
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><b><span style="font-size:12pt;font-family:'Agency FB','sans-serif';"><span> </span>[LINUX] Bandwith Manajemen dengan SQUID &#8211;   Delay POOLS</span></b><span style="font-size:12pt;font-family:'Agency FB','sans-serif';"></p>
<p>diposting pada<span style="color:red;"> 10:44:47, 2007-07-22</span> </span></p>
<div class="MsoNormal" style="margin-bottom:0.0001pt;text-align:center;line-height:normal;" align="center"><span style="font-size:12pt;font-family:'Agency FB','sans-serif';"><br />
<hr align="center" noshade="noshade" size="2" width="100%" />   </span></div>
<p class="MsoNormal" style="line-height:normal;"><span style="font-size:12pt;font-family:'Agency FB','sans-serif';">SQUID   &#8211; Delay POOLS<br />
Latar Belakang<br />
Bandwidth merupakan barang yang mahal. Untuk saat ini kisaran 64 kps dihargai   sekitar 4 jt perbulan. Permasalahnnya bandwith 64 kbits itu bukan nilai yang   besar. Rata-rata yang didapat pelanggan adalah 64 1:2. Artinya 1 jalur 64   kbits digunakan untuk 2 pelanggan sekaligus.<br />
Sudah bandwidthnya dibatasi terkadang pula disisi user ada yang bertingkah   seenaknya. Merasa ada koneksi internet gratis, beberapa user mulai   menggunakannya untuk membuka situs-situs tertentu atau mengkoleksi file-file   tertentu. Tentu saja alokasi bandwidth yang tersedia semakin menyusut. Yang   merasakan adalah golongan user yang biasa-biasa saja (bukan mania internet),   mereka hanya bisa mengelus dada.</p>
<p>Untuk mengatasi hal diatas, agar setiap user mendapat bandwidth yang cukup,   bisa digunakan aplikasi squid proxy server.<br />
Pelaksanaan<br />
Sebelum mulai mengkonfigurasi delay pools, harus dipersiapkan terlebih dahulu   aplikasi squid yang sudah dikompilasi dengn support delay pools. Beberapa   distro besar seperti RedHat/Mandrake biasanya sudah di atur support delay   pools.<br />
Bila tidak dapat dikompilasi sendiri sebagai berikut<br />
</span><span id="more-12"></span><br />
<span style="font-size:12pt;font-family:'Agency FB','sans-serif';">   # ./configure &#8211;enable-delay-pools<br />
# make<br />
# make install</p>
<p>konfigurasi<br />
File konfigurasi squid adalah squid.conf<br />
ada beberapa tag konfigurasi untuk delay pools di squid.conf.</p>
<p>1. delay_pools<br />
menyatakan berapa banyak bagian/pool yang akan dibuat<br />
misal delay_pools 2</p>
<p>2. delay_class<br />
menentukan klas/tipe pembagian bandwith dari setiap pool. 1 pool hanya boleh   memiliki 1 clas, tidak lebih atau kurang.<br />
bagian merupakan nomer urut dari jumlah pool didelay pool, jadi ada 1 s/d n   bagian dimana n merupakan angka jumlah pada delay_pools<br />
tipe merupakan tipe class delay yang dipakai.<br />
Secara umum tipe menyatakan bagaimana cara membagi bandwidth, ada 3 tipe:</p>
<p>tipe/class keterangan<br />
1 semua bandwidth yang ada akan dibagi sama rata untuk semua user squid</p>
<p>ex ada bandwidth 128 dan semua bandwith dipakai untuk browsing<br />
2 membatasi pemakaian bandwith dari total bandwidth yang ada, dan bandwith   yang diperuntukan squid akan dibagi semua user dengan sama rata.</p>
<p>ex ada bandwidth 128 dimana 28 kbit dipakai untuk email dan sisanya (128-28)   100 kbit dipakai untuk browsing<br />
3 membatasi pemakaian bandwidth dari total bandwidth yang ada, setiap network   class C akan mendapat bandwidth sama besar, setiap user pernetwork akan   mendapat bandwidth yang sama besar dari total bandwidth per network</p>
<p>ex: bandwidth tersedia 512 kb, untuk browsing disediakan bandwidth 384 kb,   sisanya untuk aktifitas lain.<br />
Di jaringan tersebut ada 3 departement dengan network yang berbeda misal lab   (192.168.1.0/24), manajer(192.168.2.0/24), sales(192.168.3.0/24).<br />
nah misah oleh admin di set bahwa pernetwork mendapat jatah 128 kb/s.<br />
maka user? di sales akan mendapat pembagian bandwidth sama besar dari total   128 kb/s.<br />
maka user? di lab akan mendapat pembagian bandwidth sama besar dari total 128   kb/s.<br />
maka user? di manajer akan mendapat pembagian bandwidth sama besar dari total   128 kb/s.</p>
<p>misal:</p>
<p>delay_class 1 2 # pool 1 memakai clas tipe 2<br />
delay_class 2 3 # pool 2 memakai clas tipe 3</p>
<p>3.delay_access<br />
Memberi batasan siapa saja yang boleh mempergunakan delay pools ini.<br />
Penting untuk diingat sebaiknya setelah menetukan batasan jangan lupa di   akhiri dengan deny all.<br />
misal:</p>
<p>delay_access 1 allow manajer<br />
delay_access 1 deny all<br />
delay_access 2 allow sales<br />
delay_access 2 deny all</p>
<p>4. delay_parameters<br />
Ini adalah bagian terpenting dari delay pools memberikan aturan main setiap   delay pools yang dibentuk.<br />
delay parameter mempunyai format yang disesuaikan dengan tipe/class yang   dipakai.<br />
Tapi disetiap tipe yang dipakai ada 1 format baku yaitu restore/max.</p>
<p>restore menunjukkan maksimum kecepatan data yang dapat dilewatkan bila harga   max sudah terlampaui, dalam satuan bytes/second</p>
<p>max menunjukkan besar-nya file atau bucket yang dapat dilewatkan tanpa   melalui proses delay. dalam satuan bytes.<br />
Yang perlu diperhatikan dari satuan diatas adalah harga restore dimana kita   sering menerima/menyewa/membeli bandwidth dari provider dalam satuan   bits/second bukan bytes/second. Sedangkan satuan kecepatan yang ditunjukkan   oleh Microsoft pada saat mendonlot file adalah bytes/sec.<br />
Sedangkan satuan dari harga max sudah sesuai dengan kebiasaan sehari-hari,   dimana kita memberi besaran bytes pada file-file.<br />
1 byte = 8 bit.</p>
<p>SpesialCase: -1/-1 berarti unlimited atau tidak dibatasi pada nilai   restore/max</p>
<p>ex: 1000/64000 harga restore sama dengan 8000 bits/sec atau 8 kbits/sec.<br />
Yang artinya user akan mendapat donlot brustable selama file yang akan dibuka   lebih kecil dari 64 kbytes, jadi kecepatan bisa diatas 8 kbit/sec.<br />
Bila ternyata file yang dibuka melebihi 64 bytes, maka proses limitasi akan   segera dimulai dengan membatasi kecepatan maksimal 8 kbits/s.</p>
<p>class 1<br />
delay_parameters &lt;#pool individual&gt;<br />
ex: delay_parameters 1 1000/64000<br />
Berarti semua network akan mendapat bandwidth yang sama di pool no 1.<br />
Sebesar 1 kbytes/sec (8 kbits/sec), dengan burstable file 64 kb.<br />
class 2<br />
delay_parameters &lt;#pool agregate individual&gt;<br />
ex: delay_parameters 1 32000/32000 1000/64000<br />
Berarti squid akan memakai bandwidth maksimum (32000*8) 256kbits dari semua   bandwidth.<br />
Bila terdapat lebih dari 1 network class C, maka total yang dihabiskan tetap   256 kbit/sec<br />
dan tiap user akan mendapat bandwidth maksimum 1 kbytes/sec (8 kbits/sec),   dengan burstable file 64 kb.<br />
class 3<br />
delay_parameters &lt;#pool agregate network individual&gt;<br />
ex: delay_parameters 1 32000/32000 8000/8000 1000/64000<br />
Berarti squid akan memakai bandwidth maksimum (32000*8) 256kbits dari semua   bandwidth.<br />
Bila terdapat lebih dari 1 network class C, maka setiap network akan dipaksa   maksimum sebesar (8000*8) 64 kbits/sec<br />
dan tiap user pada satu network akan mendapat bandwidth maksimum 1 kbytes/sec   (8 kbits/sec), dengan burstable file 64 kb.</p>
<p>Contoh<br />
dalam 1 network dengan penggunaan bandwidth total tidak dibatasi terdapat   beberapa komputer dengan klasifikasi sebagai berikut</p>
<p>* admin, server dengan bandwidth unlimited<br />
* staff dengan bandwidth 1,5 kbytes/sec, bila file yang diakses melebihi   64Kbte<br />
* umum dengan bandwidth 1 kbytes/sec, bila file yang diakses melebihi 32   Kbyte</p>
<p>acl all src 0.0.0.0/0.0.0.0<br />
acl admin src 192.168.1.250/255.255.255.255<br />
acl server src 192.168.1.251/255.255.255.255<br />
acl kantor src 192.168.1.0/255.255.255.0<br />
acl staff src 192.168.1.1 192.168.1.111 192.168.1.2 192.168.1.4 192.168.1.71</p>
<p>delay_pools 3</p>
<p>delay_class 1 1<br />
delay_parameters 1 -1/-1<br />
delay_access 1 allow admin<br />
delay_access 1 allow server<br />
delay_access 1 deny all</p>
<p>delay_class 2 1<br />
delay_parameters 2 1500/64000<br />
delay_access 2 allow staf<br />
delay_access 2 deny all</p>
<p>delay_class 3 1<br />
delay_parameters 3 1000/32000<br />
delay_access 3 allow umum<br />
delay_access 3 deny all</p>
<p>Cara mencobanya paling mudah adalah dengan menggunakan donlot manajer semacam   DAP?, GetRight? maka akan terlihat bandwidth sudah dibatasi.<br />
Special case</p>
<p>Delay pools juga dapat digunakan untuk membatasi donlot file untuk extensi tertentu.<br />
Gunakan ACL url_regex untuk mengatasi hal ini.<br />
Contoh dibawah digunakan untuk membatasi donlot file multimedia hingga 1   kByte/sec.</p>
<p>acl multimedia url_regex -i \.mp3$ \.rm$ \.mpg$ \.mpeg$ \.avi$ \.dat$<br />
delay_pools 1<br />
delay_class 1 1<br />
delay_parameters 1 1000/16000<br />
delay_access 1 allow multimedia<br />
delay_access 1 deny ALL</span></td>
</tr>
</table>
<p class="MsoNormal"><span style="font-family:'Agency FB','sans-serif';"> </span></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/knopix.wordpress.com/12/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/knopix.wordpress.com/12/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/knopix.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/knopix.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/knopix.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/knopix.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/knopix.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/knopix.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/knopix.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/knopix.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/knopix.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/knopix.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=knopix.wordpress.com&blog=2225514&post=12&subd=knopix&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://knopix.wordpress.com/2008/02/12/bandwith-manajemen-dengan-squid-delay-pools/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/72423876de373045bd3b9f6d1ce2a9ab?s=96&#38;d=identicon" medium="image">
			<media:title type="html">knopix</media:title>
		</media:content>
	</item>
		<item>
		<title>Postfixadmin / MySQL / Courier / Squirrelmail on Debian Etch (Howto/Tutorial)</title>
		<link>http://knopix.wordpress.com/2008/01/16/postfixadmin-postgresql-courier-squirrelmail-on-debian-etch-howtotutorial/</link>
		<comments>http://knopix.wordpress.com/2008/01/16/postfixadmin-postgresql-courier-squirrelmail-on-debian-etch-howtotutorial/#comments</comments>
		<pubDate>Wed, 16 Jan 2008 09:17:08 +0000</pubDate>
		<dc:creator>knopix</dc:creator>
				<category><![CDATA[Komputer]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://knopix.wordpress.com/2008/01/16/postfixadmin-postgresql-courier-squirrelmail-on-debian-etch-howtotutorial/</guid>
		<description><![CDATA[Source from David Goodwin
Install Debian
No surprise there&#8230; I installed Etch via netboot, and ended up with a fairly minimal setup. You&#8217;ll probably do it a different way. I told it to install as a &#8216;mail server&#8217; and a &#8216;web server&#8217;. The &#8216;mail server&#8217; option was probably a mistake as it installs uw-imapd and exim, neither [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=knopix.wordpress.com&blog=2225514&post=11&subd=knopix&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><h2>Source from David Goodwin</h2>
<h2>Install Debian</h2>
<p>No surprise there&#8230; I installed Etch via netboot, and ended up with a fairly minimal setup. You&#8217;ll probably do it a different way. I told it to install as a &#8216;mail server&#8217; and a &#8216;web server&#8217;. The &#8216;mail server&#8217; option was probably a mistake as it installs uw-imapd and exim, neither of which I wanted/needed.</p>
<p>You probably want to install <b>openssh-server</b> and <b>molly-guard</b> <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h2>Postfix</h2>
<pre>apt-get install postfix postfix-mysql</pre>
<p>(Or postfix-mysql if you&#8217;re going to use that instead)</p>
<p>I selected the <b>Internet Site</b> configuration when asked to pick a configuration.</p>
<h2>/etc/apt/sources.list</h2>
<p>In order to have slightly more recent versions of a few packages (PHP5, ClamAV and PostgreSQL mainly), I added the following into my /etc/apt/sources.list file :</p>
<pre>deb http://packages.dotdeb.org stable all deb http://www.mirrorservice.org/sites/backports.org/ etch-backports main contrib non-free</pre>
<h2>Install MySQL</h2>
<pre>apt-get install mysql-server</pre>
<p>(Note: there is no requirement on using v8.2, but I&#8217;m under the impression that it&#8217;s faster than previous versions). I&#8217;d suggest you use at least v8.1 (in Etch) from a maintenance point of view.</p>
<p><span id="more-11"></span></p>
<h2>Install PHP5</h2>
<p>I always install the <a href="http://www.hardened-php.net/suhosin/index.html">suhosin</a> extension to PHP in the hope it will provide extra security. <a href="http://pecl.php.net/apc">APC</a> (Alternative PHP Cache) is also installed in the expectation it will improve performance.</p>
<pre>apt-get install php5 libapache2-mod-php5 php5-mysql php5-suhosin php5-apc php-pear</pre>
<p>(The above packages nearly all come from <a href="http://dotdeb.org/">dotdeb.org</a>)</p>
<h2>Install Postfixadmin</h2>
<p>Although I have created .deb for Postfixadmin; at the time of writing, v2.2.0 hadn&#8217;t been released; so I installed Postfixadmin from SVN. Hopefully by Jan 2008, version 2.2.0 of Postfixadmin will have been released, and you will want to see <a href="http://sourceforge.net/project/showfiles.php?group_id=191583">this page</a> to download it.</p>
<pre>cd /var/www svn co https://postfixadmin.svn.sourceforge.net/svnroot/postfixadmin/trunk postfixadmin</pre>
<p>If you now hit http://your.server/postfixadmin you should see a slightly useful &#8216;welcome&#8217; screen, follow the link through to the &#8217;setup.php&#8217; page. And you should get some sort of instant gratification that at least something works <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h2>Setting up PostgreSQL (or MySQL)</h2>
<p>As postfixadmin stores all of it&#8217;s configuration within a database, we need to setup the database before we can do much further. You may find that <a href="http://phppgadmin.sf.net/">phppgadmin</a> or <a href="http://www.phpmyadmin.net/">phpmyadmin</a> help with this.</p>
<p>Basically &#8211; create a user (e.g. &#8216;postfix&#8217;) and a database (e.g. &#8216;postfix&#8217;). The user should own the database. Ensure there&#8217;s a password set on the user.</p>
<p>If security is a concern, you should probably have a user that is &#8216;read-only&#8217; which is used by postfix (as it only ever queries the DB) while postfixadmin will need a read-write user account.</p>
<p>If you&#8217;re using PostgreSQL, the following shows what I typed in from a shell (all lines containing a $ or #)on the server</p>
<pre>mail:~# su - postgres postgres@mail:~$ psql template1 Welcome to psql 8.2.4, the PostgreSQL interactive terminal.  Type:  \copyright for distribution terms        \h for help with SQL commands        \? for help with psql commands        \g or terminate with semicolon to execute query        \q to quit  template1=# CREATE USER postfix WITH PASSWORD 'complexpassword'; CREATE ROLE template1=# CREATE DATABASE postfix WITH OWNER postfix ENCODING 'UNICODE'; CREATE DATABASE template1=# \q</pre>
<p>If, like me, you are useless at picking passwords, try using <b>pwgen</b></p>
<h2>Load the Postfixadmin Database Schema into your database</h2>
<p>Currently this is still a manual step, but it should (eventually) be handled by the setup.php script.</p>
<pre>cd /var/www/postfixadmin psql -U postfix -h localhost postfix &lt; DATABASE_MYSQL.TXT</pre>
<p>This may spew out a few errors about roles that don&#8217;t exist, but it should work</p>
<h2>Configuration of Postfixadmin</h2>
<p>Edit <b>/var/www/postfixadmin/config.inc.php</b> in your favourite editor (vi[m]).</p>
<ol>
<li>Change
<pre>$CONF['configured'] = false;</pre>
<p>to</p>
<pre>$CONF['configured'] = true;</pre>
</li>
<li>Change
<pre>$CONF['postfix_admin_url'] = '';</pre>
<p>to</p>
<pre>$CONF['postfix_admin_url'] = 'http://your.server/postfixadmin';</pre>
</li>
<li>Change
<pre>$CONF['database_type'] = 'mysql';</pre>
</li>
<li>Change the other database parameters to match what you used above.</li>
</ol>
<p>You&#8217;ll want to change other parameters, but they&#8217;re not normally essential</p>
<h2>Postfixadmin</h2>
<p>Once your <em>config.inc.php</em> file has the right database credentials, and you refresh <em>http://your.server/postfixadmin/setup.php</em> you should a dialog box to <b>Create superadmin account</b>. You should treat these details a bit like the &#8216;root&#8217; password for a Unix server. This user will be able to add/remove/edit any domains/users/aliases etc.</p>
<p>Anyway, choose an admin account, this could be (for example) <b>it@your.domain</b></p>
<p>Submitting this form, successfully, should result in the page giving you a message like &#8216;<b>Admin has been added!</b>&#8216;</p>
<p><b>Delete setup.php</b></p>
<h2>Configuring Postfix</h2>
<p>This always seems to be the bit that causes others trouble&#8230;.</p>
<h3>New configuration files</h3>
<p>In my world, the following go in <b>/etc/postfix/mysql</b></p>
<h4>relay-domains.cf</h4>
<p>(Who we relay mail for (as a backup mx))</p>
<pre>user            = postfix password        = xxxxxxx dbname          = postfix hosts           = localhost query = SELECT domain FROM domain WHERE domain = '%s' AND backupmx = true</pre>
<h4>virtual-alias-maps.cf</h4>
<p>(Think: /etc/aliases or similar)</p>
<pre>user             = postfix password         = xxxxxxxx dbname           = postfix hosts            = localhost query = SELECT goto FROM alias WHERE address='%s' AND active = true</pre>
<h4>virtual-domains.cf</h4>
<p>(Domains we accept mail for&#8230;)</p>
<pre>user        = postfix password    = xxxxxxxx dbname      = postfix hosts       = localhost query = SELECT domain FROM domain WHERE domain='%s' AND backupmx = false AND active = true</pre>
<h4>virtual-mailbox-limit-maps.cf</h4>
<p>(Only used if you&#8217;re checking quota etc)</p>
<pre>user = postfix password = xxxxxxx hosts = localhost dbname = postfix query = SELECT quota FROM mailbox WHERE username = '%s'</pre>
<h4>virtual-mailbox-maps.cf</h4>
<p>(What mailboxes exist that we can deliver to)</p>
<pre>user      = postfix password  = xxxxxxxx dbname    = postfix hosts     = localhost query = SELECT maildir FROM mailbox WHERE username='%s' AND active = true</pre>
<h3>main.cf changes</h3>
<p>Add in the following :</p>
<pre># All virtual mailboxes live somewhere in here .. virtual_mailbox_base = /var/mail/vmail  # The (virtual) domains we accept mail for virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql/virtual-domains.cf  # Lookup mailbox location, uid and gid based on email address received. virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql/virtual-mailbox-maps.cf virtual_uid_maps = static:101 virtual_gid_maps = static:101  virtual_alias_maps = proxy:mysql:/etc/postfix/mysql/virtual-alias-maps.cf  relay_domains = proxy:mysql:/etc/postfix/mysql/relay-domains.cf local_transport = virtual local_recipient_maps = $virtual_mailbox_maps</pre>
<p><b>#adduser -m vmail -g mail <br />
#id vmail ;result 101<br />
</b><b>#chown vmail:mail /var/mail/vmail </b></p>
<h2>Postfix SMTP Auth Support</h2>
<p>If your users are likely to be trying to send mail through your mail server when they are not on a trusted network, you&#8217;ll need to add this to <b>/etc/postfix/main.cf</b></p>
<pre>smtpd_sasl_authenticated_header = yes smtpd_sasl_auth_enable = yes smtpd_sasl_security_options = noanonymous broken_sasl_auth_clients = yes</pre>
<p>And in <b>/etc/postfix/sasl/smtpd.conf</b> put the following :</p>
<pre>pwcheck_method: saslauthd  saslauthd_path: /var/run/saslauthd/mux log_level: 3 mech_list: PLAIN LOGIN</pre>
<p>(As you can see, we&#8217;ll be using SASL as a backend for authentication)</p>
<h2>SASL</h2>
<p>Thankfully the SASL package works a bit better under Etch than it did under Sarge/etc.</p>
<pre>apt-get install sasl2-bin</pre>
<p>Edit <code>/etc/default/saslauthd</code> so it has :</p>
<pre>MECHANISMS="rimap" THREADS=5 OPTIONS="-r -c -O localhost -m /var/spool/postfix/var/run/saslauthd"</pre>
<p>You&#8217;ll need to <b><code>mkdir -p /var/spool/postfix/var/run/saslauthd</code></b> before SASL will start</p>
<p>(One day, I might change to use the pam_sql module; as this would remove unnecessary IMAP logins&#8230; )</p>
<h2>Courier</h2>
<pre>apt-get install courier-authdaemon courier-imap courier-imap-ssl courier-pop courier-pop-ssl courier-authlib-postgresql</pre>
<h3>Configuring Courier&#8217;s authdaemon</h3>
<p>You&#8217;ll need to edit /etc/courier/authmyqlrc</p>
<pre><font size="3" face="Georgia">MYSQL_SERVER            localhost
MYSQL_USERNAME          postfix
MYSQL_PASSWORD          knopix2006
MYSQL_PORT              3306
MYSQL_DATABASE          postfix
MYSQL_USER_TABLE        mailbox
MYSQL_CLEAR_PWFIELD     password
MYSQL_UID_FIELD         '101' #vmail id
MYSQL_GID_FIELD         '8' #mail id
MYSQL_LOGIN_FIELD       username
MYSQL_HOME_FIELD        '/home/vmail'
MYSQL_NAME_FIELD        name
MYSQL_MAILDIR_FIELD     maildir
MYSQL_QUOTA_FIELD       quota
</font></pre>
<p>And also edit <b>/etc/courier/authdaemonrc</b>, and set <b>authmodulelist=&#8221;authmysql&#8221;</b></p>
<p>If you now create a user in a test domain on postfixadmin, you should be able to connect to your mail server successfully, and receive mail</p>
<h2>Basic Testing (pop3)</h2>
<p>Assuming you&#8217;ve created a domain, and a user within that domain from Postfixadmin, you should be able to do something like the following :</p>
<pre>mail:~# tail -f /var/log/mail.log  &amp; mail:~# echo 'test email' | mail crap@burton-mccall.co.uk mail:~#  Dec  6 22:31:56 mail postfix/pickup[11888]: A811A2B10063: uid=0 from= Dec  6 22:31:56 mail postfix/cleanup[11897]: A811A2B10063: message-id= Dec  6 22:31:56 mail postfix/qmgr[11889]: A811A2B10063: from=, size=297, nrcpt=1 (queue active) Dec  6 22:31:56 mail postfix/virtual[11902]: A811A2B10063: to=, relay=virtual, delay=0.11, delays=0.05/0.04/0/0.02, dsn=2.0.0, status=sent (delivered to maildir) Dec  6 22:31:56 mail postfix/qmgr[11889]: A811A2B10063: removed</pre>
<p>Additionally, if you now look in /home/vmail, you should see a folder called &#8216;test@my.domain&#8217;. No guesses should be needed to figure out what this contains!</p>
<h2>Squirrelmail</h2>
<p>Squirrelmail is a mature web based mail client. It&#8217;s been around for some time now, and thankfully plugins exist for a number of additional &#8220;features&#8221;. As your author patched up the <a href="http://squirrelmail-postfixadmin.palepurple.co.uk/">squirrelmail postfixadmin plugin</a>, he&#8217;s going to take a small amount of time it.</p>
<ul>
<li>
<pre>apt-get install squirrelmail</pre>
</li>
<li>
<pre>wget http://squirrelmail-postfixadmin.palepurple.co.uk/files/squirrelmail-postfixadmin_2.1.0-1_all.deb</pre>
</li>
<li>
<pre>dpkg -i squirrelmail-postfixadmin_2.1.0-1_all.deb</pre>
</li>
<li>Edit /etc/squirrelmail/plugins/postfixadmin-config.php &#8211; use the same settings from Postfixadmin</li>
<li>pear install MDB2</li>
<li>pear install MDB2#pgsql (or MDB2#mysql)</li>
<li>Run squirrelmail-configure and enable the Postfixadmin plugin</li>
</ul>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/knopix.wordpress.com/11/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/knopix.wordpress.com/11/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/knopix.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/knopix.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/knopix.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/knopix.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/knopix.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/knopix.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/knopix.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/knopix.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/knopix.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/knopix.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=knopix.wordpress.com&blog=2225514&post=11&subd=knopix&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://knopix.wordpress.com/2008/01/16/postfixadmin-postgresql-courier-squirrelmail-on-debian-etch-howtotutorial/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/72423876de373045bd3b9f6d1ce2a9ab?s=96&#38;d=identicon" medium="image">
			<media:title type="html">knopix</media:title>
		</media:content>
	</item>
		<item>
		<title>Wireless Networking in Windows 2003</title>
		<link>http://knopix.wordpress.com/2008/01/08/wireless-networking-in-windows-2003/</link>
		<comments>http://knopix.wordpress.com/2008/01/08/wireless-networking-in-windows-2003/#comments</comments>
		<pubDate>Tue, 08 Jan 2008 06:34:04 +0000</pubDate>
		<dc:creator>knopix</dc:creator>
				<category><![CDATA[Microsoft]]></category>

		<guid isPermaLink="false">http://knopix.wordpress.com/2008/01/08/wireless-networking-in-windows-2003/</guid>
		<description><![CDATA[
 

In Part 2 of my Introduction to Wireless Networking series I  briefly touched on the subject of IAS in Windows 2003. Here we will look at the  Internet Authentication Service in a bit more detail and also see what Windows  2003, and SP1, have to offer when it comes to Wireless [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=knopix.wordpress.com&blog=2225514&post=10&subd=knopix&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><div>
<div class="am-widget"> <!-- AddThis Bookmark Button END --></div>
</div>
<div>In Part 2 of my Introduction to Wireless Networking series I  briefly touched on the subject of IAS in Windows 2003. Here we will look at the  Internet Authentication Service in a bit more detail and also see what Windows  2003, and SP1, have to offer when it comes to Wireless Networking. I’ll also  show you how to setup 802.1X based security in Windows 2003.</div>
<div class="text-block">
<h2>Service Pack 1</h2>
<p align="center"><b>Enhancements for Wireless Networking</b></p>
<p>The enhancements that SP1 provide for Wireless LANS are of great benefit to  enterprise wide networks. Without SP1 on Windows Server 2003, the WPA security  method isn’t supported and therefore cannot be implemented – which is no longer  an issue with Service Pack 1. Apart from addressing the weaknesses that the  original Windows Server 2003 has, SP1 makes it easier to deploy secure large  scale wireless LANS. Additionally, administrators are now able to give the users  of wireless clients &#8211; with Windows XP SP2 &#8211; a choice of pre-approved digital  certificates and signing authorities. This means they would only be allowed to  install certificates for the network that the administrator has previously  acknowledged, making them less prone to man in the middle attacks.</p>
<p><b>Centralized Management</b></p>
<p>The Active Directory Group Policy console allows for centralized management  of the Wireless Zero Configuration client which makes it easier and faster to  connect wireless client to a secure network. WPA TKIP and AES encryption  settings can now be configured and any wireless client with Windows XP Service  Pack 2, or Service Pack 1 and the WPA patch, can be centrally configured to use  the more secure WPA TKIP or AES methods to connect to the wireless LAN.</p>
<p><b>Wireless Setup Wizard</b></p>
<p>As did Windows XP SP2, Windows 2003 SP1 comes with a Wireless Network Wizard  that will help you to configure secure wireless networks. Configuration settings  can be stored on removable media (such as a USB pen drive) and then copied over  to other machines.</p>
<p><b>PEAP Authentication Scheme</b></p>
<p>The LEAP (Lightweight Extensible Authentication Protocol) is a popular  non-TLS (Transport Layer Security) authentication scheme introduced by Cisco in  later versions of their firmware belonging to the Aironet access point product  range. This protocol lacks point to point protection which leaves it open to  dictionary attacks at the credentials authentication stage. With the  inauguration of PEAP (Protected Extensible Authentication Protocol)  authentication in the IAS (Internet Authentication Service) component of Windows  Server 2003, these weaknesses are addressed. Furthermore, a server-side digital  certificate is able to support many clients single handedly – without the use of  an installed certificate on the client-side.</p>
<p><span id="more-10"></span></p>
<p><b>Wireless Provisioning Services</b></p>
<p>This new technology makes it easier for mobile workers to connect to hotspots  or corporate LANS by eliminating the need for manual configuration of the  network connection. Enterprises can better manage guest access on their network  and provide payment plans such as pay-per-use or monthly Internet access to  customers.</p>
<h2>Securing Wireless in Windows 2003</h2>
<p>When configured incorrectly, wireless connections are probably one of the  most vulnerable points of a network. A simple password based authentication  method is not enough, especially over a wireless connection. By means of the  Internet Authentication Service in Windows 2003, Administrators are able to  setup 802.1X based secure network.</p>
<p>In order to take advantage of the 802.1X in Windows 2003, you will require  the use of the following services:</p>
<ul>
<li>DHCP and DNS</li>
<li>Active Directory Service</li>
<li>RADIUS Server (Internet Authentication Service)</li>
<li>Certificate based infrastructure (referred to as PKI – Public Key  Infrastructure)</li>
</ul>
<p>I will cover the following steps and show you how to setup an 802.1X based  security structure using the Internet Authentication Service in Windows  2003.</p>
<ul>
<li>Configuring your access point</li>
<li>Windows 2003 Certification Authority</li>
<li>Windows 2003 Active Directory Service Configuration</li>
<li>Windows 2003 IAS Configuration</li>
</ul>
<h2>Configuring your access point</h2>
<p>Your Access Points must support 802.1X and WEP authentication. If it doesn’t  then check for a firmware upgrade before you proceed. 802.1X and RADIUS provide  automatic generation of session keys so they will not have to be entered  manually into the Access Point. However, some access points do support manual  inputting of keys for simulation (testing) purposes.</p>
<p>Firstly, from your access point configuration web interface, you must set  which machines act as RADIUS servers on your network. There may be slight  variations but the idea is the same &#8211; go to the RADIUS servers list from either  the ‘Wireless Security’ or ‘Wireless Settings’ panel and add the IP address,  port number and shared secret for your RADIUS server connection.</p>
<blockquote><p><img src="http://www.windowsnetworking.com/img/upl/image0011118309599244.jpg" align="bottom" border="0" hspace="0" /></p></blockquote>
<p>Secondly, from the ‘Wireless Security’ panel go to the 802.1X Security  section and enable it, select your required key size and group key re-key  settings.</p>
<blockquote><p><img src="http://www.windowsnetworking.com/img/upl/image0021118309599244.jpg" align="bottom" border="0" hspace="0" /></p></blockquote>
<blockquote>
<p dir="ltr"><i>No rekeying</i> &#8211; the clients will not have to re-key the  password to re-authenticate to the RADIUS server.</p>
<p><i>Rekeying</i><i> every X minutes</i> – this refers to the number of minutes  before the client will have to re-enter the password.</p>
<p><i>Rekeying</i><i> every X packets</i> – this refers to the number of  transmitted packets before the client will have to re-enter the  password.</p></blockquote>
<p>Once you do all this you can move on to the next stage of configuring the  Certificate Authority on your Windows 2003 Server.</p>
<h2>Windows 2003 Certification Authority</h2>
<p>The PEAP protocol needs the IAS Server to identify itself to the wireless  client before the client passes any encrypted credentials to it. Once the IAS  Server has a certificate installed, it gets a private keys which it then uses to  decrypt the encrypted credentials sent by the wireless client. The wireless  client uses the certificate’s public key to encrypt the username and  password.</p>
<p>To install the certification authority console you will have to run the  Add/Remove components wizard and select Certificate Services from the list. Keep  in mind that to make use of the Web Enrollment Wizard (web interface used to  request and generate certificates) you will have to have IIS installed.</p>
<blockquote><p><b>NOTE:</b><br />
Before initiating the installation you will be warned about  how changing the machine name or domain membership will invalidate any  certificates coming from the CA due to the fact that CA information is stored,  and bound, in Active Directory. Make sure you have all the properties of your  machine setup properly before you continue<i>. </i></p></blockquote>
<p dir="ltr">As part of the installation you will be asked to select the type of  CA you want to set up. You have a choice of Enterprise CA, Enterprise  Subordinate, Standalone CA and Standalone Subordinate, with Enterprise CA being  the most trusted Certificate Authority in the enterprise. Make your choice and  follow the wizard to complete the installation.</p>
<p>Once the CA console is installed you will have to Issue a certificate for the  computer running IAS. Do this from the web enrollment wizard (which is created  automatically when you install Certification Services unless you manually  specified for it not to be installed). By default you can logon and request a  certificate by opening Internet Explorer and navigating to <b><a href="http://%3Cip_address%3E/certsrv">http://&lt;ip_address&gt;/certsrv</a></b></p>
<blockquote><p><img src="http://www.windowsnetworking.com/img/upl/image0031118309599259.jpg" align="bottom" border="0" hspace="0" /></p></blockquote>
<p>Install user and computer certificates on wireless clients in the same manner  as stated above.</p>
<h2>Windows 2003 Active Directory Service Configuration</h2>
<p>Your next step is to create a group for wireless user and computer accounts  in AD. Alternatively you could just create individual users but, it goes without  saying that groups are easier to manage. In the properties of the user account,  go to the Dial-In properties account and select the “Control Access through  Remote Access Policy” option in the Remote Access Permission section.</p>
<blockquote><p><b>NOTE:</b><br />
If “Control Access through Remote Access Policy” is disabled  then your current domain functional level is probably set to Windows 2000. To  change this, right click the domain name in Active Directory and select Raise  Domain Functional Level. Choose Windows 2003 from the drop down list and press  Apply. Once AD replication is complete, the “Control Access through Remote  Access Policy” will no longer be grayed out.</p></blockquote>
<p>You must also verify that your IAS Server is a member of the RAD and IAS  Server Security Group.</p>
<blockquote><p><img src="http://www.windowsnetworking.com/img/upl/image0051118309802516.jpg" align="bottom" border="0" hspace="0" /></p></blockquote>
<h2>Windows 2003 IAS Configuration</h2>
<p>If you haven’t already done so you will have to install the Internet  Authentication Service component from Add/Remove programs in the Control Panel.  You will find it under Networking Services.</p>
<p>Open the IAS console from the Administrative Tools folder in either the  Control Panel or Start Menu programs. Follow these steps:</p>
<ul>
<li>Right click the main IAS node and select “Register Server in Active  Directory” – this will authorize IAS to read the users’ dial in properties from  the domain.</li>
<li>From the window on the right hand side of the console, right click anywhere  and select “New RADIUS Client”. In the first screen, enter a friendly name for  the RADIUS Client and also the Access Point IP Address. Press  Next.</li>
</ul>
<blockquote><p><img src="http://www.windowsnetworking.com/img/upl/image0061118309802516.jpg" align="bottom" border="0" hspace="0" /></p></blockquote>
<p dir="ltr">Now select the client-vendor attribute of the RADIUS client. If you  are not using a remote access policy based on the client vendor’s attribute then  select RADIUS Standard from the list.</p>
<p>Type the shared secret, as you did  when configuring the 802.1X Server on your access point. The IAS Server will  only allow user information to be forwarded to it by the AP once the correct  shared key has been provided, so make sure that they match.</p>
<blockquote><p><img src="http://www.windowsnetworking.com/img/upl/image0071118309802516.jpg" align="bottom" border="0" hspace="0" /></p></blockquote>
<p dir="ltr">Once you have pressed Next the new client will show up in the right  pane of the IAS Console.</p>
<p><b>Creating a Wireless Remote Access Policy</b></p>
<p>Your Next step is to create a Remote Access Policy for wireless access. Right  click the Remote Access Policies node in the left hand pane and select New  Remote Access Policy to bring up the wizard. Enter a policy name in the given  text box and select whether you want to set up the policy manually or via the  wizard.</p>
<blockquote><p><b>NOTE:</b><br />
The wizard will do what most Microsoft wizards do; help you  to setup a typical scenario yet allowing you to add conditions to it later. You  can set user or group access and the authentication method using Protected EAP.  Manual configuration will give you the option to set all your conditions  straight away and customize the setup to suit your specific needs.</p></blockquote>
<p>If you select to use the wizard you will be given the option to choose a  method of access for the policy. VPN, Dial-Up, Wireless and Ethernet are your  typical RADIUS server options. Choose Wireless and press Next. Select whether  you want to grant access to a User or Group followed by the EAP type. In the  Authentication Method screen choose PEAP as an EAP Authentication Method and  press the Configure button if you want to edit which certificate will be issued  to identify the server. Press Next and Finish.</p>
<h2>Summary</h2>
<p>In this article I have shown you how Windows Server 2003 Service Pack 1 can  help to improve centralized management of clients and provide better security  for your wireless network. We also looked at the different steps you have to  take in order to deploy the 802.1X security on a Windows 2003 RADIUS  Server.</p></div>
<div>
<h1>About Andrew Z. Tabona</h1>
<p><img src="http://www.windowsnetworking.com/img/upl/headshot11164015504562.jpg" alt="Andrew Z. Tabona photo" width="75" /> Andrew Z. Tabona (MCSA, Network+, Security+, etc) heads a QA/CRM team  at <a href="http://www.gfi.com/" target="_blank">GFI Software</a>, a leading global  security and messaging software firm. Prior to this he plied his trade as a  Network Administrator and an independent technical trainer. He has written a  wealth of articles, manuals, white papers, etc and tries to “bridge the gap”  with his easy going style of writing.</p>
<p><b><a href="/Andrew_Tabona/">Click here</a></b> for Andrew Z.  Tabona&#8217;s section.</div>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/knopix.wordpress.com/10/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/knopix.wordpress.com/10/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/knopix.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/knopix.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/knopix.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/knopix.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/knopix.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/knopix.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/knopix.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/knopix.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/knopix.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/knopix.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=knopix.wordpress.com&blog=2225514&post=10&subd=knopix&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://knopix.wordpress.com/2008/01/08/wireless-networking-in-windows-2003/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/72423876de373045bd3b9f6d1ce2a9ab?s=96&#38;d=identicon" medium="image">
			<media:title type="html">knopix</media:title>
		</media:content>

		<media:content url="http://www.windowsnetworking.com/img/upl/image0011118309599244.jpg" medium="image" />

		<media:content url="http://www.windowsnetworking.com/img/upl/image0021118309599244.jpg" medium="image" />

		<media:content url="http://www.windowsnetworking.com/img/upl/image0031118309599259.jpg" medium="image" />

		<media:content url="http://www.windowsnetworking.com/img/upl/image0051118309802516.jpg" medium="image" />

		<media:content url="http://www.windowsnetworking.com/img/upl/image0061118309802516.jpg" medium="image" />

		<media:content url="http://www.windowsnetworking.com/img/upl/image0071118309802516.jpg" medium="image" />

		<media:content url="http://www.windowsnetworking.com/img/upl/headshot11164015504562.jpg" medium="image">
			<media:title type="html">Andrew Z. Tabona photo</media:title>
		</media:content>
	</item>
		<item>
		<title>Setting up a wireless network with Windows Server 2003 and PEAP/EAP</title>
		<link>http://knopix.wordpress.com/2008/01/08/setting-up-a-wireless-network-with-windows-server-2003-and-peapeap/</link>
		<comments>http://knopix.wordpress.com/2008/01/08/setting-up-a-wireless-network-with-windows-server-2003-and-peapeap/#comments</comments>
		<pubDate>Tue, 08 Jan 2008 06:29:51 +0000</pubDate>
		<dc:creator>knopix</dc:creator>
				<category><![CDATA[Microsoft]]></category>

		<guid isPermaLink="false">http://knopix.wordpress.com/2008/01/08/setting-up-a-wireless-network-with-windows-server-2003-and-peapeap/</guid>
		<description><![CDATA[Setting up a wireless network with Windows Server 2003 and PEAP/EAP
PEAP with IAS is a great way to setup wireless networks that require:
a)Their security to be top notch.
b)Lot’s of Access Points (greater than 10 or so).
c)Minimal administrative maintenance overhead.
It brings your wireless security up to a level that is acceptable for use on a security [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=knopix.wordpress.com&blog=2225514&post=9&subd=knopix&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><b>Setting up a wireless network with Windows Server 2003 and PEAP/EAP</b></p>
<div class="main">PEAP with IAS is a great way to setup wireless networks that require:</div>
<div class="main">a)Their security to be top notch.<br />
b)Lot’s of Access Points (greater than 10 or so).<br />
c)Minimal administrative maintenance overhead.</p>
<p>It brings your wireless security up to a level that is acceptable for use on a security sensitive domain. It is approximately as secure as domain logon is on a wired network.</p>
<p>The whole IAS management of your AP’s as Radius Clients makes it very simple to make changes to your infrastructure without having to reprogram every AP on site to reflect a simple change (which is the case in most WPA setups). You don’t need to worry about keeping WPA keys up to date as the encryption keys are generated dynamically each time a client connects.</p>
<p>Below I have detailed the steps that I take when setting on of these networks up. Screenshots are on their way (I will get them next time I set up one of these networks) but most of the steps are fairly self explanatory.</p>
<p>Install IAS from the Add/ Remove Windows Components area in the control panel.</p>
<p>Install Certificate Services from the Windows Components area in the control panel.</p>
<p>When prompted you want to install an “Enterprise Root CA”.</p>
<p>Load up the “Certificates” plugin for mmc and then submit a request for a new domain controller certificate.</p>
<p>Create a group in Active Directory called “WirelessUsers”.</p>
<p>Inside the administrative tools section load up the IAS plugin and create a “new remote access policy”. Call it “Wireless Access Policy”. Follow the wizard which is reasonably intuitive and when prompted for access restrictions you want to allow only computers and users that are a member of the “Wireless Users” group you created previously. Also make sure when prompted for the authentication method that you select EAP/PEAP.</p>
<p>Then right click on the policy you just created and goto “Properties”. Then click on the “Edit Profile” button and make the following changes:</p>
<p>1.Encryption tab: Make sure “No Encryption” is not ticked.<br />
2.Authentication tab: Tick MSCHAP-V2.<br />
3.Advanced tab: Add Ignore_User_Dial_In_Properties = true and also Terminate-Action = Radius-Request.</p>
<p><span id="more-9"></span></p>
<p><i>On the Access Point:</i></p>
<p>Use an access point that supports EAP/PEAP and 802.1X authentication (e.g. a DLink DWL 2100AP). Set up a DHCP reservation for it so that it is always on the same IP address.</p>
<p>Change the authentication mode to be WPA-EAP.<br />
Put in the IP address of the radius server (the server you installed IAS on).<br />
Put in the Radius server/ port numbers/ shared secret (make one up at this stage).<br />
Remember to save/ restart the AP to make sure the settings have stuck.</p>
<p><i>Back to IAS:</i></p>
<p>Add a new Radius client. Put in the IP Address of your new AP and also the shared secret you came up with above.</p>
<p><i>Group Policy Setup:</i></p>
<p>Load up the group policy manager. Find the appropriate OU that you wish to distribute the wireless network settings to.</p>
<p>Create and link a new GPO here (by right clicking on it and choosing the obvious option). Then right click on the new GPO and click edit.</p>
<p>Goto Computer Configuration -&gt; Windows Settings -&gt; Security Settings -&gt; Wireless Network.</p>
<p>From here you right click on the right hand window and click “Create Wireless Network Policy”.</p>
<p>1.Give the wireless network policy a name.<br />
2.Select Access Point (infrastructure) networks only.</p>
<p>Once this is created edit the properties as follows:</p>
<p>1.Put in the SSID of the wireless network in to the “Network Name” box. Do not use any punctuation like (-,_,/) etc.<br />
2.In the Wireless Network Key box. Set “Network Authentication” to WPA. with TKIP encryption.</p>
<p>On the IEEE 802.1X tab:</p>
<p>1.Set EAPOL start message to “Transmit”<br />
2.In the parameters section you want to have : Max Start = 3 , Start Period = 10, Held Period=10, Authentication Period=10.<br />
3.Make sure that “Authenticate as computer when computer information is available is ticked. Also make sure that computer authentication option is set to “With User Re-Authentication”.<br />
4.Make sure that EAP Type is set to Protected EAP. Click the settings button and make sure that:</p>
<p>“Validate server Certificate” is ticked, that your CA (that you created above) is also in the list of “Trusted Root Certification Authorities”, Fast Connect is enabled and that “Secured Password (EAP-MSCHAAP v2)” is the selected method, click on “Configure” and make sure that automatically send my username and password is ticked.</p>
<p><i>Setup is now complete.</i></div>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/knopix.wordpress.com/9/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/knopix.wordpress.com/9/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/knopix.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/knopix.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/knopix.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/knopix.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/knopix.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/knopix.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/knopix.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/knopix.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/knopix.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/knopix.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=knopix.wordpress.com&blog=2225514&post=9&subd=knopix&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://knopix.wordpress.com/2008/01/08/setting-up-a-wireless-network-with-windows-server-2003-and-peapeap/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/72423876de373045bd3b9f6d1ce2a9ab?s=96&#38;d=identicon" medium="image">
			<media:title type="html">knopix</media:title>
		</media:content>
	</item>
		<item>
		<title>spam blocker use rblsmptd on qmail</title>
		<link>http://knopix.wordpress.com/2007/12/07/spam-blocker-use-rblsmptd-on-qmail/</link>
		<comments>http://knopix.wordpress.com/2007/12/07/spam-blocker-use-rblsmptd-on-qmail/#comments</comments>
		<pubDate>Fri, 07 Dec 2007 08:47:43 +0000</pubDate>
		<dc:creator>knopix</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://knopix.wordpress.com/2007/12/07/spam-blocker-use-rblsmptd-on-qmail/</guid>
		<description><![CDATA[(install using qmailrocks)

edit /var/qmail/supervise/qmail-smtpd/run
#!/bin/sh
QMAILQUEUE=&#8221;/var/qmail/bin/qmail-scanner-queue.pl&#8221; ;export QMAILQUEUE
QMAILDUID=`id -u vpopmail`
NOFILESGID=`id -g vpopmail`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
LOCAL=`head -1 /var/qmail/control/me`
if [ -z "$QMAILDUID" -o -z "$NOFILESGID" -o -z "$MAXSMTPD" -o -z "$LOCAL" ]; then
echo QMAILDUID, NOFILESGID, MAXSMTPD, or LOCAL is unset in
echo /var/qmail/supervise/qmail-smtpd/run
exit 1
fi
if [ ! -f /var/qmail/control/rcpthosts ]; then
echo &#8220;No /var/qmail/control/rcpthosts!&#8221;
echo &#8220;Refusing to start SMTP listener because it&#8217;ll create an open [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=knopix.wordpress.com&blog=2225514&post=8&subd=knopix&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><span style="font-size:85%;">(install using qmailrocks)</span><br />
<span style="font-size:85%;"></span><br />
<span style="font-size:85%;">edit /var/qmail/supervise/qmail-smtpd/run</span><span id="more-8"></span></p>
<p><span style="font-size:85%;">#!/bin/sh<br />
QMAILQUEUE=&#8221;/var/qmail/bin/qmail-scanner-queue.pl&#8221; ;export QMAILQUEUE<br />
QMAILDUID=`id -u vpopmail`<br />
NOFILESGID=`id -g vpopmail`<br />
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`<br />
LOCAL=`head -1 /var/qmail/control/me`<br />
if [ -z "$QMAILDUID" -o -z "$NOFILESGID" -o -z "$MAXSMTPD" -o -z "$LOCAL" ]; then<br />
echo QMAILDUID, NOFILESGID, MAXSMTPD, or LOCAL is unset in<br />
echo /var/qmail/supervise/qmail-smtpd/run<br />
exit 1<br />
fi<br />
if [ ! -f /var/qmail/control/rcpthosts ]; then<br />
echo &#8220;No /var/qmail/control/rcpthosts!&#8221;<br />
echo &#8220;Refusing to start SMTP listener because it&#8217;ll create an open relay&#8221;<br />
exit 1<br />
fi<br />
exec /usr/local/bin/softlimit -m 40000000 /usr/local/bin/tcpserver -v -R -l &#8220;$LOCAL&#8221; -x /etc/tcp.smtp.cdb -c &#8220;$MAXSMTPD&#8221; -u &#8220;$QMAILDUID&#8221; -g &#8220;$NOFILESGID&#8221; 0 smtp /usr/local/bin/rblsmtpd -b -t 5 -r bl.spamcop.net -r sbl.spamhaus.org -r relays.ordb.org -r dnsbl.antispam.or.id -r bl.spamcop.net /var/qmail/bin/qmail-smtpd mail.semestamargaraya.com /home/vpopmail/bin/vchkpw /usr/bin/true 2&gt;&amp;1</span></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/knopix.wordpress.com/8/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/knopix.wordpress.com/8/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/knopix.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/knopix.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/knopix.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/knopix.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/knopix.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/knopix.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/knopix.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/knopix.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/knopix.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/knopix.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=knopix.wordpress.com&blog=2225514&post=8&subd=knopix&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://knopix.wordpress.com/2007/12/07/spam-blocker-use-rblsmptd-on-qmail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/72423876de373045bd3b9f6d1ce2a9ab?s=96&#38;d=identicon" medium="image">
			<media:title type="html">knopix</media:title>
		</media:content>
	</item>
		<item>
		<title>Compile kernel on debian</title>
		<link>http://knopix.wordpress.com/2007/12/07/compile-kernel-on-debian/</link>
		<comments>http://knopix.wordpress.com/2007/12/07/compile-kernel-on-debian/#comments</comments>
		<pubDate>Fri, 07 Dec 2007 08:38:45 +0000</pubDate>
		<dc:creator>knopix</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://knopix.wordpress.com/2007/12/07/compile-kernel-on-debian/</guid>
		<description><![CDATA[

debian:~# apt-get install kernel-package libncurses5-dev


wget http://www.kernel.org/pub/linux/kernel/v2.4/linux-2.4.20.tar.gz


debian:~# cd /usr/src/
debian:/usr/src# tar xzf /root/linux-2.4.20.tar.gz
debian:/usr/src# ls -la
total 2
drwxr-xr-x    3 root     root           80 Jun 12 12:00 .
drwxr-xr-x   14 root     root        [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=knopix.wordpress.com&blog=2225514&post=7&subd=knopix&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><ul>
<li>
<pre>debian:~# <strong>apt-get install kernel-package libncurses5-dev</strong><span id="more-7"></span></pre>
</li>
<li>
<pre><strong><strong>wget http://www.kernel.org/pub/linux/kernel/v2.4/linux-2.4.20.tar.gz</strong></strong></pre>
</li>
<li>
<pre>debian:~# <strong>cd /usr/src/</strong>
debian:/usr/src# <strong>tar xzf /root/linux-2.4.20.tar.gz</strong>
debian:/usr/src# <strong>ls -la</strong>
total 2
drwxr-xr-x    3 root     root           80 Jun 12 12:00 .
drwxr-xr-x   14 root     root          360 Jun 12 12:00 ..
drwxr-xr-x   14 573      573           536 Nov 29  2002 linux-2.4.20</pre>
</li>
<li>
<pre>debian:/usr/src# <strong>mv linux-2.4.20 linux-2.4.20-mh9</strong>
debian:/usr/src# <strong>cd linux-2.4.20-mh9</strong>
debian:/usr/src/linux-2.4.20-mh9# <strong>zcat /root/patch-2.4.20-mh9.gz | patch -p1</strong>
patching file Documentation/Configure.help
patching file Makefile
patching file arch/sparc64/kernel/ioctl32.c
patching file drivers/bluetooth/Config.in
patching file drivers/bluetooth/Makefile
patching file drivers/bluetooth/btuart_cs.c
patching file drivers/bluetooth/hci_bcsp.c
patching file drivers/bluetooth/hci_bcsp.h
patching file drivers/bluetooth/hci_h4.c
patching file drivers/bluetooth/hci_h4.h
patching file drivers/bluetooth/hci_ldisc.c
patching file drivers/bluetooth/hci_uart.h
patching file drivers/bluetooth/hci_usb.c
patching file drivers/bluetooth/hci_usb.h
patching file drivers/char/pcmcia/serial_cs.c
patching file drivers/char/serial.c
patching file drivers/usb/Config.in
patching file include/net/bluetooth/bluetooth.h
patching file include/net/bluetooth/hci.h
patching file include/net/bluetooth/hci_core.h
patching file include/net/bluetooth/l2cap.h
patching file include/net/bluetooth/rfcomm.h
patching file include/pcmcia/ciscode.h
patching file net/bluetooth/Config.in
patching file net/bluetooth/Makefile
patching file net/bluetooth/af_bluetooth.c
patching file net/bluetooth/bnep/Config.in
patching file net/bluetooth/bnep/Makefile
patching file net/bluetooth/bnep/bnep.h
patching file net/bluetooth/bnep/core.c
patching file net/bluetooth/bnep/netdev.c
patching file net/bluetooth/bnep/sock.c
patching file net/bluetooth/hci_conn.c
patching file net/bluetooth/hci_core.c
patching file net/bluetooth/hci_sock.c
patching file net/bluetooth/l2cap.c
patching file net/bluetooth/rfcomm/Config.in
patching file net/bluetooth/rfcomm/Makefile
patching file net/bluetooth/rfcomm/core.c
patching file net/bluetooth/rfcomm/crc.c
patching file net/bluetooth/rfcomm/sock.c
patching file net/bluetooth/rfcomm/tty.c
patching file net/bluetooth/sco.c
patching file net/bluetooth/syms.c</pre>
</li>
<li>
<pre>debian:/usr/src/linux-2.4.20-mh9# <strong>cp /root/config-2.4.20 .config</strong>
debian:/usr/src/linux-2.4.20-mh9# <strong>make oldconfig</strong>
rm -f include/asm
( cd include ; ln -sf asm-i386 asm)
/bin/sh scripts/Configure -d arch/i386/config.in
#
# Using defaults found in .config
#
.
.
.

*** End of Linux kernel configuration.
*** Check the top-level Makefile for additional configuration.
*** Next, you must run "make dep".

debian:/usr/src/linux-2.4.20-mh9# <strong>make-kpkg kernel-image</strong>
.
.
.</pre>
</li>
<li>
<pre>debian:/usr/src/linux-2.4.20-mh9# <strong>cd ..</strong>
debian:/usr/src# <strong>ls -la</strong>
total 3534
drwxr-xr-x    3 root     root          144 Jun 13 12:00 .
drwxr-xr-x   14 root     root          360 Jun 12 12:00 ..
-rw-r--r--    1 root     root      3612714 Jun 11 12:42 kernel-image-2.4.20-mh9_10.00.Custom_i386.deb
drwxr-xr-x   15 573      573           856 Jun 11 12:42 linux-2.4.20-mh9
debian:/usr/src# <strong>dpkg -i kernel-image-2.4.20-mh9_10.00.Custom_i386.deb</strong>
Selecting previously deselected package kernel-image-2.4.20-mh9.
(Reading database ... 80275 files and directories currently installed.)
Unpacking kernel-image-2.4.20-mh9 (from kernel-image-2.4.20-mh9_10.00.Custom_i386.deb) ...
Setting up kernel-image-2.4.20-mh9 (10.00.Custom) ...
A new kernel image has been installed, and usually that means
that some action has to be taken to make sure that the new
kernel image is used next time the machine boots. Usually,
this entails running a "bootloader" like SILO, loadlin, LILO,
ELILO, QUIK, VMELILO, ZIPL, or booting from a floppy.   (Some
boot loader, like grub, for example, do not need to be run on
each new image install, so please ignore this if you are using
such a boot loader).

A new kernel image has been installed. at /boot/vmlinuz-2.4.20-mh9
 (Size: 761kB)

Symbolic links, unless otherwise specified, can be found in /

LILO sets up your system to boot Linux directly from your hard
disk, without the need for booting from a boot floppy.

WARNING
If you are keeping another operating system or another version
of Linux on a separate disk partition, you should not have LILO
install a boot block now. Wait until you read the LILO documentation.
That is because installing a boot block now might make the other
system un-bootable. If you only want to run this version of Linux,
go ahead and install the boot block here. If it does not work, you
can still boot this system from a boot floppy.

Would you like to create a boot floppy now? [No] <strong>No</strong>
You already have a LILO configuration in /etc/lilo.conf
Install a boot block using the existing /etc/lilo.conf? [Yes] <strong>Yes</strong>
Testing lilo.conf ...
Testing successful.
Installing the partition boot sector...
Installation successful.</pre>
</li>
<li></li>
<li>
<pre>SRC : http://www.holtmann.org/linux/kernel/debian.html

debian:/usr/src#

debian:/usr/src/linux-2.4.20-mh9#
debian:/usr/src/linux-2.4.20-mh9#
debian:/usr/src#</pre>
</li>
</ul>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/knopix.wordpress.com/7/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/knopix.wordpress.com/7/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/knopix.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/knopix.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/knopix.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/knopix.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/knopix.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/knopix.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/knopix.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/knopix.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/knopix.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/knopix.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=knopix.wordpress.com&blog=2225514&post=7&subd=knopix&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://knopix.wordpress.com/2007/12/07/compile-kernel-on-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/72423876de373045bd3b9f6d1ce2a9ab?s=96&#38;d=identicon" medium="image">
			<media:title type="html">knopix</media:title>
		</media:content>
	</item>
		<item>
		<title>Membuat Certificate untuk web server</title>
		<link>http://knopix.wordpress.com/2007/11/29/membuat-certificate-untuk-web-server/</link>
		<comments>http://knopix.wordpress.com/2007/11/29/membuat-certificate-untuk-web-server/#comments</comments>
		<pubDate>Thu, 29 Nov 2007 07:44:41 +0000</pubDate>
		<dc:creator>knopix</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://knopix.wordpress.com/2007/11/29/membuat-certificate-untuk-web-server/</guid>
		<description><![CDATA[Keterangan:
$VALID_DAYS        : 3650 hari
$PRIVATE_KEY     : cert.key
$CERTIFICATE_FILE    : cert.crt


 Buka console as root, ketikkan perintah seperti berikut


openssl req -new         -days $VALID_DAYS         -key $PRIVATE_KEY    [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=knopix.wordpress.com&blog=2225514&post=5&subd=knopix&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Keterangan:</p>
<p>$VALID_DAYS        : 3650 hari<br />
$PRIVATE_KEY     : cert.key<br />
$CERTIFICATE_FILE    : cert.crt</p>
<ol></ol>
<ul>
<li> Buka console as root, ketikkan perintah seperti berikut</li>
</ul>
<ol></ol>
<blockquote><p>openssl req -new         -days $VALID_DAYS         -key $PRIVATE_KEY         -x509         -out $CERTIFICATE_FILE</p></blockquote>
<ol></ol>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/knopix.wordpress.com/5/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/knopix.wordpress.com/5/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/knopix.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/knopix.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/knopix.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/knopix.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/knopix.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/knopix.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/knopix.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/knopix.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/knopix.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/knopix.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=knopix.wordpress.com&blog=2225514&post=5&subd=knopix&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://knopix.wordpress.com/2007/11/29/membuat-certificate-untuk-web-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/72423876de373045bd3b9f6d1ce2a9ab?s=96&#38;d=identicon" medium="image">
			<media:title type="html">knopix</media:title>
		</media:content>
	</item>
		<item>
		<title>HTB-GEN cara mudah memanage Bandwidth</title>
		<link>http://knopix.wordpress.com/2007/11/29/htb-gen-cara-mudah-memanage-bandwidth/</link>
		<comments>http://knopix.wordpress.com/2007/11/29/htb-gen-cara-mudah-memanage-bandwidth/#comments</comments>
		<pubDate>Thu, 29 Nov 2007 07:31:08 +0000</pubDate>
		<dc:creator>knopix</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://knopix.wordpress.com/2007/11/29/htb-gen-cara-mudah-memanage-bandwidth/</guid>
		<description><![CDATA[&#160;
Implementasi bandwidth management biasanya di terapkan pada main-gw (gateway utama) dimana main-gw menghandle beberapa klien yang mempunyai jatah bandwidth yang telah di tetapkan. Disini kita akan menggunakan tool bantu yang bernama HTB-GEN.
Pada distro linux kebanyakan sebenarnya htb/cbq sudah include di kernel default masing-masing distro, tinggal kita saja yang kurang familiar dengan perintah tc yang digunakan [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=knopix.wordpress.com&blog=2225514&post=3&subd=knopix&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p class="entry">&nbsp;</p>
<p class="snap_preview">Implementasi bandwidth management biasanya di terapkan pada main-gw (gateway utama) dimana main-gw menghandle beberapa klien yang mempunyai jatah bandwidth yang telah di tetapkan. Disini kita akan menggunakan tool bantu yang bernama HTB-GEN.<br />
Pada distro linux kebanyakan sebenarnya htb/cbq sudah include di kernel default masing-masing distro, tinggal kita saja yang kurang familiar dengan perintah tc yang digunakan sebagai standar tool shaping bandwith. Untuk itulah kita menggunakan HTB-GEN disini.<br />
Yang perlu diingat adalah :<br />
Lisensi GPLv2 or later<br />
Syarat dan kebutuhan untuk menjalankannya:<br />
-bash<br />
-QoS htb kernel support<br />
-iproute2 tc<br />
-iptables<br />
-htb-init script (optional)</p>
<p>Ok kita mulai aja meng-implementasikan HTB-GEN ke mesin main-gw kita, langkah-langkahnya adalah sebagai berikut:<br />
Langkah 1: Download</p>
<p class="auto">   – <a href="http://www.praga.org.ar/dev/htb-gen/packages/htb-gen-0.8.4.tar.gz" target="_blank" class="outerlink"><img src="http://www.praga.org.ar/wacko/themes/default/icons/file.gif" border="0" />htb-gen-0.8.4.tar.gz</a> Source tarball<br />
– <a href="http://www.praga.org.ar/dev/htb-gen/packages/htb-gen_0.8.4_all.deb" target="_blank" class="outerlink"><img src="http://www.praga.org.ar/wacko/themes/default/icons/file.gif" border="0" />htb-gen_0.8.4_all.deb</a> Debian package<br />
– <a href="http://www.praga.org.ar/dev/htb-gen/packages/htb-gen-0.8.4-1.noarch.rpm" target="_blank" class="outerlink"><img src="http://www.praga.org.ar/wacko/themes/default/icons/file.gif" border="0" />htb-gen-0.8.4–1.noarch.rpm</a> Aliened RPM package</p>
<p><a title="p81-12" name="p81-12"></a></p>
<p class="auto"> Archive at <a href="http://www.praga.org.ar/dev/htb-gen/packages/" target="_blank" title="Vinculo externo (en nueva ventana)" class="outerlink">http://www.praga.org.ar/dev/htb-gen/packages/</a></p>
<p>sesuaikan dengan distro based yang dipakai, disini saya pake mandriva cooker, otomatis harus download yang versi .rpm</p>
<p><span></span>Langkah 2: Install<br />
untuk menginstall htb-gen di mandriva, tinggal menjalankan perintah<br />
#urpmi htb-gen-0.8.4-1.noarch.rpm</p>
<p>Langkah 3: Konfigurasi<br />
setelah langkah instalasi dilalui dengan sukses <img src="http://bayuart.wordpress.com/wp-includes/images/smilies/icon_smile.gif" alt=")" class="wp-smiley" /> maka akan terdapat file konfigurasi standar htb-gen di direktori /etc/htb-gen.<br />
Edit file /etc/htb-gen/htb-gen.conf, dengan editor kesayangan anda <img src="http://bayuart.wordpress.com/wp-includes/images/smilies/icon_smile.gif" alt=")" class="wp-smiley" /></p>
<p>#vim /etc/htb-gen/htb-gen.conf</p>
<p>perhatikan baris berikut ini:</p>
<p class="code"><code><font color="#000000">iface_down=”eth1″       # Server LAN iface<br />
iface_up=”eth0″         # Server INET iface<br />
total_rate_down=1024    #Total download bw<br />
total_rate_up=512       #Total upload bw</font> </code></p>
<p><a title="p81-5" name="p81-5"></a></p>
<p class="auto"><!--/notypo--></p>
<p>Kemudian di file /etc/htb-gen/htb-gen-rates.conf, perhatikan baris berikut :<br />
<a title="p81-6" name="p81-6"></a><a title="p81-7" name="p81-7"></a></p>
<p class="auto"> <!--notypo--></p>
<p class="code"><code><font color="#000000"> #               down    down    up      up<br />
#               min     max     min     max<br />
#ip             (rate)  (ceil)  (rate)  (ceil)<br />
192.168.1.2     0       64      0       32<br />
192.168.1.3     0       128     0       64<br />
192.168.1.4     0       256     0       128<br />
10.0.0.1/30     256     512     128     256<br />
200.80.22.2     256     256     256     256</font> </code></p>
<p><a title="p81-8" name="p81-8"></a></p>
<p class="auto"><!--/notypo-->Seperti yang terlihat</p>
<p class="auto">mudah sekali untuk membatasi suatu host atau network</p>
<p class="auto">ip beda network juga bisa digunakan</p>
<p class="auto">penulisan format ip dan network mengikuti aturan standar</p>
<p class="auto">mendukung fixed rate b/w</p>
<p class="auto">nilai nol atau “0″ artinya secara otomatis akan menggunakan b/w yang ada atau b/w yang tersisa.</p>
<p class="auto">Selanjutnya….</p>
<p class="auto">Langkah 4: Menjalakannya</p>
<p class="auto">Untuk menjalankan htb-gen sangat mudah, secara umum htb-gen dapat di jalankan dengan opsi sebagai berikut</p>
<p class="auto">#htb-gen tc_all</p>
<p class="auto">lebih lanjut dengan opsi htb-gen, bisa di cek dengan perintah</p>
<p class="auto">#htb-gen –help</p>
<p class="auto">Situs terkait dan resmi dari htb-gen bisa di cek di http://www.praga.org.ar/wacko/DevPraga/htbgen/</p>
<p class="auto">&nbsp;</p>
<p>sumber : http://fsdoei.wordpress.com/2007/10/30/htb-gen-cara-mudah-memanage-bandwidth/</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/knopix.wordpress.com/3/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/knopix.wordpress.com/3/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/knopix.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/knopix.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/knopix.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/knopix.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/knopix.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/knopix.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/knopix.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/knopix.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/knopix.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/knopix.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=knopix.wordpress.com&blog=2225514&post=3&subd=knopix&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://knopix.wordpress.com/2007/11/29/htb-gen-cara-mudah-memanage-bandwidth/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://www.praga.org.ar/dev/htb-gen/packages/htb-gen-0.8.4-1.noarch.rpm" length="18730" type="audio/x-pn-realaudio-plugin" />
	
		<media:content url="http://1.gravatar.com/avatar/72423876de373045bd3b9f6d1ce2a9ab?s=96&#38;d=identicon" medium="image">
			<media:title type="html">knopix</media:title>
		</media:content>

		<media:content url="http://www.praga.org.ar/wacko/themes/default/icons/file.gif" medium="image" />

		<media:content url="http://www.praga.org.ar/wacko/themes/default/icons/file.gif" medium="image" />

		<media:content url="http://www.praga.org.ar/wacko/themes/default/icons/file.gif" medium="image" />

		<media:content url="http://bayuart.wordpress.com/wp-includes/images/smilies/icon_smile.gif" medium="image">
			<media:title type="html">)</media:title>
		</media:content>

		<media:content url="http://bayuart.wordpress.com/wp-includes/images/smilies/icon_smile.gif" medium="image">
			<media:title type="html">)</media:title>
		</media:content>
	</item>
	</channel>
</rss>