<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<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/"
	>

<channel>
	<title>nix &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/nix/</link>
	<description>Feed of posts on WordPress.com tagged "nix"</description>
	<pubDate>Thu, 10 Dec 2009 11:45:40 +0000</pubDate>

	<generator>http://en.wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[root equivalent user on AIX ? Use sudo!]]></title>
<link>http://outhereinthefield.wordpress.com/2009/12/06/root-equivalent-user-on-aix/</link>
<pubDate>Sun, 06 Dec 2009 00:16:27 +0000</pubDate>
<dc:creator>Ikhsan</dc:creator>
<guid>http://outhereinthefield.wordpress.com/2009/12/06/root-equivalent-user-on-aix/</guid>
<description><![CDATA[So I got several AIX boxes hosting Oracle EBS. Since the company that I work for is obliged to follo]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><a href="http://outhereinthefield.wordpress.com/files/2009/12/rootpo2.jpg"><img class="alignleft size-full wp-image-499" title="rootpo" src="http://outhereinthefield.wordpress.com/files/2009/12/rootpo2.jpg" alt="" width="120" height="120" /></a>So I got several AIX boxes hosting Oracle EBS. Since the company that I work for is obliged to follow SOX 404 standard, and that means no root password sharing for each administrators. Hence, I need to create a user for each administrators, and grant them a root equivalent right.</p>
<p>One approach to do this on Linux (and HP-UX) box is by changing each administrator account UID number to 0, essentially making all login from those account to be forwarded to root. The problem with this approach is that those account will use all config and history or log files of the root account. For example, when you look at .history file, you won&#8217;t be able to tell which user perform what, since all activity from each account will be recorded as if it was performed by root.</p>
<p>What I can do is to use <a href="http://www.courtesan.com/sudo/" target="_blank">sudo</a>, that will allow you to delegate root access to certain user or group of user. Here is a little how to on installing sudo.</p>
<ol>
<li>Get the source <a href="http://www.courtesan.com/sudo/stable.html" target="_blank">here</a> , as of the time of writing the current stable one is <a href="http://www.courtesan.com/sudo/dist/sudo-1.7.2p1.tar.gz" target="_blank">1.7.2p1</a></li>
<li>Since You will need to compile sudo from the source, make sure the C compiler is installed, and can be called. You can purchase a license for C compiler from IBM, or you can always use the good old GCC. To check, simply type &#8220;cc&#8221;.<br />
if the output is similar to this :</p>
<pre># cc
ksh: cc:  not found.</pre>
<p>Then either the C compiler is not installed, or simply that it is not on your path. In my case it was the later. &#8220;cc&#8221; from the xlC compiler was installed on &#8220;/usr/vac/bin&#8221;. So what you can do is either create a symlink of &#8220;cc&#8221; to &#8220;/usr/sbin&#8221; or &#8220;/sbin&#8221;, or to add &#8220;/usr/vac/bin&#8221; to your path. To temporarily ad &#8220;/usr/vac/bin&#8221; to your path, type the following :</p>
<pre># export PATH=$PATH:/usr/vac/bin</pre>
<p>Test it by running &#8220;cc -qversion&#8221; if you&#8217;re running the xlC compiler, or &#8220;cc &#8211;version&#8221; if you are using GCC.</p>
<pre># cc -qversion
IBM XL C/C++ Enterprise Edition for AIX, V9.0
Version: 09.00.0000.0000</pre>
</li>
<li>Untar the source, and then compile.
<pre># gunzip sudo-1.7.2p1.tar.gz
# tar xvf sudo-1.7.2p1.tar
# cd sudo-1.7.2p1
# ./configure
# make
# make install</pre>
<p>The steps above should install sudo executables, sudo in /usr/local/bin and visudo in /usr/local/sbin. I believe that both directories are not on your $PATH. for ease of use, create a symlink for both of the executables :</p>
<pre># ln -s /usr/local/bin/sudo /usr/bin/sudo
# ln -s /usr/local/sbin/visudo /usr/sbin/visudo</pre>
</li>
<li>I assume that all account that will be used by administrator team has already been created. The correct way of creating user account is by using &#8220;smit user&#8221;. Put all administrators account in one group, in my case &#8220;wheel&#8221;. To do this, use &#8220;smit group&#8221;
<pre># smit group</pre>
<p>Go to &#8220;Add a Group&#8221;, put &#8220;wheel&#8221; on Group Name. Go to USER List and press F4 or Escape+4 to get the list of available user. Mark each administrator accounts with F7 or Escape+7. If you&#8217;re done, press Enter</li>
<li>Find and edit the /etc/sudoers configuration using visudo
<pre># visudo</pre>
<p>uncomment the following line :</p>
<pre>%wheel ALL=(ALL) ALL</pre>
<p>Save. Log out from the root account.</li>
</ol>
<p>We&#8217;re done <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  To use sudo simply do &#8220;sudo command-name&#8221;. For example, to create a folder /opt/sources using sudo, type :</p>
<pre style="padding-left:60px;">$ sudo mkdir /opt/sources</pre>
<p style="padding-left:60px;">
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[queens blade s2 eps 11 sneak-peek [ecchi]]]></title>
<link>http://kirayamato04.wordpress.com/2009/12/03/queens-blade-s2-eps-11-sneak-peek-ecchi/</link>
<pubDate>Thu, 03 Dec 2009 13:42:46 +0000</pubDate>
<dc:creator>kirayamato04</dc:creator>
<guid>http://kirayamato04.wordpress.com/2009/12/03/queens-blade-s2-eps-11-sneak-peek-ecchi/</guid>
<description><![CDATA[Ecchi scenes Other screenshots]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><a href="http://kirayamato04.wordpress.com/files/2009/12/qbs211-header.jpg"><img class="alignnone size-full wp-image-17931" title="qbs211 header" src="http://kirayamato04.wordpress.com/files/2009/12/qbs211-header.jpg" alt="" width="75" height="75" /></a></p>
<p><a href="http://kirayamato04.wordpress.com/files/2009/12/snapshot20091203205929.jpg"><img class="alignnone size-full wp-image-17932" title="snapshot20091203205929" src="http://kirayamato04.wordpress.com/files/2009/12/snapshot20091203205929.jpg" alt="" width="655" height="491" /></a></p>
<p><span style="color:#ff0000;"><strong>Ecchi scenes</strong></span></p>
<p><span style="color:#ff0000;"><strong><a href="http://kirayamato04.wordpress.com/files/2009/12/snapshot20091203205731.jpg"><img class="alignnone size-medium wp-image-17934" title="snapshot20091203205731" src="http://kirayamato04.wordpress.com/files/2009/12/snapshot20091203205731.jpg?w=300" alt="" width="300" height="225" /></a><a href="http://kirayamato04.wordpress.com/files/2009/12/snapshot20091203205811.jpg"><img class="alignnone size-medium wp-image-17935" title="snapshot20091203205811" src="http://kirayamato04.wordpress.com/files/2009/12/snapshot20091203205811.jpg?w=300" alt="" width="300" height="225" /></a><a href="http://kirayamato04.wordpress.com/files/2009/12/snapshot20091203210059.jpg"><img class="alignnone size-medium wp-image-17936" title="snapshot20091203210059" src="http://kirayamato04.wordpress.com/files/2009/12/snapshot20091203210059.jpg?w=300" alt="" width="300" height="225" /></a><a href="http://kirayamato04.wordpress.com/files/2009/12/snapshot20091203210110.jpg"><img class="alignnone size-medium wp-image-17937" title="snapshot20091203210110" src="http://kirayamato04.wordpress.com/files/2009/12/snapshot20091203210110.jpg?w=300" alt="" width="300" height="225" /></a><a href="http://kirayamato04.wordpress.com/files/2009/12/snapshot20091203210125.jpg"><img class="alignnone size-medium wp-image-17938" title="snapshot20091203210125" src="http://kirayamato04.wordpress.com/files/2009/12/snapshot20091203210125.jpg?w=300" alt="" width="300" height="225" /></a><a href="http://kirayamato04.wordpress.com/files/2009/12/snapshot20091203210208.jpg"><img class="alignnone size-medium wp-image-17939" title="snapshot20091203210208" src="http://kirayamato04.wordpress.com/files/2009/12/snapshot20091203210208.jpg?w=300" alt="" width="300" height="225" /></a><a href="http://kirayamato04.wordpress.com/files/2009/12/snapshot20091203210217.jpg"><img class="alignnone size-medium wp-image-17940" title="snapshot20091203210217" src="http://kirayamato04.wordpress.com/files/2009/12/snapshot20091203210217.jpg?w=300" alt="" width="300" height="225" /></a><a href="http://kirayamato04.wordpress.com/files/2009/12/snapshot20091203210250.jpg"><img class="alignnone size-medium wp-image-17941" title="snapshot20091203210250" src="http://kirayamato04.wordpress.com/files/2009/12/snapshot20091203210250.jpg?w=300" alt="" width="300" height="225" /></a><a href="http://kirayamato04.wordpress.com/files/2009/12/snapshot20091203210918.jpg"><img class="alignnone size-medium wp-image-17942" title="snapshot20091203210918" src="http://kirayamato04.wordpress.com/files/2009/12/snapshot20091203210918.jpg?w=300" alt="" width="300" height="225" /></a><a href="http://kirayamato04.wordpress.com/files/2009/12/snapshot20091203211132.jpg"><img class="alignnone size-medium wp-image-17943" title="snapshot20091203211132" src="http://kirayamato04.wordpress.com/files/2009/12/snapshot20091203211132.jpg?w=300" alt="" width="300" height="225" /></a><a href="http://kirayamato04.wordpress.com/files/2009/12/snapshot20091203211141.jpg"><img class="alignnone size-medium wp-image-17944" title="snapshot20091203211141" src="http://kirayamato04.wordpress.com/files/2009/12/snapshot20091203211141.jpg?w=300" alt="" width="300" height="225" /></a><a href="http://kirayamato04.wordpress.com/files/2009/12/snapshot20091203211159.jpg"><img class="alignnone size-medium wp-image-17945" title="snapshot20091203211159" src="http://kirayamato04.wordpress.com/files/2009/12/snapshot20091203211159.jpg?w=300" alt="" width="300" height="225" /></a><a href="http://kirayamato04.wordpress.com/files/2009/12/snapshot20091203211244.jpg"><img class="alignnone size-medium wp-image-17946" title="snapshot20091203211244" src="http://kirayamato04.wordpress.com/files/2009/12/snapshot20091203211244.jpg?w=300" alt="" width="300" height="225" /></a><a href="http://kirayamato04.wordpress.com/files/2009/12/snapshot20091203211517.jpg"><img class="alignnone size-medium wp-image-17947" title="snapshot20091203211517" src="http://kirayamato04.wordpress.com/files/2009/12/snapshot20091203211517.jpg?w=300" alt="" width="300" height="225" /></a><a href="http://kirayamato04.wordpress.com/files/2009/12/snapshot20091203211526.jpg"><img class="alignnone size-medium wp-image-17948" title="snapshot20091203211526" src="http://kirayamato04.wordpress.com/files/2009/12/snapshot20091203211526.jpg?w=300" alt="" width="300" height="225" /></a><a href="http://kirayamato04.wordpress.com/files/2009/12/snapshot20091203211546.jpg"><img class="alignnone size-medium wp-image-17949" title="snapshot20091203211546" src="http://kirayamato04.wordpress.com/files/2009/12/snapshot20091203211546.jpg?w=300" alt="" width="300" height="225" /></a><a href="http://kirayamato04.wordpress.com/files/2009/12/snapshot20091203212036.jpg"><img class="alignnone size-medium wp-image-17950" title="snapshot20091203212036" src="http://kirayamato04.wordpress.com/files/2009/12/snapshot20091203212036.jpg?w=300" alt="" width="300" height="225" /></a><a href="http://kirayamato04.wordpress.com/files/2009/12/snapshot20091203212128.jpg"><img class="alignnone size-medium wp-image-17951" title="snapshot20091203212128" src="http://kirayamato04.wordpress.com/files/2009/12/snapshot20091203212128.jpg?w=300" alt="" width="300" height="225" /></a></strong></span></p>
<p><span style="color:#ff0000;"><strong>Other screenshots</strong></span></p>
<p><span style="color:#ff0000;"><strong><a href="http://kirayamato04.wordpress.com/files/2009/12/thumbs20091203212201.jpg"><img class="alignnone size-full wp-image-17952" title="thumbs20091203212201" src="http://kirayamato04.wordpress.com/files/2009/12/thumbs20091203212201.jpg" alt="" width="655" height="489" /></a><br />
</strong></span></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Python và vim.]]></title>
<link>http://projektantos.wordpress.com/2009/12/01/python-va-vim/</link>
<pubDate>Mon, 30 Nov 2009 20:38:09 +0000</pubDate>
<dc:creator>tuantub</dc:creator>
<guid>http://projektantos.wordpress.com/2009/12/01/python-va-vim/</guid>
<description><![CDATA[Bẵng đi một thời gian từ bài viết cuối cùng giờ tớ mới có thời gian viết một cái gì đó thư giãn . Đợ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Bẵng đi một thời gian từ <a href="http://projektantos.wordpress.com/2009/10/18/ph%e1%bb%a5-d%e1%bb%81-ti%e1%ba%bfng-vi%e1%bb%87t-tren-linux-v%e1%bb%9bi-mplayer/">bài viết cuối cùng</a> giờ tớ mới có thời gian viết một cái gì đó thư giãn <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .<br />
Đợt này có việc phải liên quan tới <a href="http://www.python.org">python</a> nên cũng chịu khó bắt đầu với nó một chút. Với một ngôn ngữ lập trình thì người lập trình viên thường bắt đầu bằng việc tìm một trình soạn thảo hoặc một<!--more--> <a href="http://en.wikipedia.org/wiki/Integrated_development_environment">IDE</a> cho ngôn ngữ mình cần sử dụng. Có rất nhiều <a href="http://wiki.python.org/moin/IntegratedDevelopmentEnvironments">IDE cho python</a> mà mọi người có thể bắt đầu và đó luôn là lựa chọn phù hợp cho những dự án lớn. Tuy nhiên, đôi khi chúng ta chỉ cần viết một vài dòng lệnh cho một script nho nhỏ và điều cần thiết chỉ là một trình soạn thảo với hỗ trợ cho ngôn ngữ đó là đủ. Cũng như rất nhiều người sử dụng linux, tớ thường dùng <a href="http://www.vim.org">vim</a> cho các công việc chỉnh sửa, tạo các tệp tin với nội dung ngắn nên quyết định tìm một vài <a href="http://en.wikipedia.org/wiki/Plug-in_%28computing%29">plugins</a> nho nhỏ cho vim để tiện sử dụng sau này.<br />
Do Python là ngôn ngữ rất chú trọng về thụt dòng trong syntax nên sau một hồi tìm hiểu, tớ quyết định theo chuẩn <a href="http://www.python.org/dev/peps/pep-0008/">PEP-8</a> và do mặc định vim sử dụng 8 ký tự trắng cho một ký tự tab nên để thay đổi cho đúng theo chuẩn và nhờ có anh bạn <a href="http://www.google.com">google</a> tớ đã tìm được bài viết <a href="http://henry.precheur.org/2008/4/18/Indenting_Python_with_VIM.html">này</a> để chỉnh được vim hỗ trợ thụt dòng theo ý muốn.<br />
Nếu ai đó tham lam, chỉnh sửa, tạo nhiều tệp tin trong một phiên làm việc với vim thì <a href="http://www.vim.org/scripts/script.php?script_id=159">plugin này</a> là một lựa chọn rất tốt, nó cho phép chuyển qua lại các tệp tin được nạp vào vim tại thời điểm chỉnh sửa như làm việc với nhiều <a href="http://en.wikipedia.org/wiki/Tab_%28GUI%29">tabs</a> trong nhiều trình soạn thảo khác.<br />
Cuối cùng, để làm việc với một tệp tin dài, với nhiều hàm con, lớp thì việc chuyển qua lại giữa những thành phần đó trong vim được một plugin hỗ trợ rất tốt, đó là <a href="http://vim-taglist.sourceforge.net/index.html">taglist</a>.<br />
Trên đây chỉ là những giới thiệu nho nhỏ về hỗ trợ của vim cho python, còn <a href="http://www.vim.org/scripts/index.php">rất rất nhiều</a> plugin hữu ích cho vim hỗ trợ các ngôn ngữ lập trình cũng như công việc nhất định khác mà mọi người có thể tham khảo <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .<br />
Tuần mới vui vẻ !</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[queens blade s2 eps 10 sneak-peek [ecchi]]]></title>
<link>http://kirayamato04.wordpress.com/2009/11/26/queens-blade-s2-eps-10-sneak-peek-ecchi/</link>
<pubDate>Thu, 26 Nov 2009 19:42:06 +0000</pubDate>
<dc:creator>kirayamato04</dc:creator>
<guid>http://kirayamato04.wordpress.com/2009/11/26/queens-blade-s2-eps-10-sneak-peek-ecchi/</guid>
<description><![CDATA[Ecchi scenes Other screenshots]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><a href="http://kirayamato04.wordpress.com/files/2009/11/qbs210-header.jpg"><img class="alignnone size-full wp-image-17564" title="qbs210 header" src="http://kirayamato04.wordpress.com/files/2009/11/qbs210-header.jpg" alt="" width="75" height="75" /></a></p>
<p><span style="color:#ff0000;"><a href="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091126224211.jpg"><img class="alignnone size-full wp-image-17565" title="snapshot20091126224211" src="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091126224211.jpg" alt="" width="655" height="491" /></a></span></p>
<p><span style="color:#ff0000;"><strong>Ecchi scenes</strong></span></p>
<p><span style="color:#ff0000;"><strong><a href="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091126221833.jpg"><img class="alignnone size-medium wp-image-17566" title="snapshot20091126221833" src="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091126221833.jpg?w=300" alt="" width="300" height="225" /></a><a href="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091126221904.jpg"><img class="alignnone size-medium wp-image-17567" title="snapshot20091126221904" src="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091126221904.jpg?w=300" alt="" width="300" height="225" /></a><a href="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091126221922.jpg"><img class="alignnone size-medium wp-image-17568" title="snapshot20091126221922" src="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091126221922.jpg?w=300" alt="" width="300" height="225" /></a><a href="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091126222321.jpg"><img class="alignnone size-medium wp-image-17570" title="snapshot20091126222321" src="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091126222321.jpg?w=300" alt="" width="300" height="225" /></a><a href="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091126222531.jpg"><img class="alignnone size-medium wp-image-17571" title="snapshot20091126222531" src="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091126222531.jpg?w=300" alt="" width="300" height="225" /></a><a href="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091126222553.jpg"><img class="alignnone size-medium wp-image-17572" title="snapshot20091126222553" src="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091126222553.jpg?w=300" alt="" width="300" height="225" /></a><a href="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091126222600.jpg"><img class="alignnone size-medium wp-image-17573" title="snapshot20091126222600" src="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091126222600.jpg?w=300" alt="" width="300" height="225" /></a><a href="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091126222824.jpg"><img class="alignnone size-medium wp-image-17574" title="snapshot20091126222824" src="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091126222824.jpg?w=300" alt="" width="300" height="225" /></a><a href="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091126223128.jpg"><img class="alignnone size-medium wp-image-17575" title="snapshot20091126223128" src="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091126223128.jpg?w=300" alt="" width="300" height="225" /></a><a href="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091126223135.jpg"><img class="alignnone size-medium wp-image-17576" title="snapshot20091126223135" src="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091126223135.jpg?w=300" alt="" width="300" height="225" /></a><a href="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091126223143.jpg"><img class="alignnone size-medium wp-image-17577" title="snapshot20091126223143" src="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091126223143.jpg?w=300" alt="" width="300" height="225" /></a><a href="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091126223158.jpg"><img class="alignnone size-medium wp-image-17578" title="snapshot20091126223158" src="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091126223158.jpg?w=300" alt="" width="300" height="225" /></a><a href="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091126223213.jpg"><img class="alignnone size-medium wp-image-17579" title="snapshot20091126223213" src="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091126223213.jpg?w=300" alt="" width="300" height="225" /></a><a href="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091126223420.jpg"><img class="alignnone size-medium wp-image-17580" title="snapshot20091126223420" src="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091126223420.jpg?w=300" alt="" width="300" height="225" /></a><a href="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091126223430.jpg"><img class="alignnone size-medium wp-image-17581" title="snapshot20091126223430" src="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091126223430.jpg?w=300" alt="" width="300" height="225" /></a><a href="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091126223916.jpg"><img class="alignnone size-medium wp-image-17582" title="snapshot20091126223916" src="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091126223916.jpg?w=300" alt="" width="300" height="225" /></a></strong></span></p>
<p><span style="color:#ff0000;"><strong>Other screenshots</strong></span></p>
<p><span style="color:#ff0000;"><strong><a href="http://kirayamato04.wordpress.com/files/2009/11/thumbs20091126224240.jpg"><img class="alignnone size-full wp-image-17583" title="thumbs20091126224240" src="http://kirayamato04.wordpress.com/files/2009/11/thumbs20091126224240.jpg" alt="" width="655" height="490" /></a><br />
</strong></span></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Generate Secure Passwords with Pwgen]]></title>
<link>http://vacariu.wordpress.com/2009/11/25/generate-secure-passwords-with-pwgen/</link>
<pubDate>Wed, 25 Nov 2009 21:15:54 +0000</pubDate>
<dc:creator>Vlad</dc:creator>
<guid>http://vacariu.wordpress.com/2009/11/25/generate-secure-passwords-with-pwgen/</guid>
<description><![CDATA[Everyone uses passwords. Be it for online accounts or local computer accounts, they must be secure. ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Everyone uses passwords. Be it for online accounts or local computer accounts, they must be secure. The problem with the security is that it may be hard to remember complex passwords. That is where pwgen comes in.  It is a small command line utility that generates secure, memorable passwords. You can customize the password from being very memorable to being very secure. Pwgen allows you to do this by allowing you to specify whether to include numbers, capital letters, vowels, and special symbols.</p>
<ol>
<li>Installing in Ubuntu is as simple as opening Synaptic <em>(System&#62;Administration&#62;Synaptic)</em> and installing the <code>pwgen</code> package or typing in a Terminal:</li>
<p><code>sudo apt-get install pwgen</code></p>
<li>To run it, start up Terminal <em>(Applications&#62;Accessories&#62;Terminal)</em> and type in <code>pwgen</code>. This will generate a bunch of passwords using the default settings:</li>
<p><code>oloo6Xu8 ohjup8Oo Ain1ohxi chov7Shi<br />
oGh4io5o Tooshu0u iebae6iZ gachae3O<br />
...<br />
Ahsh1ais Jee0eeSh Iene0naa Iefo1tav</code></p>
<li>To change the settings run pwgen with different parameters:</li>
<p><code>-c</code> &#62;&#62; <em>Include at least one capital letter in the password</em><br />
<code>-A</code> &#62;&#62; <em>Don&#8217;t include capital letters in the password</em><br />
<code>-0</code> &#62;&#62; <em>Don&#8217;t include numbers in the password</em><br />
<code>-y</code> &#62;&#62; <em>Include at least one special symbol in the password</em></p>
<p><em>Example:</em><br />
<code>pwgen -A</code><br />
<code>oox4xeit eihikao8 iov6oong iphith7e<br />
shairai0 so4uhau4 see1maep oo4ookei<br />
...<br />
wieh3yai nei9gie6 yoogahw7 ieve8oov</code></p>
<li>To see all the available options, type: <code>pwgen --help</code></li>
</ol>
<p>The official site for the program is: <a href="http://pwgen.sourceforge.net/">http://pwgen.sourceforge.net/</a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Cowboy Ninja Viking #2 - Review]]></title>
<link>http://weeklycomicbookreview.com/2009/11/25/cowboy-ninja-viking-2-review/</link>
<pubDate>Wed, 25 Nov 2009 20:36:18 +0000</pubDate>
<dc:creator>tonyrak</dc:creator>
<guid>http://weeklycomicbookreview.com/2009/11/25/cowboy-ninja-viking-2-review/</guid>
<description><![CDATA[By AJ Lieberman (writer), Riley Rossmo (artist) The Story: Nix and the Cowboy Ninja Viking saddle up]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><img class="alignright" title="Cowboy Ninja Viking #2" src="http://2.bp.blogspot.com/_EanTJkodPJY/SoHuAhDMG-I/AAAAAAAABuQ/7r5FbQ0MiiA/s400/CNV-cover-issue2.jpg" alt="" width="318" height="478" /></p>
<p><em>By AJ Lieberman (writer), Riley Rossmo (artist)</em></p>
<p><strong>The Story: </strong>Nix and the Cowboy Ninja Viking saddle up and head out to Japan to take down Ammo, but the Triplet&#8217;s not going down without a fight, and may actually be serving a larger endgame than anyone realized.</p>
<p><strong>The Good: </strong>I&#8217;d read recently that <em>CNV</em> has been upgraded from a limited to an ongoing series, and I think that&#8217;s about the finest compliment you can pay a book like this. Lieberman and Rossmo have the makings of an insanely fun book on their hands here, and this issue just goes to show the last one wasn&#8217;t a fluke. Lieberman&#8217;s writing is smart and manic, gleefully chomping on bits of Tarantino dialogue and plot points from <em>Alias</em> and spitting the whole mess out on paper. You&#8217;d think that would make for a fairly disgusting, regurgitated mess, but you&#8217;d be wrong. These guys fully understand the genres and conventions they are exploiting, and they do it with a wink and a knowing smile. I like that this issue brought out Duncan&#8217;s character and made him more human, and I think the extent to which Lieberman can bring that out of Duncan will only fuel the success of this book. Rossmo&#8217;s art is perfect for <em>CNV</em>. I didn&#8217;t care for it one bit on <em>Proof</em>, but his frenzied style is exactly what this comic needs. Under Rossmo&#8217;s direction, the fight sequences between Cowboy Ninja Viking and Pirate Gladiator Oceanographer take on the kind of furious intensity worthy of only the finest summer blockbusters, know what I mean?</p>
<p><strong>The Not So Good: </strong>I&#8217;ve got two small issues that are still annoying me. The first is the use of the mono tones Rossmo uses to color the book. Last month it was blue, this month it&#8217;s red. Is it going to be green next month? Purple? Don&#8217;t know, and I don&#8217;t care, because frankly I think Rossmo&#8217;s art here, as well as the overall design of the book, is strong enough that it doesn&#8217;t need any color at all. The tones are an eye sore, but I don&#8217;t expect that to change. Also, I&#8217;m still not convinced yet that this idea of the Triplets is anything more than a gag. I&#8217;m sure this is a point Lieberman will address in forthcoming issues so I&#8217;m more than willing to ride this one out and see where it takes me.</p>
<p><strong>Conclusion: </strong>Is there a point to teaching each aspect of a person suffering from Multiple Personality Disorder how to be an assassin, or does it just make for some fun, brutal storytelling? I&#8217;m not sure yet, but I do know that I&#8217;m having a good time reading this comic, and at the end of the day isn&#8217;t that what counts?</p>
<p><strong>Grade: B</strong></p>
<p>-Tony Rakittke</p>
<p>&#160;</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[queens blade dvd 6 specials [ecchi]]]></title>
<link>http://kirayamato04.wordpress.com/2009/11/25/queens-blade-dvd-6-specials-ecchi/</link>
<pubDate>Wed, 25 Nov 2009 17:11:25 +0000</pubDate>
<dc:creator>kirayamato04</dc:creator>
<guid>http://kirayamato04.wordpress.com/2009/11/25/queens-blade-dvd-6-specials-ecchi/</guid>
<description><![CDATA[LOL, was hoping they all are going to strip naked together since all of them are in their bikinis. D]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><a href="http://kirayamato04.wordpress.com/files/2009/11/qb-sp6-header.jpg"><img class="alignnone size-full wp-image-17521" title="qb sp6 header" src="http://kirayamato04.wordpress.com/files/2009/11/qb-sp6-header.jpg" alt="" width="75" height="75" /></a></p>
<p><a href="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091125233601.jpg"><img class="alignnone size-full wp-image-17522" title="snapshot20091125233601" src="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091125233601.jpg" alt="" width="655" height="368" /></a></p>
<p>LOL, was hoping they all are going to strip naked together since all of them are in their bikinis. Dunno whether this is the last part of the OVA series, but dont worry since there will be more when its second season dvd is out <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Download link <a href="http://www.megaupload.com/?d=7DL27JUX"><span style="text-decoration:underline;"><span style="color:#ff0000;"><strong>HERE</strong></span></span></a></p>
<p><span style="color:#ff0000;"><strong>Ecchi scenes</strong></span></p>
<p><a href="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091125233749.jpg"><img class="alignnone size-full wp-image-17524" title="snapshot20091125233749" src="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091125233749.jpg" alt="" width="655" height="368" /></a><a href="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091125233821.jpg"><img class="alignnone size-full wp-image-17525" title="snapshot20091125233821" src="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091125233821.jpg" alt="" width="655" height="368" /></a><a href="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091125233838.jpg"><img class="alignnone size-full wp-image-17526" title="snapshot20091125233838" src="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091125233838.jpg" alt="" width="655" height="368" /></a></p>
<p><span style="color:#ff0000;"><strong>Other screenshots</strong></span></p>
<p><a href="http://kirayamato04.wordpress.com/files/2009/11/thumbs20091125233917.jpg"><img class="alignnone size-full wp-image-17527" title="thumbs20091125233917" src="http://kirayamato04.wordpress.com/files/2009/11/thumbs20091125233917.jpg" alt="" width="655" height="367" /></a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[IPFW-Advanced-Supplement-HOWTO]]></title>
<link>http://ltphong.wordpress.com/2009/11/24/ipfw-advanced-supplement-howto/</link>
<pubDate>Tue, 24 Nov 2009 10:20:27 +0000</pubDate>
<dc:creator>anhptnn</dc:creator>
<guid>http://ltphong.wordpress.com/2009/11/24/ipfw-advanced-supplement-howto/</guid>
<description><![CDATA[&nbsp; IPFW:check-state/keep-state advanced stateful rules. By Joe Barbish  07/22/2002  All rights r]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>&#160;</p>
<div id="_mcePaste">IPFW:check-state/keep-state advanced stateful rules.</div>
<div id="_mcePaste">By Joe Barbish  07/22/2002  All rights reserved.</div>
<div id="_mcePaste">As most new ipfw users, I had a typical ipfw rules file built from the simple stateful rules in rc.firewall. I had originally been using user ppp with it&#8217;s internal Nat function, but went to natd as the simple stateful type in rc.firewall showed. Since the sample rc.firewall (simple) was pretty much just what I wanted to do, I just assumed this was the correct and proper way, so I cut out the simple type code from rc.firewall to create my own ipfw firewall rules. In searching FBSD and the many sites found by google search I saw many many other people before me had done the same thing. From a technical point of view the whole rc.firewall file is based on simple stateful rules using setup/established with some stateless rules thrown in. As a new ipfw user I did not know the difference and the comments sure did not call out the difference.</div>
<div id="_mcePaste">When I tried to change my simple stateful [established/setup] to advanced stateful [check-state/keep-state] rules, I kept having trouble with ip address being mismatched. Technically the mismatches showed up in /var/log/security as packets that got denied by the (default deny everything rule) for all packets that reach the end of the rule set with out matching any rule. Configuration looked like this.</div>
<div id="_mcePaste">Divert natd (network address translation)</div>
<div id="_mcePaste">(</div>
<div id="_mcePaste">(</div>
<div id="_mcePaste">LAN PC&#8217;s  &#60; &#8212; &#62; IPFW  &#60; &#8212; &#62;  internet</div>
<div id="_mcePaste">Private IP     advanced        public ip</div>
<div id="_mcePaste">Address      stateful rules    address</div>
<div id="_mcePaste"><!--more-->I spend weeks playing around trying different combinations of ipfw rules, but kept having mismatches in the dynamic table. Finally I removed the natd divert rule from the ipfw rules set and deactivated natd in rc.conf and re-activated ppp -Nat in rc.conf, and the advanced stateful [check-state/keep-state] rules started to work. Configuration looked like this.</div>
<div id="_mcePaste">LAN PC&#8217;s  &#60; &#8212; &#62; IPFW  &#60; &#8212; &#62;  user ppp -nat &#60; &#8212; &#62; internet</div>
<div id="_mcePaste">Private IP     advanced        network address      public ip</div>
<div id="_mcePaste">Address      stateful rules    translation           address</div>
<div id="_mcePaste">In this configuration IPFW only knows the private ip address on the LAN and the advanced stateful rules functioned just like described in the man documentation.</div>
<div id="_mcePaste">I wrote emails to the IPFW authors, gave then 2 documented examples of rules sets using exclusively advanced stateful rules and user ppp dial up ISP, the only difference was one used user ppp -nat and did not have the divert natd rulecd ../ one had the divert natd rule and no user ppp -nat and did not work. After much conflicting correspondences the results were that they were not going to do anything about it and I was left on my own.</div>
<div id="_mcePaste">The real problem here is ipfw advanced stateful rules are relatively new to the IPFW program (FBSD version 4.0 year 2000) and still does not fit cleanly into the divert natd program logic.</div>
<div id="_mcePaste">IPFW was originally designed as a firewall using stateless rules and/or simple stateful rules which is nothing more than an rules file coding logic technique based on the TP flags setup/established. Using these very primitive type of rules IPFW function&#8217;s correctly. When advanced stateful rules are used to tighten down the control of packets passing through the firewall by dynamically creating an internal rules table based on the by-directional exchange of packets which have to match the pre-known ip address, flow direction, and packet sequence numbers the divert natd function malfunctions. This problem is not limited to dial up internet access, but also occurs for &#8216;all ways on&#8217; environments (DSL, Cable, T1) with or without DHCP support.</div>
<div id="_mcePaste">Many users reach this point using the advanced check-state/keep-state stateful rules and go back to simple stateful rule set using established/setup simple because they can not get the advanced stateful rules to work. The rc.firewall file was created for FBSD 2.0 and has not been updated to exclusively utilize the advanced stateful rule set, so it is a very poor example to be using for your ipfw rules set.</div>
<div id="_mcePaste">Cable internet access became available in my area and I was forced to revisit the divert natd / advanced stateful rules again because (DSL, Cable, T1) &#8216;all ways on&#8217; environments normally use the ISP&#8217;s DHCP server to get it&#8217;s network configuration information so user ppp -nat is not used in this case. This meant I had to use the divert natd ipfw statement to provide the NAT function so I could use private ip address for my LAN because my cable ISP only issues one dynamic public ip address per customer account.</div>
<div id="_mcePaste">After many days of trial and error testing I finally found an rules coding logic which functioned correctly using exclusively advanced check-state/keep-state stateful rules and the divert natd rule statement. Normally the rule to allow the packets from local LAN Nic cards to pass through the ipfw firewall come before the divert natd rule as seen in the rc.firewall file. But for advanced stateful rules it has to be moved after the divert natd rule and the &#8216;keep-state&#8217; option has to be used so the dynamic rules table knows about the packet activity before they get passed through the rules file the second time. Technically this means each packet will have 2 sets of dynamic table rules, one set for the private Nic interface and one for the public Nic interface. This is an resource waste, decreases performance, and not necessary if the nat function is done outside of ipfw.</div>
<div id="_mcePaste">The simplest and best solution to the advanced stateful rules problem is to use &#8216;user ppp -nat&#8217; for all dialup ISP environments and have no divert natd rule in the ipfw rules file.  For all DSL, cable, and T1 connection where the ISP&#8217;s DHCP is used to configure FBSD&#8217;s public network you have to use the divert natd rule in your ipfw rules set followed by this rule for each private Nic interface,</div>
<div id="_mcePaste">&#8216;allow all from any to any via xl0 keep-state&#8217;</div>
<div id="_mcePaste">where xl0 is the private Nic card interface device name. This solution has been tested in FBSD version 4.5 &#38; 4.6.</div>
<div id="_mcePaste">The IPFW rules listed below are my current firewall rules file configured for a cable divert natd environment. Here are the matching /etc/rc.conf options</div>
<div id="_mcePaste">ifconfig_rl0=&#8221;DHCP&#8221;</div>
<div id="_mcePaste">ppp_enable=&#8221;NO&#8221;</div>
<div id="_mcePaste">natd_enable=&#8221;YES&#8221;</div>
<div id="_mcePaste">natd_interface=&#8221;rl0&#8243;</div>
<div id="_mcePaste">natd_flags=&#8221;-dynamic&#8221;</div>
<div id="_mcePaste">firewall_enable=&#8221;YES&#8221;</div>
<div id="_mcePaste">firewall_script=&#8221;/etc/ipfw.rules.conf&#8221;</div>
<div id="_mcePaste">For an user ppp dialup modem ISP connection using &#8216;divert natd&#8217; make</div>
<div id="_mcePaste">following changes to the ipfw rules below</div>
<div id="_mcePaste">Change  oif=&#8221;rl0&#8243;  to  oif=&#8221;tun0&#8243;</div>
<div id="_mcePaste">Here are the matching /etc/rc.conf options</div>
<div id="_mcePaste">#ifconfig_rl0=&#8221;DHCP&#8221;</div>
<div id="_mcePaste">ppp_enable=&#8221;YES&#8221;</div>
<div id="_mcePaste">ppp_mode=&#8221;ddial&#8221;</div>
<div id="_mcePaste">ppp_profile=&#8221;papchat&#8221;</div>
<div id="_mcePaste">ppp_nat=&#8221;NO&#8221;</div>
<div id="_mcePaste">natd_enable=&#8221;YES&#8221;</div>
<div id="_mcePaste">natd_interface=&#8221;tun0&#8243;</div>
<div id="_mcePaste">natd_flags=&#8221;-dynamic&#8221;</div>
<div id="_mcePaste">firewall_enable=&#8221;YES&#8221;</div>
<div id="_mcePaste">firewall_script=&#8221;/etc/ipfw.rules.conf</div>
<div id="_mcePaste">For an user ppp dialup modem ISP connection using &#8216;user ppp -nat&#8217; make</div>
<div id="_mcePaste">following changes to the ipfw rules below</div>
<div id="_mcePaste">Change  oif=&#8221;rl0&#8243;  to  oif=&#8221;tun0&#8243;</div>
<div id="_mcePaste">Add    $cmd 00130 allow all from any to any via xl0</div>
<div id="_mcePaste">Delete $cmd 00150 divert natd all from any to any via $oif</div>
<div id="_mcePaste">Delete $cmd 00210 allow all from any to any via xl0 keep-state</div>
<div id="_mcePaste">Here are the matching /etc/rc.conf options</div>
<div id="_mcePaste">#ifconfig_rl0=&#8221;DHCP&#8221;</div>
<div id="_mcePaste">ppp_enable=&#8221;YES&#8221;</div>
<div id="_mcePaste">ppp_mode=&#8221;ddial&#8221;</div>
<div id="_mcePaste">ppp_profile=&#8221;papchat&#8221;</div>
<div id="_mcePaste">ppp_nat=&#8221;YES&#8221;</div>
<div id="_mcePaste">natd_enable=&#8221;NO&#8221;</div>
<div id="_mcePaste">#natd_interface=&#8221;tun0&#8243;</div>
<div id="_mcePaste">#natd_flags=&#8221;-dynamic&#8221;</div>
<div id="_mcePaste">firewall_enable=&#8221;YES&#8221;</div>
<div id="_mcePaste">firewall_script=&#8221;/etc/ipfw.rules.conf</div>
<div id="_mcePaste">Following the rules file below are some other IP stack security options which are specified in the /etc/rc.conf file and kernel that you can use as a guide to configure your own world.</div>
<div id="_mcePaste">/etc/ipfw.rules.conf</div>
<div id="_mcePaste">###########################################################################</div>
<div id="_mcePaste">#</div>
<div id="_mcePaste"># Define IPFW firewall rules for gateway.poweruser.net</div>
<div id="_mcePaste"># 7/04/2002  Joe Barbish</div>
<div id="_mcePaste">#</div>
<div id="_mcePaste">#   Cable modem connection to ISP with dynamic IP addresses assigned.</div>
<div id="_mcePaste">#   Private Ip address used inside.</div>
<div id="_mcePaste">#   3 win98 boxes on LAN with DHCP used for auto private network configure.</div>
<div id="_mcePaste">#   Protect the whole private network from loss of service attacks</div>
<div id="_mcePaste">#   These rules can be reloaded with out rebooting by issuing this command</div>
<div id="_mcePaste">#   sh /etc/ipfw.rules.conf</div>
<div id="_mcePaste">#</div>
<div id="_mcePaste">#   The use of &#8216;me&#8217; in rules means IP address 127.0.0.0 localhost</div>
<div id="_mcePaste">#</div>
<div id="_mcePaste"># Firewall Policy Statement.</div>
<div id="_mcePaste">#   Each public internet function must be explicitly allowed by a rule.</div>
<div id="_mcePaste">#   Only valid response to the packets I&#8217;ve sent out are allowed in.</div>
<div id="_mcePaste">#   All packets must use the IPFW advanced &#8220;dynamic&#8221; rules function.</div>
<div id="_mcePaste">#   No state-less rules or simple-stateful rules are allowed to grant</div>
<div id="_mcePaste">#   internet function.</div>
<div id="_mcePaste">#############################################################################</div>
<div id="_mcePaste"># Flush out the list before we begin.</div>
<div id="_mcePaste">/sbin/ipfw -q -f flush</div>
<div id="_mcePaste"># Set rules command prefix</div>
<div id="_mcePaste"># The -q option on the command is for quite mode.</div>
<div id="_mcePaste"># Do not display rules as they load. Remove during development to see.</div>
<div id="_mcePaste">cmd=&#8221;/sbin/ipfw -q add&#8221;</div>
<div id="_mcePaste"># Set defaults</div>
<div id="_mcePaste"># set your outside interface network device name and</div>
<div id="_mcePaste"># domain name servers IP address to values issued by your ISP.</div>
<div id="_mcePaste">oif=&#8221;rl0&#8243;                  # Nic card to cable modem public internet connection</div>
<div id="_mcePaste">odns1=&#8221;24.50.201.66&#8243;       # ISP&#8217;s dns server 1 IP address</div>
<div id="_mcePaste">odns2=&#8221;24.52.201.66&#8243;       # ISP&#8217;s dns server 2 IP address</div>
<div id="_mcePaste"># Set these to your inside interface network and ip address range</div>
<div id="_mcePaste">iif=&#8221;xl0&#8243;                  # Nic card to private internal Local area network</div>
<div id="_mcePaste"># This is the start of the rules.</div>
<div id="_mcePaste"># All traffic coming in from the internet or</div>
<div id="_mcePaste"># leaving the local LAN start here</div>
<div id="_mcePaste"># Internal gateway housekeeping</div>
<div id="_mcePaste"># Rules # 100 exempt everything on localhost behind the firewall from this rules set.</div>
<div id="_mcePaste"># Rules # 110 &#38; 120 deny the reference to the localhost default IP address.</div>
<div id="_mcePaste">$cmd 00100 allow all from any to any via lo0  # allow all localhost</div>
<div id="_mcePaste">$cmd 00110 deny log  all from any to 127.0.0.0/8  # deny use of localhost IP</div>
<div id="_mcePaste">$cmd 00120 deny log  all from 127.0.0.0/8 to any  # deny use of localhost IP</div>
<div id="_mcePaste"># This does the  Network Address translation of every packet coming in</div>
<div id="_mcePaste"># or going out over the public internet.</div>
<div id="_mcePaste">$cmd 00150 divert natd all from any to any via $oif</div>
<div id="_mcePaste">#*** TESTING PURPOSES ONLY *** TESTING PURPOSES ONLY *** TESTING PURPOSES ONLY</div>
<div id="_mcePaste"># The following rule if un-commented will change the behavior of this</div>
<div id="_mcePaste"># Firewall rule set from closed to completely open, thus bypassing all of the</div>
<div id="_mcePaste"># following rules. This single rule is placed here for TESTING PURPOSES ONLY.</div>
<div id="_mcePaste">#$cmd 00160 allow log logamount 500 all from any to any</div>
<div id="_mcePaste">#$cmd 00161 allow all from any to any</div>
<div id="_mcePaste">########  control section  ############################################</div>
<div id="_mcePaste"># Start of IPFW advanced Stateful Filtering using &#8220;dynamic&#8221; rules.</div>
<div id="_mcePaste"># The check-state statement behavior is to match bi-directional packet traffic</div>
<div id="_mcePaste"># flow between source and destination using protocol/IP/port/sequence number.</div>
<div id="_mcePaste"># The dynamic rule has a limited lifetime which is controlled by a set of</div>
<div id="_mcePaste"># sysctl(8) variables. The lifetime is refreshed every time a matching</div>
<div id="_mcePaste"># packet is found in the dynamic table.</div>
<div id="_mcePaste"># Allow the packet through if it has previous been added to the</div>
<div id="_mcePaste"># the &#8220;dynamic&#8221; rules table by an allow keep-state statement.</div>
<div id="_mcePaste">$cmd 00200 check-state</div>
<div id="_mcePaste"># Run all private Lan packet traffic through the dynamic rules</div>
<div id="_mcePaste"># table so the IP address are in sync with Natd.</div>
<div id="_mcePaste">$cmd 00210 allow all from any to any via xl0 keep-state</div>
<div id="_mcePaste"># Deny all fragments as bogus packets</div>
<div id="_mcePaste">$cmd 00250 deny all from any to any frag in via $oif</div>
<div id="_mcePaste"># Deny  ACK packets that did not match the dynamic rule table</div>
<div id="_mcePaste">$cmd 00260 deny tcp from any to any established in via $oif</div>
<div id="_mcePaste">########  outbound section  ############################################</div>
<div id="_mcePaste"># Interrogate packets originating from behind the firewall, private net.</div>
<div id="_mcePaste"># Upon a rule match, it&#8217;s keep-state option will create a dynamic rule.</div>
<div id="_mcePaste"># Allow out non-secure standard www function</div>
<div id="_mcePaste">$cmd 00300 allow tcp  from any to any 80  out via $oif setup keep-state</div>
<div id="_mcePaste"># Allow out secure www function https over TLS SSL</div>
<div id="_mcePaste">$cmd 00301 allow tcp  from any to any 443 out via $oif setup keep-state</div>
<div id="_mcePaste"># Allow out access to my ISP&#8217;s Domain name server.</div>
<div id="_mcePaste">$cmd 00310 allow tcp  from any to $odns1 53 out via $oif setup keep-state</div>
<div id="_mcePaste">$cmd 00311 allow udp  from any to $odns1 53 out via $oif keep-state</div>
<div id="_mcePaste">$cmd 00315 allow tcp  from any to $odns2 53 out via $oif setup keep-state</div>
<div id="_mcePaste">$cmd 00316 allow udp  from any to $odns2 53 out via $oif keep-state</div>
<div id="_mcePaste"># Allow out send &#38; get email function</div>
<div id="_mcePaste">$cmd 00330 allow tcp from any to any 25  out via $oif setup keep-state</div>
<div id="_mcePaste">$cmd 00331 allow tcp from any to any 110 out via $oif setup keep-state</div>
<div id="_mcePaste"># Allow out &#38; in FBSD (make install &#38; CVSUP)  functions</div>
<div id="_mcePaste"># Basically give user id root  &#8221;GOD&#8221;  privileges.</div>
<div id="_mcePaste">$cmd 00340 allow tcp from me to any out via $oif setup keep-state uid root</div>
<div id="_mcePaste"># Allow out &#38; in console traceroot command</div>
<div id="_mcePaste">$cmd 00342 allow udp from me to any 33435-33500 out via $oif keep-state</div>
<div id="_mcePaste">$cmd 00343 allow log icmp from any to me icmptype 3,11 in via $oif limit src-addr 2</div>
<div id="_mcePaste"># Allow out ping</div>
<div id="_mcePaste">$cmd 00350 allow icmp from any to any   out via $oif keep-state</div>
<div id="_mcePaste">############ passive FTP rules to public Internet ######</div>
<div id="_mcePaste"># Allow passive FTP control channel 21 &#38; data high ports</div>
<div id="_mcePaste">$cmd 00375 allow tcp  from me to any 21  out via $oif setup keep-state</div>
<div id="_mcePaste">$cmd 00376 allow tcp  from me to any 10000-65000  out via $oif setup keep-state</div>
<div id="_mcePaste">############ End of passive FTP rules to public Internet ######</div>
<div id="_mcePaste"># Allow out ssh</div>
<div id="_mcePaste">$cmd 00380 allow tcp  from any to any 22   out via $oif setup keep-state</div>
<div id="_mcePaste"># Allow out TELNET</div>
<div id="_mcePaste">$cmd 00390 allow tcp  from any to any 23    out via $oif setup keep-state</div>
<div id="_mcePaste"># Allow out Network Time Protocol (NTP) queries</div>
<div id="_mcePaste">#$cmd 00394 allow tcp  from any to any 123   out via $oif setup keep-state</div>
<div id="_mcePaste">#$cmd 00395 allow udp  from any to any 123   out via $oif keep-state</div>
<div id="_mcePaste"># Allow out Time</div>
<div id="_mcePaste">$cmd 00396 allow tcp  from any to any 37    out via $oif setup keep-state</div>
<div id="_mcePaste">$cmd 00397 allow udp  from any to any 37    out via $oif keep-state</div>
<div id="_mcePaste"># Allow out ident</div>
<div id="_mcePaste">#$cmd 00400 allow tcp  from any to any 113   out via $oif setup keep-state</div>
<div id="_mcePaste">#$cmd 00401 allow udp  from any to any 113   out via $oif keep-state</div>
<div id="_mcePaste"># Allow out IRC</div>
<div id="_mcePaste">#$cmd 00410 allow tcp  from any to any 194   out via $oif setup keep-state</div>
<div id="_mcePaste">#$cmd 00411 allow udp  from any to any 194   out via $oif keep-state</div>
<div id="_mcePaste"># Allow out whois</div>
<div id="_mcePaste">$cmd 00412 allow tcp  from any to any 43    out via $oif setup keep-state</div>
<div id="_mcePaste">$cmd 00413 allow udp  from any to any 43    out via $oif keep-state</div>
<div id="_mcePaste"># Allow out whois++</div>
<div id="_mcePaste">#$cmd 00415 allow tcp  from any to any 63    out via $oif setup keep-state</div>
<div id="_mcePaste">#$cmd 00416 allow udp  from any to any 63    out via $oif keep-state</div>
<div id="_mcePaste"># Allow out finger</div>
<div id="_mcePaste">#$cmd 00420 allow tcp  from any to any 79    out via $oif setup keep-state</div>
<div id="_mcePaste">#$cmd 00421 allow udp  from any to any 79    out via $oif keep-state</div>
<div id="_mcePaste"># Allow out nntp news</div>
<div id="_mcePaste">$cmd 00425 allow tcp  from any to any 119   out via $oif setup keep-state</div>
<div id="_mcePaste">$cmd 00426 allow udp  from any to any 119   out via $oif keep-state</div>
<div id="_mcePaste"># Allow out gopher</div>
<div id="_mcePaste">#$cmd 00430 allow tcp  from any to any 70    out via $oif setup keep-state</div>
<div id="_mcePaste">#$cmd 00431 allow udp  from any to any 70    out via $oif keep-state</div>
<div id="_mcePaste">########  inbound section  ############################################</div>
<div id="_mcePaste"># Interrogate packets originating from in front of the firewall, public net.</div>
<div id="_mcePaste"># Place statements here to allow public requests for service.</div>
<div id="_mcePaste"># Allow in www</div>
<div id="_mcePaste">$cmd 00600 allow tcp from any to any 80 in via $oif setup keep-state limit src-addr 4</div>
<div id="_mcePaste"># Allow  TCP FTP control channel in &#38; data channel out</div>
<div id="_mcePaste">$cmd 00610 allow tcp from any to me 21  in via $oif setup keep-state limit src-addr 4</div>
<div id="_mcePaste">$cmd 00611 allow tcp from any 20 to any 1024-49151 out via $oif setup keep limit src-addr 4</div>
<div id="_mcePaste"># Allow in ssh function</div>
<div id="_mcePaste">$cmd 00620 allow log tcp from any to me 22 in via $oif setup keep-state limit src-addr 4</div>
<div id="_mcePaste"># Allow in Telnet</div>
<div id="_mcePaste">$cmd 00630 allow tcp from any to me 23 in via $oif setup keep-state limit src-addr 4</div>
<div id="_mcePaste"># Allow in Ping</div>
<div id="_mcePaste">$cmd 00635 allow log icmp from any to me icmptype 0,8  in via $oif</div>
<div id="_mcePaste"># This sends a RESET to all ident packets.</div>
<div id="_mcePaste">#$cmd 00640 reset log tcp from any to me 113  in via $oif limit src-addr 4</div>
<div id="_mcePaste">########  Catch all section  ############################################</div>
<div id="_mcePaste">#### Start Special rules for Adelphia Cable  #########################</div>
<div id="_mcePaste">#valid dhcp broadcast from Adelphia dhcp server</div>
<div id="_mcePaste">$cmd 00700 allow UDP from 0.0.0.0 68 to 255.255.255.255 67 in via rl0</div>
<div id="_mcePaste"># valid FBSD dhcp client request for dns config info</div>
<div id="_mcePaste">$cmd 00701 allow udp from me 68 to $odns1 67      out via rl0</div>
<div id="_mcePaste">$cmd 00702 allow udp from $odns1 67 to me 68       in via rl0</div>
<div id="_mcePaste"># invalid bogus packets on Adelphia Cable network.</div>
<div id="_mcePaste">$cmd 00705 deny udp from any to 255.255.255.255    in via rl0</div>
<div id="_mcePaste">$cmd 00706 deny udp from 0.0.0.0 to any            in via rl0</div>
<div id="_mcePaste">#               P:2</div>
<div id="_mcePaste">$cmd 00707 deny all  from 192.168.100.1 to 224.0.0.1   in via rl0</div>
<div id="_mcePaste">$cmd 00708 deny udp from $odns1 53 to me           in via rl0</div>
<div id="_mcePaste">#### End Special rules for Adelphia Cable  #########################</div>
<div id="_mcePaste"># Stop &#38; log external redirect requests.</div>
<div id="_mcePaste">$cmd 00720 deny log icmp from any to any icmptype 5  in via $oif</div>
<div id="_mcePaste"># Stop &#38; log spoofing Attack attempts.</div>
<div id="_mcePaste"># Examine incoming traffic for packets with both a source and destination</div>
<div id="_mcePaste"># IP address in my local domain as per CIAC prevention alert.</div>
<div id="_mcePaste">$cmd 00730 deny log ip from me to me  in via $oif</div>
<div id="_mcePaste"># Stop &#38; log ping echo attacks</div>
<div id="_mcePaste"># stop echo reply (ICMP type 0), and echo request (type 8).</div>
<div id="_mcePaste">$cmd 00740 deny log icmp from any to me icmptype 0,8  in via $oif</div>
<div id="_mcePaste"># Reject &#38; Log all setup of tcp incoming connections from the outside</div>
<div id="_mcePaste">$cmd 00750 deny log tcp from any to any  setup  in via $oif</div>
<div id="_mcePaste"># Reject &#38; Log all netbios service. 137=name, 138=datagram, 139=session</div>
<div id="_mcePaste"># netbios is ms/windows sharing services.</div>
<div id="_mcePaste">$cmd 00760 deny log tcp from any to any 137,138,139  in via $oif</div>
<div id="_mcePaste">$cmd 00761 deny log udp from any to any 137,138,139  in via $oif</div>
<div id="_mcePaste"># Reject all port 80 http packets that fall through to here.</div>
<div id="_mcePaste"># These packets are auto spawn web page requests from within</div>
<div id="_mcePaste"># original web page request.</div>
<div id="_mcePaste">$cmd 00770 deny  tcp from any to any 80   out via $oif</div>
<div id="_mcePaste"># Everything else is denied by default</div>
<div id="_mcePaste"># deny and log all packets that fell through to see what they are</div>
<div id="_mcePaste">$cmd 00950 deny log logamount 500 all from any to any</div>
<div id="_mcePaste">################## End Of IPFW Firewall Rules  #########################</div>
<div id="_mcePaste">Other IP stack security options.</div>
<div id="_mcePaste">The main run control configuration file /etc/rc.conf has a whole group of run time security options to control the flood of falsified packets entering the system which get control before IPFW evens knows their coming in.</div>
<div id="_mcePaste">The following is from my rc.conf file.</div>
<div id="_mcePaste"># Required IPFW  kernel firewall support</div>
<div id="_mcePaste"># For more info see</div>
<div id="_mcePaste"># www.onlamp.com/pub/a/bsd/2001/04/25/FreeBSD_Basics.html</div>
<div id="_mcePaste">#</div>
<div id="_mcePaste">firewall_enable=&#8221;YES&#8221;                 # Start daemon</div>
<div id="_mcePaste">firewall_script=&#8221;/etc/ipfw.stdrules&#8221;  # run my custom rules if present</div>
<div id="_mcePaste"># sh /etc/ipfw.stdrules will load</div>
<div id="_mcePaste"># new rules file after editing.</div>
<div id="_mcePaste">filewall_logging=&#8221;YES&#8221;                # Enable events logging</div>
<div id="_mcePaste"># Extra firewalling options</div>
<div id="_mcePaste">log_in_vain=&#8221;YES&#8221;           # NO is default. YES enables logging of</div>
<div id="_mcePaste"># connection attempts to ports that have no</div>
<div id="_mcePaste"># listening socket on them. Put msg on consol</div>
<div id="_mcePaste">icmp_drop_redirect=&#8221;YES&#8221;    # YES will cause the kernel to ignore</div>
<div id="_mcePaste"># ICMP REDIRECT packets.</div>
<div id="_mcePaste">tcp_drop_synfin=&#8221;YES&#8221;       # YES will cause the kernel to ignore TCP</div>
<div id="_mcePaste"># frames that have both the SYN and FIN flags</div>
<div id="_mcePaste"># set. Only available if the kernel was built</div>
<div id="_mcePaste"># with the TCP_DROP_SYNFIN option.</div>
<div id="_mcePaste"># change to NO if web server behind firewall.</div>
<div id="_mcePaste">tcp_restrict_rst=&#8221;YES&#8221;      # YES will cause the kernel to refrain from</div>
<div id="_mcePaste"># emitting TCP RST frames in response to</div>
<div id="_mcePaste"># invalid TCP packets (e.g., frames destined</div>
<div id="_mcePaste"># for closed ports). This option is only</div>
<div id="_mcePaste"># available if the kernel was built with the</div>
<div id="_mcePaste"># TCP_RESTRICT_RST option.</div>
<div id="_mcePaste">syslogd_flags=&#8221;-ss&#8221;         # Don&#8217;t use network sockets so portscan</div>
<div id="_mcePaste"># will not find (security tip)</div>
<div id="_mcePaste">portmap_enable=&#8221;NO&#8221;         # Don&#8217;t allow nfs portmapper (security tip)</div>
<div id="_mcePaste">The  log_in_vain=&#8221;YES&#8221; option will post a message to the root console screen every time it stops a packet. This became very annoying so I changed the syslog to put these messages in the security log. All the ipfw messages that were going to the /var/log/security file was also going to the /var/log/message file. I did not think it was wise to be posting ipfw messages in more that one place, so I stopped them from going to the message file.  Below are the lines I changed in /etc/syslog.conf to make this happen.</div>
<div id="_mcePaste">The original lines.</div>
<div id="_mcePaste">*.err;kern.debug;auth.notice;mail.crit		/dev/console</div>
<div id="_mcePaste">*.notice;kern.debug;lpr.info;mail.crit;news.err	/var/log/messages</div>
<div id="_mcePaste">security.*					/var/log/security</div>
<div id="_mcePaste">replaced by this lines</div>
<div id="_mcePaste"># kern.info is where the log_in_vain messages come from. The following</div>
<div id="_mcePaste"># will stop the log_in_vain messages from coming out on root console &#38;</div>
<div id="_mcePaste"># put them in the security log.  2/20/2002 Joe Barbish</div>
<div id="_mcePaste"># remove kern.info messages from /dev/console &#38; /var/log/messages</div>
<div id="_mcePaste"># and put them into /var/log/security.</div>
<div id="_mcePaste">*.err;auth.notice;mail.crit			/dev/console</div>
<div id="_mcePaste">kern.notice;kern.=debug				/dev/console</div>
<div id="_mcePaste">*.notice;lpr.info;mail.crit;news.err	/var/log/messages</div>
<div id="_mcePaste">kern.notice;kern.=debug				/var/log/messages</div>
<div id="_mcePaste">security.*;kern.=info				/var/log/security</div>
<div id="_mcePaste">Another very obscure option is blackhole, new in FBSD 4.4</div>
<div id="_mcePaste">The blackhole sysctl(8) is used to control system behavior when connection requests are received on TCP or UDP ports where there is no socket listening.</div>
<div id="_mcePaste">Normal behavior, when a TCP SYN segment is received on a port where there is no socket accepting connections, is for the system to return a RST segment, and drop the connection. The connecting system will see this as a &#8220;Connection reset by peer&#8221;.</div>
<div id="_mcePaste">By setting the TCP blackhole MIB to a numeric value of 1, the incoming SYN segment is merely dropped, and no RST is sent, making the system appear as a blackhole.</div>
<div id="_mcePaste">By setting the MIB value to 2, any segment arriving on a closed port is dropped without returning a RST.  This provides some degree of protection against stealth port scans.</div>
<div id="_mcePaste">In the UDP instance, enabling blackhole behavior turns off the sending of an ICMP port unreachable message in response to a UDP datagram which arrives on a port where there is no socket listening. It must be noted that this behavior will prevent remote systems from running traceroute(8) to a system.</div>
<div id="_mcePaste">The blackhole behavior is useful to slow down anyone who is port scanning a system, attempting to detect vulnerable services on a system. It could potentially also slow down someone who is attempting a denial of service attack.</div>
<div id="_mcePaste">The sysctl net.inet.tcp.blackhole=2 command can be entered from the command line and will be in effect until the next boot. The sysctl command can also be in the /etc/sysctl.conf file (which you must create) and if present will be activated during the boot process. Read man sysctl for command format to display settings of this option and some others that allow you to change to default dynamic rules time out values. For the really advanced technical ipfw user check out ipfw user patches at  http://people.freebsd.org/~cjc/</div>
<div id="_mcePaste">See http://bsdvault.net/sections.php?op=viewarticle&#38;artid=57 for info on sysctl.</div>
<div id="_mcePaste">See http://www.practicallynetworked.com/sharing/app_port_list.htm  for a list of ports used by different applications.</div>
<div id="_mcePaste">/etc/sysctl.conf  file contents</div>
<div id="_mcePaste">sysctl net.inet.tcp.blackhole=2</div>
<div id="_mcePaste">sysctl net.inet.udp.blackhole=1</div>
<div id="_mcePaste">Here are the statements for the kernel source to include IPFW in the kernel.</div>
<div id="_mcePaste">#</div>
<div id="_mcePaste"># The following options add sysctl variables for controlling how certain</div>
<div id="_mcePaste"># TCP packets are handled by the kernel.</div>
<div id="_mcePaste">#</div>
<div id="_mcePaste">options	        ICMP_BANDLIM	        # Enables icmp error response bandwidth</div>
<div id="_mcePaste"># limiting. This will help protect from</div>
<div id="_mcePaste"># D.O.S. packet attacks.</div>
<div id="_mcePaste">option          TCP_DROP_SYNFIN       # Adds support for ignoring TCP packets</div>
<div id="_mcePaste"># with SYN+FIN. This prevents nmap from</div>
<div id="_mcePaste"># identifying the TCP/IP stack, but</div>
<div id="_mcePaste"># breaks support for RFC1644 extensions</div>
<div id="_mcePaste"># &#38; is not recommended for web servers.</div>
<div id="_mcePaste"># not supported in 4.4 &#38; newer</div>
<div id="_mcePaste">#option          TCP_RESTRICT_RST     # Adds support for blocking emission of</div>
<div id="_mcePaste"># TCP RST packets. Useful in limiting</div>
<div id="_mcePaste"># SYN floods &#38; port scanning.</div>
<div id="_mcePaste"># Enable kernel IPFW, the FBSD supplied packet filtering and accounting system</div>
<div id="_mcePaste"># Has a FBSD supplied user land control utility ipfw.</div>
<div id="_mcePaste">#</div>
<div id="_mcePaste">option 		IPFIREWALL                  # Adds filtering code into kernel</div>
<div id="_mcePaste">option		IPFIREWALL_VERBOSE          # enable logging thru syslogd(8)</div>
<div id="_mcePaste">option		IPFIREWALL_VERBOSE_LIMIT=10 # stop attack via syslog flooding</div>
<div id="_mcePaste">option         IPFIREWALL_IPDIVERT         # Enable NATD divert function</div>
<p>IPFW:check-state/keep-state advanced stateful rules.  By Joe Barbish  07/22/2002  All rights reserved.<br />
As most new ipfw users, I had a typical ipfw rules file built from the simple stateful rules in rc.firewall. I had originally been using user ppp with it&#8217;s internal Nat function, but went to natd as the simple stateful type in rc.firewall showed. Since the sample rc.firewall (simple) was pretty much just what I wanted to do, I just assumed this was the correct and proper way, so I cut out the simple type code from rc.firewall to create my own ipfw firewall rules. In searching FBSD and the many sites found by google search I saw many many other people before me had done the same thing. From a technical point of view the whole rc.firewall file is based on simple stateful rules using setup/established with some stateless rules thrown in. As a new ipfw user I did not know the difference and the comments sure did not call out the difference.<br />
When I tried to change my simple stateful [established/setup] to advanced stateful [check-state/keep-state] rules, I kept having trouble with ip address being mismatched. Technically the mismatches showed up in /var/log/security as packets that got denied by the (default deny everything rule) for all packets that reach the end of the rule set with out matching any rule. Configuration looked like this.<br />
Divert natd (network address translation)                   (                   (LAN PC&#8217;s  &#60; &#8212; &#62; IPFW  &#60; &#8212; &#62;  internetPrivate IP     advanced        public ip  Address      stateful rules    address<br />
I spend weeks playing around trying different combinations of ipfw rules, but kept having mismatches in the dynamic table. Finally I removed the natd divert rule from the ipfw rules set and deactivated natd in rc.conf and re-activated ppp -Nat in rc.conf, and the advanced stateful [check-state/keep-state] rules started to work. Configuration looked like this.</p>
<p>LAN PC&#8217;s  &#60; &#8212; &#62; IPFW  &#60; &#8212; &#62;  user ppp -nat &#60; &#8212; &#62; internetPrivate IP     advanced        network address      public ip  Address      stateful rules    translation           address<br />
In this configuration IPFW only knows the private ip address on the LAN and the advanced stateful rules functioned just like described in the man documentation.<br />
I wrote emails to the IPFW authors, gave then 2 documented examples of rules sets using exclusively advanced stateful rules and user ppp dial up ISP, the only difference was one used user ppp -nat and did not have the divert natd rulecd ../ one had the divert natd rule and no user ppp -nat and did not work. After much conflicting correspondences the results were that they were not going to do anything about it and I was left on my own.<br />
The real problem here is ipfw advanced stateful rules are relatively new to the IPFW program (FBSD version 4.0 year 2000) and still does not fit cleanly into the divert natd program logic.<br />
IPFW was originally designed as a firewall using stateless rules and/or simple stateful rules which is nothing more than an rules file coding logic technique based on the TP flags setup/established. Using these very primitive type of rules IPFW function&#8217;s correctly. When advanced stateful rules are used to tighten down the control of packets passing through the firewall by dynamically creating an internal rules table based on the by-directional exchange of packets which have to match the pre-known ip address, flow direction, and packet sequence numbers the divert natd function malfunctions. This problem is not limited to dial up internet access, but also occurs for &#8216;all ways on&#8217; environments (DSL, Cable, T1) with or without DHCP support.<br />
Many users reach this point using the advanced check-state/keep-state stateful rules and go back to simple stateful rule set using established/setup simple because they can not get the advanced stateful rules to work. The rc.firewall file was created for FBSD 2.0 and has not been updated to exclusively utilize the advanced stateful rule set, so it is a very poor example to be using for your ipfw rules set.<br />
Cable internet access became available in my area and I was forced to revisit the divert natd / advanced stateful rules again because (DSL, Cable, T1) &#8216;all ways on&#8217; environments normally use the ISP&#8217;s DHCP server to get it&#8217;s network configuration information so user ppp -nat is not used in this case. This meant I had to use the divert natd ipfw statement to provide the NAT function so I could use private ip address for my LAN because my cable ISP only issues one dynamic public ip address per customer account.<br />
After many days of trial and error testing I finally found an rules coding logic which functioned correctly using exclusively advanced check-state/keep-state stateful rules and the divert natd rule statement. Normally the rule to allow the packets from local LAN Nic cards to pass through the ipfw firewall come before the divert natd rule as seen in the rc.firewall file. But for advanced stateful rules it has to be moved after the divert natd rule and the &#8216;keep-state&#8217; option has to be used so the dynamic rules table knows about the packet activity before they get passed through the rules file the second time. Technically this means each packet will have 2 sets of dynamic table rules, one set for the private Nic interface and one for the public Nic interface. This is an resource waste, decreases performance, and not necessary if the nat function is done outside of ipfw.<br />
The simplest and best solution to the advanced stateful rules problem is to use &#8216;user ppp -nat&#8217; for all dialup ISP environments and have no divert natd rule in the ipfw rules file.  For all DSL, cable, and T1 connection where the ISP&#8217;s DHCP is used to configure FBSD&#8217;s public network you have to use the divert natd rule in your ipfw rules set followed by this rule for each private Nic interface,  &#8217;allow all from any to any via xl0 keep-state&#8217;<br />
where xl0 is the private Nic card interface device name. This solution has been tested in FBSD version 4.5 &#38; 4.6.<br />
The IPFW rules listed below are my current firewall rules file configured for a cable divert natd environment. Here are the matching /etc/rc.conf optionsifconfig_rl0=&#8221;DHCP&#8221;ppp_enable=&#8221;NO&#8221;             natd_enable=&#8221;YES&#8221;natd_interface=&#8221;rl0&#8243;natd_flags=&#8221;-dynamic&#8221;firewall_enable=&#8221;YES&#8221;                 firewall_script=&#8221;/etc/ipfw.rules.conf&#8221;</p>
<p>For an user ppp dialup modem ISP connection using &#8216;divert natd&#8217; make following changes to the ipfw rules below   Change  oif=&#8221;rl0&#8243;  to  oif=&#8221;tun0&#8243;<br />
Here are the matching /etc/rc.conf options#ifconfig_rl0=&#8221;DHCP&#8221;ppp_enable=&#8221;YES&#8221;ppp_mode=&#8221;ddial&#8221;             ppp_profile=&#8221;papchat&#8221;        ppp_nat=&#8221;NO&#8221;                       natd_enable=&#8221;YES&#8221;natd_interface=&#8221;tun0&#8243;natd_flags=&#8221;-dynamic&#8221;firewall_enable=&#8221;YES&#8221;                 firewall_script=&#8221;/etc/ipfw.rules.conf</p>
<p>For an user ppp dialup modem ISP connection using &#8216;user ppp -nat&#8217; make following changes to the ipfw rules belowChange  oif=&#8221;rl0&#8243;  to  oif=&#8221;tun0&#8243;  Add    $cmd 00130 allow all from any to any via xl0Delete $cmd 00150 divert natd all from any to any via $oifDelete $cmd 00210 allow all from any to any via xl0 keep-state<br />
Here are the matching /etc/rc.conf options#ifconfig_rl0=&#8221;DHCP&#8221;ppp_enable=&#8221;YES&#8221;ppp_mode=&#8221;ddial&#8221;             ppp_profile=&#8221;papchat&#8221;        ppp_nat=&#8221;YES&#8221;                       natd_enable=&#8221;NO&#8221;#natd_interface=&#8221;tun0&#8243;#natd_flags=&#8221;-dynamic&#8221;firewall_enable=&#8221;YES&#8221;                 firewall_script=&#8221;/etc/ipfw.rules.conf</p>
<p>Following the rules file below are some other IP stack security options which are specified in the /etc/rc.conf file and kernel that you can use as a guide to configure your own world.<br />
/etc/ipfw.rules.conf############################################################################# Define IPFW firewall rules for gateway.poweruser.net # 7/04/2002  Joe Barbish  ##   Cable modem connection to ISP with dynamic IP addresses assigned.#   Private Ip address used inside.#   3 win98 boxes on LAN with DHCP used for auto private network configure. #   Protect the whole private network from loss of service attacks#   These rules can be reloaded with out rebooting by issuing this command#   sh /etc/ipfw.rules.conf##   The use of &#8216;me&#8217; in rules means IP address 127.0.0.0 localhost #   # Firewall Policy Statement.#   Each public internet function must be explicitly allowed by a rule.#   Only valid response to the packets I&#8217;ve sent out are allowed in.#   All packets must use the IPFW advanced &#8220;dynamic&#8221; rules function.#   No state-less rules or simple-stateful rules are allowed to grant#   internet function.#############################################################################<br />
# Flush out the list before we begin./sbin/ipfw -q -f flush<br />
# Set rules command prefix# The -q option on the command is for quite mode. # Do not display rules as they load. Remove during development to see.cmd=&#8221;/sbin/ipfw -q add&#8221;<br />
# Set defaults  # set your outside interface network device name and # domain name servers IP address to values issued by your ISP.</p>
<p>oif=&#8221;rl0&#8243;                  # Nic card to cable modem public internet connectionodns1=&#8221;24.50.201.66&#8243;       # ISP&#8217;s dns server 1 IP addressodns2=&#8221;24.52.201.66&#8243;       # ISP&#8217;s dns server 2 IP address<br />
# Set these to your inside interface network and ip address rangeiif=&#8221;xl0&#8243;                  # Nic card to private internal Local area network</p>
<p># This is the start of the rules. # All traffic coming in from the internet or# leaving the local LAN start here</p>
<p># Internal gateway housekeeping# Rules # 100 exempt everything on localhost behind the firewall from this rules set.# Rules # 110 &#38; 120 deny the reference to the localhost default IP address.$cmd 00100 allow all from any to any via lo0  # allow all localhost$cmd 00110 deny log  all from any to 127.0.0.0/8  # deny use of localhost IP $cmd 00120 deny log  all from 127.0.0.0/8 to any  # deny use of localhost IP</p>
<p># This does the  Network Address translation of every packet coming in# or going out over the public internet.<br />
$cmd 00150 divert natd all from any to any via $oif<br />
#*** TESTING PURPOSES ONLY *** TESTING PURPOSES ONLY *** TESTING PURPOSES ONLY# The following rule if un-commented will change the behavior of this# Firewall rule set from closed to completely open, thus bypassing all of the# following rules. This single rule is placed here for TESTING PURPOSES ONLY.#$cmd 00160 allow log logamount 500 all from any to any#$cmd 00161 allow all from any to any</p>
<p>########  control section  ############################################# Start of IPFW advanced Stateful Filtering using &#8220;dynamic&#8221; rules.# The check-state statement behavior is to match bi-directional packet traffic# flow between source and destination using protocol/IP/port/sequence number. # The dynamic rule has a limited lifetime which is controlled by a set of# sysctl(8) variables. The lifetime is refreshed every time a matching# packet is found in the dynamic table.<br />
# Allow the packet through if it has previous been added to the # the &#8220;dynamic&#8221; rules table by an allow keep-state statement. $cmd 00200 check-state<br />
# Run all private Lan packet traffic through the dynamic rules# table so the IP address are in sync with Natd.$cmd 00210 allow all from any to any via xl0 keep-state<br />
# Deny all fragments as bogus packets $cmd 00250 deny all from any to any frag in via $oif<br />
# Deny  ACK packets that did not match the dynamic rule table$cmd 00260 deny tcp from any to any established in via $oif</p>
<p>########  outbound section  ############################################# Interrogate packets originating from behind the firewall, private net.# Upon a rule match, it&#8217;s keep-state option will create a dynamic rule.<br />
# Allow out non-secure standard www function$cmd 00300 allow tcp  from any to any 80  out via $oif setup keep-state<br />
# Allow out secure www function https over TLS SSL$cmd 00301 allow tcp  from any to any 443 out via $oif setup keep-state<br />
# Allow out access to my ISP&#8217;s Domain name server. $cmd 00310 allow tcp  from any to $odns1 53 out via $oif setup keep-state $cmd 00311 allow udp  from any to $odns1 53 out via $oif keep-state$cmd 00315 allow tcp  from any to $odns2 53 out via $oif setup keep-state  $cmd 00316 allow udp  from any to $odns2 53 out via $oif keep-state<br />
# Allow out send &#38; get email function$cmd 00330 allow tcp from any to any 25  out via $oif setup keep-state$cmd 00331 allow tcp from any to any 110 out via $oif setup keep-state<br />
# Allow out &#38; in FBSD (make install &#38; CVSUP)  functions# Basically give user id root  &#8221;GOD&#8221;  privileges.$cmd 00340 allow tcp from me to any out via $oif setup keep-state uid root<br />
# Allow out &#38; in console traceroot command$cmd 00342 allow udp from me to any 33435-33500 out via $oif keep-state  $cmd 00343 allow log icmp from any to me icmptype 3,11 in via $oif limit src-addr 2<br />
# Allow out ping $cmd 00350 allow icmp from any to any   out via $oif keep-state<br />
############ passive FTP rules to public Internet ####### Allow passive FTP control channel 21 &#38; data high ports $cmd 00375 allow tcp  from me to any 21  out via $oif setup keep-state$cmd 00376 allow tcp  from me to any 10000-65000  out via $oif setup keep-state############ End of passive FTP rules to public Internet ######<br />
# Allow out ssh $cmd 00380 allow tcp  from any to any 22   out via $oif setup keep-state<br />
# Allow out TELNET $cmd 00390 allow tcp  from any to any 23    out via $oif setup keep-state<br />
# Allow out Network Time Protocol (NTP) queries #$cmd 00394 allow tcp  from any to any 123   out via $oif setup keep-state#$cmd 00395 allow udp  from any to any 123   out via $oif keep-state<br />
# Allow out Time $cmd 00396 allow tcp  from any to any 37    out via $oif setup keep-state$cmd 00397 allow udp  from any to any 37    out via $oif keep-state<br />
# Allow out ident#$cmd 00400 allow tcp  from any to any 113   out via $oif setup keep-state#$cmd 00401 allow udp  from any to any 113   out via $oif keep-state<br />
# Allow out IRC#$cmd 00410 allow tcp  from any to any 194   out via $oif setup keep-state#$cmd 00411 allow udp  from any to any 194   out via $oif keep-state<br />
# Allow out whois$cmd 00412 allow tcp  from any to any 43    out via $oif setup keep-state$cmd 00413 allow udp  from any to any 43    out via $oif keep-state<br />
# Allow out whois++#$cmd 00415 allow tcp  from any to any 63    out via $oif setup keep-state#$cmd 00416 allow udp  from any to any 63    out via $oif keep-state<br />
# Allow out finger#$cmd 00420 allow tcp  from any to any 79    out via $oif setup keep-state#$cmd 00421 allow udp  from any to any 79    out via $oif keep-state<br />
# Allow out nntp news$cmd 00425 allow tcp  from any to any 119   out via $oif setup keep-state$cmd 00426 allow udp  from any to any 119   out via $oif keep-state<br />
# Allow out gopher#$cmd 00430 allow tcp  from any to any 70    out via $oif setup keep-state#$cmd 00431 allow udp  from any to any 70    out via $oif keep-state</p>
<p>########  inbound section  ############################################# Interrogate packets originating from in front of the firewall, public net.# Place statements here to allow public requests for service.<br />
# Allow in www$cmd 00600 allow tcp from any to any 80 in via $oif setup keep-state limit src-addr 4<br />
# Allow  TCP FTP control channel in &#38; data channel out $cmd 00610 allow tcp from any to me 21  in via $oif setup keep-state limit src-addr 4$cmd 00611 allow tcp from any 20 to any 1024-49151 out via $oif setup keep limit src-addr 4<br />
# Allow in ssh function $cmd 00620 allow log tcp from any to me 22 in via $oif setup keep-state limit src-addr 4<br />
# Allow in Telnet  $cmd 00630 allow tcp from any to me 23 in via $oif setup keep-state limit src-addr 4<br />
# Allow in Ping $cmd 00635 allow log icmp from any to me icmptype 0,8  in via $oif<br />
# This sends a RESET to all ident packets.#$cmd 00640 reset log tcp from any to me 113  in via $oif limit src-addr 4<br />
########  Catch all section  ############################################<br />
#### Start Special rules for Adelphia Cable  #########################<br />
#valid dhcp broadcast from Adelphia dhcp server$cmd 00700 allow UDP from 0.0.0.0 68 to 255.255.255.255 67 in via rl0<br />
# valid FBSD dhcp client request for dns config info$cmd 00701 allow udp from me 68 to $odns1 67      out via rl0$cmd 00702 allow udp from $odns1 67 to me 68       in via rl0<br />
# invalid bogus packets on Adelphia Cable network.$cmd 00705 deny udp from any to 255.255.255.255    in via rl0$cmd 00706 deny udp from 0.0.0.0 to any            in via rl0#               P:2$cmd 00707 deny all  from 192.168.100.1 to 224.0.0.1   in via rl0$cmd 00708 deny udp from $odns1 53 to me           in via rl0#### End Special rules for Adelphia Cable  #########################</p>
<p># Stop &#38; log external redirect requests.$cmd 00720 deny log icmp from any to any icmptype 5  in via $oif<br />
# Stop &#38; log spoofing Attack attempts.# Examine incoming traffic for packets with both a source and destination# IP address in my local domain as per CIAC prevention alert.$cmd 00730 deny log ip from me to me  in via $oif<br />
# Stop &#38; log ping echo attacks# stop echo reply (ICMP type 0), and echo request (type 8).$cmd 00740 deny log icmp from any to me icmptype 0,8  in via $oif<br />
# Reject &#38; Log all setup of tcp incoming connections from the outside$cmd 00750 deny log tcp from any to any  setup  in via $oif<br />
# Reject &#38; Log all netbios service. 137=name, 138=datagram, 139=session# netbios is ms/windows sharing services.$cmd 00760 deny log tcp from any to any 137,138,139  in via $oif$cmd 00761 deny log udp from any to any 137,138,139  in via $oif<br />
# Reject all port 80 http packets that fall through to here.# These packets are auto spawn web page requests from within # original web page request.$cmd 00770 deny  tcp from any to any 80   out via $oif<br />
# Everything else is denied by default # deny and log all packets that fell through to see what they are$cmd 00950 deny log logamount 500 all from any to any<br />
################## End Of IPFW Firewall Rules  #########################</p>
<p>Other IP stack security options.The main run control configuration file /etc/rc.conf has a whole group of run time security options to control the flood of falsified packets entering the system which get control before IPFW evens knows their coming in.<br />
The following is from my rc.conf file.<br />
# Required IPFW  kernel firewall support# For more info see # www.onlamp.com/pub/a/bsd/2001/04/25/FreeBSD_Basics.html #<br />
firewall_enable=&#8221;YES&#8221;                 # Start daemonfirewall_script=&#8221;/etc/ipfw.stdrules&#8221;  # run my custom rules if present                                      # sh /etc/ipfw.stdrules will load                                       # new rules file after editing.filewall_logging=&#8221;YES&#8221;                # Enable events logging</p>
<p># Extra firewalling optionslog_in_vain=&#8221;YES&#8221;           # NO is default. YES enables logging of                             # connection attempts to ports that have no                            # listening socket on them. Put msg on consol<br />
icmp_drop_redirect=&#8221;YES&#8221;    # YES will cause the kernel to ignore                            # ICMP REDIRECT packets.<br />
tcp_drop_synfin=&#8221;YES&#8221;       # YES will cause the kernel to ignore TCP                            # frames that have both the SYN and FIN flags                            # set. Only available if the kernel was built                            # with the TCP_DROP_SYNFIN option.                            # change to NO if web server behind firewall.<br />
tcp_restrict_rst=&#8221;YES&#8221;      # YES will cause the kernel to refrain from                             # emitting TCP RST frames in response to                             # invalid TCP packets (e.g., frames destined                            # for closed ports). This option is only                             # available if the kernel was built with the                            # TCP_RESTRICT_RST option.<br />
syslogd_flags=&#8221;-ss&#8221;         # Don&#8217;t use network sockets so portscan			          # will not find (security tip)<br />
portmap_enable=&#8221;NO&#8221;         # Don&#8217;t allow nfs portmapper (security tip)</p>
<p>The  log_in_vain=&#8221;YES&#8221; option will post a message to the root console screen every time it stops a packet. This became very annoying so I changed the syslog to put these messages in the security log. All the ipfw messages that were going to the /var/log/security file was also going to the /var/log/message file. I did not think it was wise to be posting ipfw messages in more that one place, so I stopped them from going to the message file.  Below are the lines I changed in /etc/syslog.conf to make this happen.</p>
<p>The original lines.*.err;kern.debug;auth.notice;mail.crit		/dev/console*.notice;kern.debug;lpr.info;mail.crit;news.err	/var/log/messagessecurity.*					/var/log/security<br />
replaced by this lines# kern.info is where the log_in_vain messages come from. The following# will stop the log_in_vain messages from coming out on root console &#38;# put them in the security log.  2/20/2002 Joe Barbish# remove kern.info messages from /dev/console &#38; /var/log/messages# and put them into /var/log/security.*.err;auth.notice;mail.crit			/dev/consolekern.notice;kern.=debug				/dev/console*.notice;lpr.info;mail.crit;news.err	/var/log/messageskern.notice;kern.=debug				/var/log/messagessecurity.*;kern.=info				/var/log/security</p>
<p>Another very obscure option is blackhole, new in FBSD 4.4<br />
The blackhole sysctl(8) is used to control system behavior when connection requests are received on TCP or UDP ports where there is no socket listening.<br />
Normal behavior, when a TCP SYN segment is received on a port where there is no socket accepting connections, is for the system to return a RST segment, and drop the connection. The connecting system will see this as a &#8220;Connection reset by peer&#8221;.<br />
By setting the TCP blackhole MIB to a numeric value of 1, the incoming SYN segment is merely dropped, and no RST is sent, making the system appear as a blackhole.<br />
By setting the MIB value to 2, any segment arriving on a closed port is dropped without returning a RST.  This provides some degree of protection against stealth port scans.<br />
In the UDP instance, enabling blackhole behavior turns off the sending of an ICMP port unreachable message in response to a UDP datagram which arrives on a port where there is no socket listening. It must be noted that this behavior will prevent remote systems from running traceroute(8) to a system.<br />
The blackhole behavior is useful to slow down anyone who is port scanning a system, attempting to detect vulnerable services on a system. It could potentially also slow down someone who is attempting a denial of service attack.<br />
The sysctl net.inet.tcp.blackhole=2 command can be entered from the command line and will be in effect until the next boot. The sysctl command can also be in the /etc/sysctl.conf file (which you must create) and if present will be activated during the boot process. Read man sysctl for command format to display settings of this option and some others that allow you to change to default dynamic rules time out values. For the really advanced technical ipfw user check out ipfw user patches at  http://people.freebsd.org/~cjc/<br />
See http://bsdvault.net/sections.php?op=viewarticle&#38;artid=57 for info on sysctl.<br />
See http://www.practicallynetworked.com/sharing/app_port_list.htm  for a list of ports used by different applications.<br />
/etc/sysctl.conf  file contents<br />
sysctl net.inet.tcp.blackhole=2sysctl net.inet.udp.blackhole=1</p>
<p>Here are the statements for the kernel source to include IPFW in the kernel.## The following options add sysctl variables for controlling how certain # TCP packets are handled by the kernel. #options	        ICMP_BANDLIM	        # Enables icmp error response bandwidth                                      # limiting. This will help protect from                                       # D.O.S. packet attacks.option          TCP_DROP_SYNFIN       # Adds support for ignoring TCP packets                                       # with SYN+FIN. This prevents nmap from                                       # identifying the TCP/IP stack, but                                       # breaks support for RFC1644 extensions                                      # &#38; is not recommended for web servers.<br />
# not supported in 4.4 &#38; newer#option          TCP_RESTRICT_RST     # Adds support for blocking emission of                                      # TCP RST packets. Useful in limiting                                       # SYN floods &#38; port scanning.</p>
<p># Enable kernel IPFW, the FBSD supplied packet filtering and accounting system# Has a FBSD supplied user land control utility ipfw.# option 		IPFIREWALL                  # Adds filtering code into kerneloption		IPFIREWALL_VERBOSE          # enable logging thru syslogd(8)option		IPFIREWALL_VERBOSE_LIMIT=10 # stop attack via syslog floodingoption         IPFIREWALL_IPDIVERT         # Enable NATD divert function</p>
<p>&#160;</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Heute, nix]]></title>
<link>http://oopskatja.wordpress.com/2009/11/21/heute-nix/</link>
<pubDate>Sat, 21 Nov 2009 21:04:58 +0000</pubDate>
<dc:creator>KatjaLovesHerLife</dc:creator>
<guid>http://oopskatja.wordpress.com/2009/11/21/heute-nix/</guid>
<description><![CDATA[Oben ist ein von mir zufälliges gefundenes schönes Bild:) Ich hätte jetzt in Berlin sein sollen]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><a href="http://oopskatja.wordpress.com/files/2009/11/p309620004.jpg"><img class="aligncenter size-full wp-image-3" title="p309620004" src="http://oopskatja.wordpress.com/files/2009/11/p309620004.jpg" alt="" width="450" height="337" /></a></p>
<p>Oben ist ein von mir zufälliges gefundenes schönes Bild:)</p>
<p>Ich hätte jetzt in Berlin sein sollen&#8230;<br />
Aber macht nix, ich habe mich auch darauf gar nicht gefreut.<br />
Am nächten Wochenende werde ich mit einigen Freundinnen eine Oma besuchen! Ich freue mich schon!!</p>
<p>Also, wir habe sie unterwegs kennen gelernt. Sie möchten uns jetzt zum Essen einladen! Das ist ja ganz schön toll:)</p>
<p>Wie schön ist das Leben:)</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Nix]]></title>
<link>http://schnacklinemax.wordpress.com/2009/11/21/nix-2/</link>
<pubDate>Sat, 21 Nov 2009 15:04:26 +0000</pubDate>
<dc:creator>Max</dc:creator>
<guid>http://schnacklinemax.wordpress.com/2009/11/21/nix-2/</guid>
<description><![CDATA[In den letzten Wochen stolpere ich immer wieder über Nichts, im TV, in Reportagen und Gesprächen. Un]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>In den letzten Wochen stolpere ich immer wieder über Nichts, im TV, in Reportagen und Gesprächen. Und immer dreht es sich um die Frage, was das Nix überhaupt sei.</p>
<p><a href="http://de.wikipedia.org/wiki/Nichts">Nichts – Wikipedia</a></p>
<p>Die Wissenschaft ist überzeugt unser bizarres Universum besteht zu 95% aus Nichts, aus Anti- Energie, Anti- Materie und Dunkler Materie. Also sind nur 5% sichtbar. Wo spielt sich unser Dasein also ab? Auf 5% Realitaet! Das erinnert an Douglas Adams.</p>
<p>Die Menschheit denkt Dual. Unser Dasein definiert sich aus sich selbst heraus: SEIN! Das Fehlen von ETWAS  scheint den menschlichen Verstand soweit zu überfordern, dass er nicht nur Gott erschafft, sondern auch seinen Widersacher. Kein Licht ohne Dunkel! Laut wissenschaftlicher These ist das DUNKEL aber auch ein Energiezustand. Diesen können wir nur nicht erfassen.</p>
<p>Keine Angst, ich werde nicht esoterisch.</p>
<p>Unser Gehirn ist mit der Vorstellung des NICHTS völlig überfordert. Wir existieren und definieren uns durch SEIN. Der Tod, das absolute Ende ist dem Menschen unvorstellbar. Die Unendlichkeit des Universums ist schon so eine Sache, bei der unser Hirn aussetzt. Deshalb leben wir in einer Kugel, gibt es Götter etc&#8230; . Denn es besteht ein Unterschied zwischen Leere und NichtSEIN.</p>
<p>Wenn ich nun dem NIX eine Existenz zugestehe, die ich zu 95% nicht mitkriege, weil ich mich nur blöd in meinen zwei bis vier Dimensionen bewege, ja was dann?</p>
<p>Aber wenn das NIX nun auch ganz real nichts ist, ja was denn dann?</p>
<p>Sind Träume wirklich nur Schäume, ja was wenn nicht?</p>
<p>DON´T PANIC</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[queens blade s2 eps 9 sneak-peek [ecchi]]]></title>
<link>http://kirayamato04.wordpress.com/2009/11/20/queens-blade-s2-eps-9-sneak-peek-ecchi/</link>
<pubDate>Fri, 20 Nov 2009 00:20:53 +0000</pubDate>
<dc:creator>kirayamato04</dc:creator>
<guid>http://kirayamato04.wordpress.com/2009/11/20/queens-blade-s2-eps-9-sneak-peek-ecchi/</guid>
<description><![CDATA[Ecchi scenes Other screenshots]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><a href="http://kirayamato04.wordpress.com/files/2009/11/qbs2-9-header.jpg"><img class="alignnone size-full wp-image-17497" title="qbs2 9 header" src="http://kirayamato04.wordpress.com/files/2009/11/qbs2-9-header.jpg" alt="" width="75" height="75" /></a></p>
<p><a href="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091119225253.jpg"><img class="alignnone size-full wp-image-17498" title="snapshot20091119225253" src="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091119225253.jpg" alt="" width="655" height="491" /></a></p>
<p><span style="color:#ff0000;"><strong>Ecchi scenes</strong></span></p>
<p><a href="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091119225340.jpg"><img class="alignnone size-full wp-image-17499" title="snapshot20091119225340" src="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091119225340.jpg" alt="" width="655" height="491" /></a><a href="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091119225402.jpg"><img class="alignnone size-full wp-image-17500" title="snapshot20091119225402" src="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091119225402.jpg" alt="" width="655" height="491" /></a><a href="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091119230742.jpg"><img class="alignnone size-full wp-image-17501" title="snapshot20091119230742" src="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091119230742.jpg" alt="" width="655" height="491" /></a></p>
<p><span style="color:#ff0000;"><strong>Other screenshots</strong></span></p>
<p><a href="http://kirayamato04.wordpress.com/files/2009/11/thumbs20091119231139.jpg"><img class="alignnone size-full wp-image-17502" title="thumbs20091119231139" src="http://kirayamato04.wordpress.com/files/2009/11/thumbs20091119231139.jpg" alt="" width="655" height="490" /></a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Truy cập hệ thống từ xa với SSH – phần 1]]></title>
<link>http://tantoan.wordpress.com/2009/11/16/truy-c%e1%ba%adp-h%e1%bb%87-th%e1%bb%91ng-t%e1%bb%ab-xa-v%e1%bb%9bi-ssh-%e2%80%93-ph%e1%ba%a7n-1/</link>
<pubDate>Mon, 16 Nov 2009 15:00:12 +0000</pubDate>
<dc:creator>tantoan</dc:creator>
<guid>http://tantoan.wordpress.com/2009/11/16/truy-c%e1%ba%adp-h%e1%bb%87-th%e1%bb%91ng-t%e1%bb%ab-xa-v%e1%bb%9bi-ssh-%e2%80%93-ph%e1%ba%a7n-1/</guid>
<description><![CDATA[Giới thiệu và cài đặt OpenSSH Bài viết này có thể áp dụng cho hầu hết các Linux distro, tuy nhiên có]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Giới thiệu và cài đặt OpenSSH</p>
<p>Bài viết này có thể áp dụng cho hầu hết các Linux distro, tuy nhiên có vài câu lệnh được thực hiện trên hệ thống ubuntu, nếu thực hiện trên hệ thống khác, có thể bạn sẽ phải thay đổi vài chi tiết.</p>
<p>SSH ?</p>
<p>SSH là giao thức cho phép kết nối vào máy tính xuyên qua network, SSH được cài đặt theo mặc định trên hầu hết các bản phân phối linux, tuy nhiên để hệ thống cho phép kết nối thì bạn cần cài đặt gói openssh-server, thông tin chi tiết tại trang chủ http://www.openssh.com</p>
<p>cài đặt OpenSSH:</p>
<blockquote><p>$sudo apt-get install openssh-server</p>
</blockquote>
<p>Kiểm tra OpenSSH:</p>
<blockquote><p>$ps -e &#124; grep ssh</p>
</blockquote>
<p>Câu lệnh này sẽ liệt kê tất cả các tiến trình đang hoạt động trong hệ thống, lọc danh sách này và chỉ hiển thị tiến trình có chứa từ “ssh”, bạn sẽ thấy kết quả tương tự như sau:</p>
<blockquote><p>717 ? 00:00:00 sshd</p>
</blockquote>
<p>Điều này có nghĩa là OpenSSH đang hoạt động, nếu bạn không thấy gì từ câu lệnh trên thì hãy khởi động ssh như sau</p>
<blockquote><p>$sudo /etc/init.d/ssh start</p>
</blockquote>
<p>Cấu hình SSH:</p>
<p>Cấu hình SSH server, đầu tiên bạn cần chỉnh sửa hút xíu file cấu hình của OpenSSH, file cấu hình này thường nằm trong /etc/ssh/sshd_config, bạn có thể dùng trình soạn thảo nào đó như gedit, nano, vim …. bất cứ trình nào mà bạn thấy dể sử dụng, ỏ đây tôi dùng gedit</p>
<blockquote><p>$sudo gedit /etc/ssh/sshd_config</p>
</blockquote>
<p>Cấu hình này được định nghĩa theo mặc định, Bây giờ OpenSSH đã hoạt động tốt, bạn có thể kết nối vào hệ thống, nhưng vì lý do bảo mật nên bạn cần phải định nghĩa lại theo cách riêng, tùy thuộc vào chính sách bảo mật riêng, trong bài viết này tôi chỉ gợi ý một vài điều khi cần chỉnh sửa cấu hình này.</p>
<p>Đầu tiên là Port, trong hệ thống của chúng ta có tất cả 65535 port, mổi port giống như một cửa để hệ thống có thể giao tiếp với bên ngoài, ví dụ: khi bạn lướt web trên một browser, yêu cầu này đi ra ngoài theo port 80 (80 là port mặt định của http) và web server nào đó sẽ gửi trả lởi vào hệ thống của bạn theo port 80, 1024 port đầu tiên dùng để xác định giao thức, port 22 theo mặc định của SSH, điều này sẽ không tốt cho lắm, vì vậy bạn cần đổi port này với một port nào đó nằm trong giới hạn &#60; 65535, theo lời gợi ý bạn nên đặt trong giới hạn từ 1500-5000.</p>
<p>Bạn có thể tham khảo danh sách các port tại:</p>
<p><a href="http://www.iana.org/assignments/port-numbers" target="_blank">http://www.iana.org/assignments/port-numbers</a></p>
<blockquote><p># What ports, IPs and protocols we listen for</p>
<p>Port 2000</p>
</blockquote>
<p>Lưu lại cấu hình này và khởi động lại OpenSSH</p>
<blockquote><p>$sudo /etc/init.d/ssh restart</p>
</blockquote>
<p>Để kiểm tra kết quả, kết nối vào hệ thống của bạn theo port 2000</p>
<blockquote><p>$ssh -p 2000 &#60;address&#62; -l &#60;account&#62; </p>
</blockquote>
<address>
<address>&#60;address&#62;: địa chỉ máy cần kết nối</p>
<p>&#60;account&#62;: tên tài khoản trên hệ thống cần kết nối
<p>Ví dụ:</p>
<blockquote><p>$ssh -p 2000 localhost -l root</p>
</blockquote>
<p>Bạn sẽ nhận được một thông điệp từ hệ thống</p>
<blockquote><p>………………..</p>
<p>RSA key fingerprint is 38:15:00:70:5b:4c:85:e4:ae:c0:aa:28:d4:11:11:a1.</p>
<p>Are you sure you want to continue connecting (yes/no)?</p>
</blockquote>
<p>nhập yes, và nhập mật khẩu cho tài khoản cần kết nối, ví dụ ở đầy là root, nếu bạn thấy kết quả như bên dưới thì có nghĩa là đã kết nối thành công</p>
<blockquote><p>Linux thesun 2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16 14:04:26 UTC 2009 i686</p>
<p>To access official Ubuntu documentation, please visit:</p>
<p>http://help.ubuntu.com/</p>
<p>Last login: Mon Nov 16 12:14:59 2009 from thesun.local</p>
<p>root@thesun:~#</p>
</blockquote>
</address>
</address>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[meditieren und rebellieren und weinen]]></title>
<link>http://kellion.wordpress.com/2009/11/16/meditieren-und-rebellieren-und-weinen/</link>
<pubDate>Mon, 16 Nov 2009 11:43:23 +0000</pubDate>
<dc:creator>beisasse</dc:creator>
<guid>http://kellion.wordpress.com/2009/11/16/meditieren-und-rebellieren-und-weinen/</guid>
<description><![CDATA[Leute, Leute! Gibt es denn eine Religion, die bei der anfallenden Zunahme von Sinn-Abwesenheit überh]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Leute, Leute! Gibt es denn eine Religion, die bei der anfallenden Zunahme von Sinn-Abwesenheit überhaupt etwas sagen kann? Keine Religion vermag dem Leben, wie es ist, zu begegnen. Das Leben ist so groß und gar nicht deutbar &#8211; auch nicht mit Religion. Was also, können wir tun? Klar, meine Spezialität ist, mich auf mein Meditationskissen zu setzen. Heute morgen jedoch entfuhr mir ein unwilliges &#8220;Ach, ist doch alles Quatsch!&#8221; Auch das, kann sehr befriedigend sein: Sich einfach gegen die Sinn-Abwesenheit auflehnen und das Universum anpöbeln. Und: weinen, weinen, weinen.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Xử lý stardict]]></title>
<link>http://tantoan.wordpress.com/2009/11/16/x%e1%bb%ad-ly-stardict/</link>
<pubDate>Mon, 16 Nov 2009 04:36:37 +0000</pubDate>
<dc:creator>tantoan</dc:creator>
<guid>http://tantoan.wordpress.com/2009/11/16/x%e1%bb%ad-ly-stardict/</guid>
<description><![CDATA[Từ khi upgrade lên Ubuntu 9.10 Karmic Koala thì không hiểu sao stardict (bộ từ điển) không hoạt động]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Từ khi upgrade lên Ubuntu 9.10 Karmic Koala thì không hiểu sao stardict (bộ từ điển) không hoạt động được bình thường, khởi động với quyền root thì tốt … tôi thừ reinstall lại xem sao …. nhưng kết quả vẫn không khả quan, vậy là tôi gỡ nó ra khỏi máy luôn, tôi gõ:</p>
<p><strong>$sudo apt-get autoremove stardict</strong></p>
<p>sau đó tôi xóa thư mục .stardict trong home directory</p>
<p><strong>$sudo rm -rf .stardict</strong></p>
<p>rồi tôi install lại</p>
<p><strong>$sudo apt-get install stardict</strong></p>
<p>tôi thử khởi động stardict xem thừ có tiến bộ chút nào không, tôi click vào biểu tượng của em nó …. hên quá, mọi chuyện lại bình thường, hoạt động tốt.</p>
<p>﻿</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Hijos de la Noche (6) Estigia y el inframundo.]]></title>
<link>http://arescronida.wordpress.com/2009/11/13/hijos-de-la-noche-6-estigia-y-el-inframundo/</link>
<pubDate>Fri, 13 Nov 2009 01:17:59 +0000</pubDate>
<dc:creator>arescronida</dc:creator>
<guid>http://arescronida.wordpress.com/2009/11/13/hijos-de-la-noche-6-estigia-y-el-inframundo/</guid>
<description><![CDATA[Estigia era la diosa del río que circunda el inframundo, es considerada como la primera hija del tit]]></description>
<content:encoded><![CDATA[Estigia era la diosa del río que circunda el inframundo, es considerada como la primera hija del tit]]></content:encoded>
</item>
<item>
<title><![CDATA[queens blade s2 eps 8 sneak-peek [ecchi]]]></title>
<link>http://kirayamato04.wordpress.com/2009/11/12/queens-blade-s2-eps-8-sneak-peek-ecchi/</link>
<pubDate>Thu, 12 Nov 2009 16:48:11 +0000</pubDate>
<dc:creator>kirayamato04</dc:creator>
<guid>http://kirayamato04.wordpress.com/2009/11/12/queens-blade-s2-eps-8-sneak-peek-ecchi/</guid>
<description><![CDATA[Ecchi scenes Other screenshots]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><a href="http://kirayamato04.wordpress.com/files/2009/11/qb-s2-8-header.jpg"><img class="alignnone size-full wp-image-17401" title="qb s2 8 header" src="http://kirayamato04.wordpress.com/files/2009/11/qb-s2-8-header.jpg" alt="qb s2 8 header" width="75" height="75" /></a></p>
<p><a href="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091112221936.jpg"><img class="alignnone size-full wp-image-17403" title="snapshot20091112221936" src="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091112221936.jpg" alt="snapshot20091112221936" width="640" height="480" /></a></p>
<p><span style="color:#ff0000;"><strong>Ecchi scenes</strong></span></p>
<p><strong><a href="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091112220213.jpg"><img class="alignnone size-medium wp-image-17404" title="snapshot20091112220213" src="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091112220213.jpg?w=300" alt="snapshot20091112220213" width="300" height="225" /></a><a href="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091112220248.jpg"><img class="alignnone size-medium wp-image-17406" title="snapshot20091112220248" src="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091112220248.jpg?w=300" alt="snapshot20091112220248" width="300" height="225" /></a><a href="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091112221111.jpg"><img class="alignnone size-medium wp-image-17407" title="snapshot20091112221111" src="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091112221111.jpg?w=300" alt="snapshot20091112221111" width="300" height="225" /></a><a href="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091112221500.jpg"><img class="alignnone size-medium wp-image-17408" title="snapshot20091112221500" src="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091112221500.jpg?w=300" alt="snapshot20091112221500" width="300" height="225" /></a><a href="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091112221536.jpg"><img class="alignnone size-medium wp-image-17409" title="snapshot20091112221536" src="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091112221536.jpg?w=300" alt="snapshot20091112221536" width="300" height="225" /></a><a href="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091112221515.jpg"><img class="alignnone size-medium wp-image-17410" title="snapshot20091112221515" src="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091112221515.jpg?w=300" alt="snapshot20091112221515" width="300" height="225" /></a><a href="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091112221557.jpg"><img class="alignnone size-medium wp-image-17411" title="snapshot20091112221557" src="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091112221557.jpg?w=300" alt="snapshot20091112221557" width="300" height="225" /></a><a href="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091112221721.jpg"><img class="alignnone size-medium wp-image-17412" title="snapshot20091112221721" src="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091112221721.jpg?w=300" alt="snapshot20091112221721" width="300" height="225" /></a><a href="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091112221824.jpg"><img class="alignnone size-medium wp-image-17413" title="snapshot20091112221824" src="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091112221824.jpg?w=300" alt="snapshot20091112221824" width="300" height="225" /></a><a href="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091112221834.jpg"><img class="alignnone size-medium wp-image-17414" title="snapshot20091112221834" src="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091112221834.jpg?w=300" alt="snapshot20091112221834" width="300" height="225" /></a><a href="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091112222158.jpg"><img class="alignnone size-medium wp-image-17415" title="snapshot20091112222158" src="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091112222158.jpg?w=300" alt="snapshot20091112222158" width="300" height="225" /><a href="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091112222220.jpg"><img class="alignnone size-medium wp-image-17416" title="snapshot20091112222220" src="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091112222220.jpg?w=300" alt="snapshot20091112222220" width="300" height="225" /></a><a href="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091112222305.jpg"><img class="alignnone size-medium wp-image-17417" title="snapshot20091112222305" src="http://kirayamato04.wordpress.com/files/2009/11/snapshot20091112222305.jpg?w=300" alt="snapshot20091112222305" width="300" height="225" /></a></a></strong></p>
<p><span style="color:#ff0000;"><strong>Other screenshots</strong></span></p>
<p><span style="color:#ff0000;"><strong><a href="http://kirayamato04.wordpress.com/files/2009/11/thumbs20091112222454.jpg"><img class="alignnone size-full wp-image-17418" title="thumbs20091112222454" src="http://kirayamato04.wordpress.com/files/2009/11/thumbs20091112222454.jpg" alt="thumbs20091112222454" width="655" height="490" /></a><br />
</strong></span></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[vài command tiện ích.]]></title>
<link>http://tantoan.wordpress.com/2009/11/12/vai-command-ti%e1%bb%87n-i/</link>
<pubDate>Thu, 12 Nov 2009 15:44:53 +0000</pubDate>
<dc:creator>tantoan</dc:creator>
<guid>http://tantoan.wordpress.com/2009/11/12/vai-command-ti%e1%bb%87n-i/</guid>
<description><![CDATA[1. Hiển thị nội dung tập tin $cat caigiday.txt 2. Thay đổi thư mục $cd /home 3. Đổi quyền sở hữu tập]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>1. Hiển thị nội dung tập tin</p>
<p><strong>$cat caigiday.txt</strong></p>
<p>2. Thay đổi thư mục</p>
<p><strong>$cd /home</strong></p>
<p>3. Đổi quyền sở hữu tập tin theo nhóm</p>
<p><strong>$chgrp &#60;group&#62; &#60;caigiday.txt&#62;</strong></p>
<p>4. Đổi quyền truy xuất tập tin</p>
<p><strong>$chmod +x caigiday.txt</strong></p>
<p>5. Sao chép tập tin</p>
<p><strong>$cp caigiday.txt caigiday_new.txt</strong></p>
<p>6. Hiển thị ngày giờ hiện tại<br />
<strong><br />
$date</strong></p>
<p>7. Hiển thị tình trạng các ổ đĩa</p>
<p><strong>$df</strong></p>
<p>8. Liệt kê nội dung trong thư mục</p>
<p><strong>$dir</strong><br />
hoặc<br />
<strong>$ls /thư mục nào</strong></p>
<p>8. In kích thước thư mục</p>
<p><strong>$du -h /bin</strong></p>
<p>9. In dòng text</p>
<p><strong>$echo in cái gì ….</strong></p>
<p>10. Thoát khỏi shel</p>
<p><strong>$exit</strong></p>
<p>11. Tìm kiếm chuổi text</p>
<p><strong>$fgrep “chuổi cần tìm” taptin.txt</strong><br />
hoặc<br />
<strong>$grep “chuổi cần tìm” taptin.txt</strong></p>
<p>12. Tìm tập tin</p>
<p><strong>$find / -name “tim cai gi.txt”</strong></p>
<p>tìm “tìm cái gì.txt” trong thư mục root “/”</p>
<p>13. Liệt kê tồng quát tình trạng bộ nhớ</p>
<p><strong>$free</strong></p>
<p>14. Liệt kê nhóm người dùng</p>
<p><strong>$groups</strong></p>
<p>15. Hiển thị phần đầu tập tin</p>
<p><strong>$head -2 taptingi.txt </strong><br />
in hai dòng đầu tiên trong tập tin</p>
<p>16. Hiển thị tên của máy</p>
<p><strong>$hostname</strong></p>
<p>17. Kết thúc tiến trình</p>
<p><strong>$kill &#60;ID&#62; </strong><br />
ID của tiến trình</p>
<p><strong>$killall &#60;ten tien trinh&#62;</strong></p>
<p>18. tạo kết nối đến tập tin</p>
<p><strong>$ln -s data.txt link.txt</strong></p>
<p>19. Xem cách sử dụng câu lệnh cần dùng</p>
<p><strong>$man &#60;câu lệnh gì&#62;</strong></p>
<p>20. In MD5 của tập tin</p>
<p><strong>$md5sum taptin.txt</strong></p>
<p>21. Tạo thư mục<br />
<strong><br />
$mkdir &#60;thư mục gì&#62;</strong></p>
<p>22. Liệt kê và đến số dòng trong tập tin</p>
<p><strong>$nl taptin.txt</strong></p>
<p>23. Tìm ID tiến trình của chương trinh đang hoạt động</p>
<p><strong>$pidof &#60;tên của tiến trình&#62;</strong></p>
<p>24. Kiểm tra mạng/hệ thống<br />
<strong><br />
$ping http://tantoan.wordpress.com</strong></p>
<p><em>// thỉnh thoảng có vài website sẽ không ping được vì admin dùng tường lữa chặn các gói icmp</em><strong><br />
</strong></p>
<p>25. Hiển thị cây quan hệ các tiến trình</p>
<p><strong>$pstree</strong></p>
<p>26. Hiển thị thư mục hiện tại</p>
<p><strong>$pwd</strong></p>
<p>27. Xóa tập tin</p>
<p><strong>$rm taptin.txt</strong></p>
<p>28. Xóa thư mục</p>
<p><strong>$rm thumuc</strong></p>
<p>29. Shutdown hệ thống</p>
<p><strong>$shutdown -h now</strong></p>
<p>30. Restart hệ thống<br />
<strong><br />
$reboot</strong></p>
<p>31. In tình trạng tập tin</p>
<p><strong>$stat taptin.txt</strong></p>
<p>32. In tên hệ thống, phiên bản kernel, ngày giờ, bộ xử lý.</p>
<p><strong>$uname -a</strong></p>
<p>33. Ai đang đăng nhập &#38; đang làm gì</p>
<p><strong>$w</strong></p>
<p>34. In số dòng trong tập tin</p>
<p><strong>$wc -l taptin.txt</strong></p>
<p>45. Tìm đường dẫn thư viện/mã nguồn/chương trình</p>
<p><strong>$whereis bash</strong></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Home Remedies For Head Lice - Non Toxic &amp; Guaranteed!]]></title>
<link>http://homeremediesforheadlice.wordpress.com/2009/11/12/home-remedies-for-head-lice-non-toxic-guaranteed/</link>
<pubDate>Thu, 12 Nov 2009 00:49:50 +0000</pubDate>
<dc:creator>globalmarketing2010</dc:creator>
<guid>http://homeremediesforheadlice.wordpress.com/2009/11/12/home-remedies-for-head-lice-non-toxic-guaranteed/</guid>
<description><![CDATA[ I had to pass on this wonderful information about some good home remedies for head lice. I can unde]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><div id="attachment_64"> I had to pass on this wonderful information about some good home remedies for head lice.</div>
<p>I can understand your frustration when it comes to getting rid of head lice. Yes I have been there before too much like you, with my daughter. The endless battles night after night, trying to treat head lice and kill nits.</p>
<p><a href="http://www.dailymotion.com/video/xb49ke_home-remedies-for-head-lice-a-non-t_people">Check out this Video!</a></p>
<p><a href="http://www.metacafe.com/watch/3724438/home_remedies_for_head_lice_a_non_toxic_lice_solution/">Home Remedies For Head Lice – A Non Toxic Lice Solution.</a> – <a href="http://www.metacafe.com/">Funny home videos are a click away</a><br />
Be warned lice shampoos and conditioners are toxic chemicals and not good for children at all!</p>
<p>I thought I had things under control and managed they came back!</p>
<p>I have spent countless hours using a head lice comb and buying head lice shampoo only to find out later the problem was my technique.</p>
<p>The only absolute way of stopping nits and lice life cycle, is to shave your child’s head.</p>
<p>That was not an option for me at all, my daughter has beautiful long hair so shaving her head was NOT the head lice remedy. Imagine how your child would feel bald and what they would go through at school. They would be the laughing stock of the whole school.</p>
<p>Do you really want to get that embarrassing letter from the school nurse! Telling you your child has head lice.</p>
<p>They will call you and tell you not to have your child come back until the head lice and head lice nits are gone.</p>
<p>What I was suggested from a friend of mine to check out a natural <a href="http://support.wordpress.com/advertising/">home remedies for head lice removal</a>. This natural home remedy had worked for them. I looked up the site and followed the step by step instructions which were easy to follow.</p>
<p>After many failed attempts at head lice treatment products. I was frustrated and wanted to get this problem solved forever!</p>
<p>Finally a head lice remedy that had worked! It was easy to follow and<br />
guaranteed!</p>
<p><a href="http://support.wordpress.com/advertising/">TRY IT TODAY!</a></p>
<p>Gone are the days of spending $7 for a little bottle of shampoo every 3 days that did no work for lice.</p>
<p>Gone are the days of purchasing a special electric nit comb at a cost of $20 at the drug store.</p>
<p>I’m sure you have been told about a great Head lice shampoo.</p>
<p>I bet the did not tell you that most of the lice shampoos are toxic!</p>
<p>I personally have battled with these lill critters many times using several different over the counter shampoos. I even sat my own child down and told her we might have to cut her hair off if we can’t get this under control.<br />
You can carry on with your current methods of TOXIC Head Lice Treatment but be for warned! Those little bugs and nit eggs are tough to get rid of. They are immune to many of the lice shampoos now!</p>
<p>Your child may not be scratching there head for 2 days after the lice treatment BUT?</p>
<p>Did you get rid of the nits?? Are you sure you got them all??</p>
<p><a href="http://www.homeremediesforheadlice.helpmywebpage.com/">Do you want to end head lice for good!</a></p>
<p>HEAD LICE FACTS</p>
<p>The average adult lice lay 8 eggs a day. Not to mention the eggs<br />
they do lay are next to impossible to get out. The lice eggs are glued<br />
(laid) to the base of a hair shaft close to the scalp and the natural glue is better than crazy glue.</p>
<p>If you look at a picture of head lice they are one tough bug. There<br />
flat skinny bodies are tough to pick up in a nit comb. The ones you do get in a lice comb are just the adults but the lice nits remain.</p>
<p>I was suggested Home Remedies for Head Lice by a close friend of mine after her kids had head lice. I thought sure just another wives tale of using teetree oil and mayonnaise. To my surprise it was not that at all.</p>
<p>It was a total NON TOXIC natural head lice treatment that got the job done. I’m not just talking about getting rid of the adult lice but totally killing lice. Even the nits did not have a chance with</p>
<p>Home Remedies for Head Lice.</p>
<p>Normally I would be embarrassed telling you about my head lice battle I have had.</p>
<p>I just had to tell you that I truly found have found the best NON TOXIC <a href="http://www.homeremediesforheadlice.helpmywebpage.com/">Home Remedies for Head Lice</a>.</p>
<p>Thanks Vikki! Your natural remedies for head lice worked!</p>
<p>&#160;</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Home Remedies For Head Lice - A Non Toxic Lice Solution!]]></title>
<link>http://globalmarketing2010.wordpress.com/2009/11/12/home-remedies-for-head-lice-a-non-toxic-lice-solution/</link>
<pubDate>Thu, 12 Nov 2009 00:37:56 +0000</pubDate>
<dc:creator>globalmarketing2010</dc:creator>
<guid>http://globalmarketing2010.wordpress.com/2009/11/12/home-remedies-for-head-lice-a-non-toxic-lice-solution/</guid>
<description><![CDATA[My Daughter &amp; I My name is Dwane and I had to pass on this wonderful information about some good]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><div id="attachment_64" class="wp-caption alignnone" style="width: 460px"><a href="http://www.homeremediesforheadlice.helpmywebpage.com/"><img class="size-full wp-image-64" title="P1000105" src="http://globalmarketing2010.wordpress.com/files/2009/11/p1000105.jpg" alt="P1000105" width="450" height="337" /></a><p class="wp-caption-text">My Daughter &#38; I</p></div>
<p>My name is Dwane and I had to pass on this wonderful information about some good home remedies for head lice.</p>
<p>I can understand your frustration when it comes to getting rid of head lice. Yes I have been there before too much like you, with my daughter. The endless battles night after night, trying to treat head lice and kill nits.</p>
<p><a href="http://www.dailymotion.com/video/xb49ke_home-remedies-for-head-lice-a-non-t_people">Check out this Video!</a></p>
<p><span style="font-size:xx-small;"><a href="http://www.metacafe.com/watch/3724438/home_remedies_for_head_lice_a_non_toxic_lice_solution/">Home Remedies For Head Lice &#8211; A Non Toxic Lice Solution.</a> &#8211; <a href="http://www.metacafe.com/">Funny home videos are a click away</a></span><br />
Be warned lice shampoos and conditioners are toxic chemicals and not good for children at all!</p>
<p>I thought I had things under control and managed they came back!</p>
<p>I have spent countless hours using a head lice comb and buying head lice shampoo only to find out later the problem was my technique.</p>
<p>The only absolute way of stopping nits and lice life cycle, is to shave your child&#8217;s head.</p>
<p>That was not an option for me at all, my daughter has beautiful long hair so shaving her head was NOT the head lice remedy. Imagine how your child would feel bald and what they would go through at school. They would be the laughing stock of the whole school.</p>
<p>Do you really want to get that embarrassing letter from the school nurse! Telling you your child has head lice.</p>
<p>They will call you and tell you not to have your child come back until the head lice and head lice nits are gone.</p>
<p>What I was suggested from a friend of mine to check out a natural <a href="http://3627cc8vud1pusbml-n2sf5r0b.hop.clickbank.net/?tid=HEADLICE">home remedies for head lice removal</a>. This natural home remedy had worked for them. I looked up the site and followed the step by step instructions which were easy to follow.</p>
<p>After many failed attempts at head lice treatment products. I was frustrated and wanted to get this problem solved forever!</p>
<p>Finally a head lice remedy that had worked! It was easy to follow and<br />
guaranteed!</p>
<p><a href="http://3627cc8vud1pusbml-n2sf5r0b.hop.clickbank.net/?tid=HEADLICE">TRY IT TODAY!</a></p>
<p>Gone are the days of spending $7 for a little bottle of shampoo every 3 days that did no work for lice.</p>
<p>Gone are the days of purchasing a special electric nit comb at a cost of $20 at the drug store.</p>
<p>I&#8217;m sure you have been told about a great Head lice shampoo.</p>
<p>I bet the did not tell you that most of the lice shampoos are toxic!</p>
<p>I personally have battled with these lill critters many times using several different over the counter shampoos. I even sat my own child down and told her we might have to cut her hair off if we can&#8217;t get this under control.<br />
You can carry on with your current methods of TOXIC Head Lice Treatment but be for warned! Those little bugs and nit eggs are tough to get rid of. They are immune to many of the lice shampoos now!</p>
<p>Your child may not be scratching there head for 2 days after the lice treatment BUT?</p>
<p>Did you get rid of the nits?? Are you sure you got them all??</p>
<p><a href="http://www.homeremediesforheadlice.helpmywebpage.com/">Do you want to end head lice for good!</a></p>
<p>HEAD LICE FACTS</p>
<p>The average adult lice lay 8 eggs a day. Not to mention the eggs<br />
they do lay are next to impossible to get out. The lice eggs are glued<br />
(laid) to the base of a hair shaft close to the scalp and the natural glue is better than crazy glue.</p>
<p>If you look at a picture of head lice they are one tough bug. There<br />
flat skinny bodies are tough to pick up in a nit comb. The ones you do get in a lice comb are just the adults but the lice nits remain.</p>
<p>I was suggested Home Remedies for Head Lice by a close friend of mine after her kids had head lice. I thought sure just another wives tale of using teetree oil and mayonnaise. To my surprise it was not that at all.</p>
<p>It was a total NON TOXIC natural head lice treatment that got the job done. I&#8217;m not just talking about getting rid of the adult lice but totally killing lice. Even the nits did not have a chance with</p>
<p>Home Remedies for Head Lice.</p>
<p>Normally I would be embarrassed telling you about my head lice battle I have had.</p>
<p>I just had to tell you that I truly found have found the best NON TOXIC <a href="http://www.homeremediesforheadlice.helpmywebpage.com/">Home Remedies for Head Lice</a>.</p>
<p>Thanks Vikki! Your natural remedies for head lice worked!</p>
<p>Dwane J.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[narrenfreiheit]]></title>
<link>http://tobistadler.wordpress.com/2009/11/12/narrenfreiheit/</link>
<pubDate>Wed, 11 Nov 2009 21:49:29 +0000</pubDate>
<dc:creator>stadlertobias</dc:creator>
<guid>http://tobistadler.wordpress.com/2009/11/12/narrenfreiheit/</guid>
<description><![CDATA[[wordless wednesday]]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p style="text-align:center;"><a href="http://tobistadler.wordpress.com/files/2009/11/2009-11-11-narr.jpg"><img class="aligncenter size-full wp-image-958" title="war doch mal wieder zeit für ein selbstportrait" src="http://tobistadler.wordpress.com/files/2009/11/2009-11-11-narr.jpg" alt="war doch mal wieder zeit für ein selbstportrait" width="624" height="624" /></a>[<em>wordless wednesday</em>]</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Điều khiển tiến trình hệ thống Linux.]]></title>
<link>http://tantoan.wordpress.com/2009/11/11/di%e1%bb%81u-khi%e1%bb%83n-ti%e1%ba%bfn-trinh-h%e1%bb%87-th%e1%bb%91ng-linux/</link>
<pubDate>Wed, 11 Nov 2009 05:12:25 +0000</pubDate>
<dc:creator>tantoan</dc:creator>
<guid>http://tantoan.wordpress.com/2009/11/11/di%e1%bb%81u-khi%e1%bb%83n-ti%e1%ba%bfn-trinh-h%e1%bb%87-th%e1%bb%91ng-linux/</guid>
<description><![CDATA[Trong hệ thống Linux/Windows, mổi chương trình/shell khi hoạt động sẽ tạo ra một/nhiều tiến trình (p]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><img class="alignleft" title="điều khiển tiến trình hệ thống Linux" src="http://img30.imageshack.us/img30/791/screenshot1ov.png" alt="" width="160" height="128" />Trong hệ thống <strong>Linux/Windows</strong>, mổi chương trình/shell khi hoạt động sẽ tạo ra một/nhiều tiến trình (<strong>processes</strong>) với các luồng (<strong>Thread</strong>) khác nhau, những tiến trình này có nhiều trạng thái như: đang được sử lý, tạm dừng, bị hủy.. tùy thuộc vào tính hoạt động của tiến trình mà <strong>Linux &#38; CPU</strong> xử lý theo nhiều trạng thái khác nhau.<br />
<strong>Linux</strong> cung cấp một số công cụ hỗ trợ người dùng điều khiển những tiến trình này, chỉ người sử dụng (<strong>User</strong>) khởi động tiến trình mới có thể điều khiển tiến trình, trừ khi có sự can thiệp của người/nhóm có quyền cao nhật là <strong>root</strong>.</p>
<p>Các tiến trình trong hệ thống được tổ chức có trật tự theo một cấu trúc nhất định (tùy thuộc vào nền hệ điều hành mà cấu trúc này được tổ chức khác nhau). Với tiến trình số 1 với giá trị <strong>init</strong>,<strong> init</strong> là tiến trình đầu tiên mà <strong>Linux</strong> khởi động khi <strong>boot</strong> vào hệ thống, tất cả tiến trình dùng chung tài nguyên mà ở đây là <strong>CPU </strong>theo các thuật toán đa luồng (các dòng hệ điều hành hiện đại như <strong>LINUX, MAC, WINDOWNS</strong> đều hỗ trợ đa luồng).</p>
<p><strong>1. pstree command:</strong></p>
<p>Lệnh <strong>pstree</strong> cho kết quả mối liên hệ giữa các tiến trình &#8220;cha&#8221; và &#8220;con&#8221; (tạm gọi như vậy vì một tiến trình khi khởi động có thể sinh ra nhiều tiến trình &#8220;con&#8221;, và từ những tiến trình &#8220;con&#8221; này có thể sinh ra nhiều tiến trình &#8220;cháu&#8221;).</p>
<p><em>thesun@thesun:~$ pstree<br />
init─┬─NetworkManager─┬─dhclient<br />
│                └─{NetworkManager}<br />
├─acpid<br />
├─apache2───5*[apache2]<br />
├─atd<br />
├─avahi-daemon───avahi-daemon<br />
├─bonobo-activati───{bonobo-activati}<br />
├─clamd───{clamd}<br />
├─console-kit-dae───63*[{console-kit-dae}]<br />
├─cron<br />
├─cupsd<br />
├─2*[dbus-daemon]</em></p>
<p>Câu lệnh <strong>pstree </strong>cho bạn một cách nhìn tổng quá về các tiến trình đang hoạt động như kết quả trên, để xem chi tiết, gắn thêm tham số <strong>-a</strong>, sử dụng tham số <strong>-H + ID</strong>, kết quả sẽ tô đậm tiến trình xác định trước với<strong> ID</strong>, VD: <strong>pstree -H 2576</strong> (2576 là ID của tiến trình, mổi tiến trình có ID khác nhau tùy theo thời gian lúc tiến trình khởi động, ID này không cố định, mà thay đổi, ví dụ ở đây: 2576 là ID của <strong>apache</strong> đang hoạt động trong hệ thống của tôi), dùng tham số<strong> -p</strong> để liệt kê cây tiến trình với ID , tham số <strong>-u</strong> xem tiến trình thuộc quyền sở hữu của người sử dụng nào, có thể đóng gói các tham số này vào câu lệnh ngắn gọn:</p>
<p><strong> pstree -apu</strong><br />
<strong><br />
2. ps command:</strong></p>
<p>Lệnh <strong>ps</strong> liệt kê danh sách các tiến trình đang hoạt động trong hệ thống, nếu bạn không thêm vài tham số thì <strong>ps</strong> sẽ liệt kê các shell hiện hành:</p>
<p><em>thesun@thesun:~$ ps<br />
PID TTY          TIME CMD<br />
3646 pts/0    00:00:00 bash<br />
4795 pts/0    00:00:00 top<br />
5683 pts/0    00:00:00 ps</em></p>
<p>Sử dụng tham số x để liệt tất cả các tiến trình</p>
<p><em>thesun@thesun:~$ ps x<br />
PID TTY      STAT   TIME COMMAND<br />
1930 ?        Ssl    0:00 gnome-session<br />
2306 ?        Ss     0:02 /usr/lib/scim-1.0/scim-launcher -d -c simple -e all -f socket &#8211;no-<br />
2682 ?        Ss     0:00 /usr/lib/scim-1.0/scim-helper-manager<br />
2683 ?        Ssl    0:07 /usr/lib/scim-1.0/scim-panel-gtk &#8211;display :0.0 -c socket -d &#8211;no-s<br />
2685 ?        Ss     0:03 /usr/lib/scim-1.0/scim-launcher -d -c socket -e socket -f x11<br />
2690 ?        Ss     0:00 /usr/bin/ssh-agent /usr/bin/db</em></p>
<p><strong>PID</strong>: ID của tiến trình, đây là số duy nhất dùng cho mổi tiến trình.<br />
<strong>TTY</strong>: Terminal hay console nào mà tiến trình được khởi động, dấu &#8220;<strong>?</strong>&#8221; có nghĩa là tiến trình không khởi động từ Terminal/console.<br />
<strong>STAT</strong>: Trạng thái tiến trình, <strong>S</strong> (sleeping &#8211; đang ngủ), <strong>R</strong> (running &#8211; đang hoạt động), <strong>D</strong> (dead &#8211; tiến trình không thể khởi động), <strong>Z</strong> (zombie &#8211; tiến tình kết thúc).<br />
<strong>TIME</strong>: Khoản thời gian CPU dành cho tiến trình &#8211; khoản thời gian này có độ tương đối dựa trên các thuật toán định sẵn.<br />
<strong>COMMAND</strong>: Câu lệnh đầy đủ để khởi động tiến trình.</p>
<p>với tham số <strong>u</strong>, <strong>ps</strong> liệt kê các tiến trình riêng của người dùng hiện tại, tuần xuất CPU, phần trăm bộ nhớ &#8230;như:</p>
<p><em>thesun@thesun:~$ ps -ux<br />
Warning: bad ps syntax, perhaps a bogus &#8216;-&#8217;? See http://procps.sf.net/faq.html<br />
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND<br />
thesun    1930  0.0  0.3  25524  6584 ?        Ssl  08:35   0:00 gnome-session<br />
thesun    2306  0.0  0.0   4808  1524 ?        Ss   08:35   0:03 /usr/lib/scim-1.0/scim-launch<br />
thesun    2682  0.0  0.0   4400   804 ?        Ss   08:35   0:00 /usr/lib/scim-1.0/scim-helper<br />
thesun    2683  0.1  0.3 106156  8052 ?        Ssl  08:35   0:08 /usr/lib/scim-1.0/scim-panel-<br />
thesun    2685  0.0  0.0   6112  1892 ?        Ss   08:35   0:04 /usr/lib/scim-1.0/scim-launch</em></p>
<p>tham số <strong>a</strong> sẽ liệt kê tất cả tiến tình của tất cả người dùng trong hệ thống.</p>
<p>Trong một số trường hợp khi bạn khởi động một chương trình nào đó từ terminal thì trình này sẽ khóa terminal mà bạn khởi động, vì vậy sẽ không nhập thêm được gì vào terminal này, theo đó bạn có thể khởi động thêm một terminal khác hoặc là ngồi nhâm nhi một <strong>tách trà nóng hoặc ly cafe </strong> <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  để đợi chương trình bên trên hoạt động xong, thêm vào kí tự &#8220;<strong>&#38;</strong>&#8221; vào sau câu lệnh nếu bạn không muốn terminal bị khóa.</p>
<p><strong>ví dụ: $totem &#38;</strong></p>
<p>Như vậy terminal sẽ thông báo<strong> ID</strong> của chương trình khởi động và bạn có thể làm việc tiếp với cửa sổ terminal này, dùng<strong> jobs</strong> để xem các shell trong trong cùng terminal session.</p>
<p>Trong môi trường Linux, các tiến trình được quản lý theo ID, vì vậy để điều khiển các tiến trình này, bạn cần quan tâm &#38; làm việc với ID, tuy nhiên ID là những con số ngẫu nhiên mà Linux cấp cho tiến trình, vì vậy biết tên của tiến trình cũng là cách hay để biết được ID của tiến trình đó, như đề cập bên trên với <strong>ps</strong> hay <strong>pstree</strong> command, kết hợp với <strong>grep &#60;tên tiến trình&#62;</strong>.</p>
<p><strong>ví dụ: $ps -ef &#124; grep totem</strong></p>
<p>bằng cách này bạn có thể lấy được<strong> ID</strong> của tiến trình mà <strong>totem</strong> đang hoạt động, và kể từ đây muốn điều khiển <strong>totem</strong> thì hãy làm việc với <strong>ID </strong>của nó.</p>
<p><strong>Kill command:</strong></p>
<p>Dùng <strong>kill -l </strong>để liệt kê cấu trúc của<strong> Kill</strong>, Bạn có thể thấy một danh sách nhiều lựa chọn:<br />
<strong>1) SIGHUP</strong>: gửi đến tiến trình yêu cầu restart sau khi kết thúc.<br />
<strong>19)SIGSTOP</strong>: ngắt tiến trình cho đến khi có yêu cầu <strong>SIGCONT</strong><br />
<strong>vd: $kill -19 &#60;ID&#62;</strong></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[OpenSolaris 2009.06]]></title>
<link>http://stefanr.wordpress.com/2009/11/11/opensolaris-2009-06/</link>
<pubDate>Tue, 10 Nov 2009 22:37:52 +0000</pubDate>
<dc:creator>stefanr</dc:creator>
<guid>http://stefanr.wordpress.com/2009/11/11/opensolaris-2009-06/</guid>
<description><![CDATA[Whatsnew: http://www.opensolaris.com/learn/features/whats-new/200906/ Download: http://www.opensolar]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Whatsnew: <a title="Whatsnew" href="http://www.opensolaris.com/learn/features/whats-new/200906/">http://www.opensolaris.com/learn/features/whats-new/200906/</a><br />
Download: <a title="Download OpenSolaris 2009.06" href="http://www.opensolaris.com/get/index.jsp">http://www.opensolaris.com/get/index.jsp</a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Giả lập Cisco Router with Ubuntu.]]></title>
<link>http://tantoan.wordpress.com/2009/11/10/gi%e1%ba%a3-l%e1%ba%adp-cisco-router-with-ubuntu/</link>
<pubDate>Tue, 10 Nov 2009 04:43:40 +0000</pubDate>
<dc:creator>tantoan</dc:creator>
<guid>http://tantoan.wordpress.com/2009/11/10/gi%e1%ba%a3-l%e1%ba%adp-cisco-router-with-ubuntu/</guid>
<description><![CDATA[Chắc hẳn những tín đồ của Cisco Sys khi nghe tựa đề này thì cũng biết đó là gì ? Dynamips &amp; Dyna]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Chắc hẳn những tín đồ của Cisco Sys khi nghe tựa đề này thì cũng biết đó là gì ? Dynamips &#38; Dynagen là bộ công cụ dùng để giả lập Router cisco, chi tiết xem tại http://dynagen.org</p>
<p>Đây là bộ công cụ tuyệt vời nếu muốn học các chứng chỉ của Cisco, tuy là giả lập router nhưng chạy được OS thật của router, Đây cũng là cách tiết kiệm chi phí, đa số các CCIE cũng dùng Dynamips &#38; Dynagen như là bửu bối để demo khi muốn triển khai, design network, kiểm tra lỗi ….</p>
<p>May mắn là bộ công cụ này có cả hai phiên bản cho Windows &#38; Linux.</p>
<p>Cài đặt</p>
<p>$sudo apt-get install dynamips dynagen</p>
<p>để làm được bài lab, bạn cần tạo file ten_file.net và những IOS (hệ điều hành) của router. Bạn có thể lên google.com để tìm các IOS này như phiên bản tôi có là c7200-adventerprisek9-mz.124-11.T.bin</p>
<p>Giả lập router:</p>
<p>$dynamips c7200-adventerprisek9-mz.124-11.T.bin</p>
<p>Bạn sẽ thấy những dòng quen thuộc của router Cisco….</p>
<p>Ngoài ra Bạn có thể tạo file *.net với cấu hình gồm nhiều Router, Switch, Firewall cho bài lab của mình.<br />
<span style='text-align:center; display: block;'><object width='425' height='350'><param name='movie' value='http://www.youtube.com/v/-2sIH3zUbfw&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;hd=0' /><param name='allowfullscreen' value='true' /><param name='wmode' value='transparent' /><embed src='http://www.youtube.com/v/-2sIH3zUbfw&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;hd=0' type='application/x-shockwave-flash' allowfullscreen='true' width='425' height='350' wmode='transparent'></embed></object></span></p>
</div>]]></content:encoded>
</item>

</channel>
</rss>
