<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    <title>JOMYUT.NET - LAMP Server</title>
    <link>http://diary.jomyut.net/</link>
    <description>Blog</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.3 - http://www.s9y.org/</generator>
    <pubDate>Mon, 21 Apr 2008 16:20:36 GMT</pubDate>

    <image>
        <url>http://diary.jomyut.net/templates/default/img/s9y_banner_small.png</url>
        <title>RSS: JOMYUT.NET - LAMP Server - Blog</title>
        <link>http://diary.jomyut.net/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>suPHP - Make it low performance machine</title>
    <link>http://diary.jomyut.net/archives/1302-suPHP-Make-it-low-performance-machine.html</link>
            <category>LAMP Server</category>
    
    <comments>http://diary.jomyut.net/archives/1302-suPHP-Make-it-low-performance-machine.html#comments</comments>
    <wfw:comment>http://diary.jomyut.net/wfwcomment.php?cid=1302</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://diary.jomyut.net/rss.php?version=2.0&amp;type=comments&amp;cid=1302</wfw:commentRss>
    

    <author>nospam@example.com (JOMYUT.NET)</author>
    <content:encoded>
    &lt;p&gt;&lt;font style=&quot;BACKGROUND-COLOR: #faffff&quot;&gt;การปรับมาใช้ suPHP จะต้องปรับ PHP Engine จาก CLI เป็น CGI ซึ่งผลของการทำงานเมื่อทำงานร่วมกับ suPHP พบว่ามีการใช้งาน CPU หนักขึ้นเท่าตัว ดังภาพเป็นรายละเอียดของการปรับมาใช้ suPHP เริ่มตั้งแต่ช่วงตีสามวันอาทิตย์ จะเห็นได้ว่ากราฟการทำงานของระบบโดยรวมสูงขึ้นมากๆ&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;a class=&quot;serendipity_image_link&quot; href=&quot;http://diary.jomyut.net/media/General/locomotive_cpusum-suphp.png&quot; target=&quot;_blank&quot;&gt;&lt;img class=&quot;serendipity_image_center&quot; style=&quot;BORDER-RIGHT: 0px; PADDING-RIGHT: 5px; BORDER-TOP: 0px; PADDING-LEFT: 5px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px&quot; height=&quot;89&quot; src=&quot;http://diary.jomyut.net/media/General/locomotive_cpusum-suphp.thumb.png&quot; width=&quot;330&quot; /&gt;&lt;/a&gt; &lt;/p&gt;&lt;p&gt; &lt;/p&gt; 
    </content:encoded>

    <pubDate>Mon, 21 Apr 2008 23:20:36 +0700</pubDate>
    <guid isPermaLink="false">http://diary.jomyut.net/archives/1302-guid.html</guid>
    
</item>
<item>
    <title>DirectAdmin and suPHP</title>
    <link>http://diary.jomyut.net/archives/1298-DirectAdmin-and-suPHP.html</link>
            <category>LAMP Server</category>
    
    <comments>http://diary.jomyut.net/archives/1298-DirectAdmin-and-suPHP.html#comments</comments>
    <wfw:comment>http://diary.jomyut.net/wfwcomment.php?cid=1298</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://diary.jomyut.net/rss.php?version=2.0&amp;type=comments&amp;cid=1298</wfw:commentRss>
    

    <author>nospam@example.com (JOMYUT.NET)</author>
    <content:encoded>
    &lt;br /&gt;
&lt;p&gt;วันนี้ทำการติดตั้ง suPHP กับ DirectAdmin ต้องเปลี่ยน PHP จาก CLI -&amp;gt; CGI แล้วก็ปรับ Mode ของ Directory ที่มีอยู่ รายละเอียดมีดังนี้&lt;/p&gt;&lt;ol&gt;&lt;li&gt;cd /usr/local/directadmin/custombuild/&lt;/li&gt;&lt;li&gt;./build update&lt;/li&gt;&lt;li&gt;./build clean&lt;/li&gt;&lt;li&gt;./build suphp&lt;/li&gt;&lt;li&gt;แก้ไขไฟล์ options.conf&lt;br /&gt;-&amp;gt; เปลี่ยน PHP จาก CLI -&amp;gt; CGI&lt;/li&gt;&lt;li&gt;./build php&lt;/li&gt;&lt;li&gt;เสร็จแล้ว ก็ไปปรับ Directory ห้าม Mode เกิน 755 และ User ของไฟล์ PHP จะต้องเป็น user:user&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Sun, 20 Apr 2008 05:57:55 +0700</pubDate>
    <guid isPermaLink="false">http://diary.jomyut.net/archives/1298-guid.html</guid>
    <category>directadmin</category>
<category>suphp</category>

</item>
<item>
    <title>CSLoxinfo Proxy</title>
    <link>http://diary.jomyut.net/archives/1297-CSLoxinfo-Proxy.html</link>
            <category>LAMP Server</category>
    
    <comments>http://diary.jomyut.net/archives/1297-CSLoxinfo-Proxy.html#comments</comments>
    <wfw:comment>http://diary.jomyut.net/wfwcomment.php?cid=1297</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://diary.jomyut.net/rss.php?version=2.0&amp;type=comments&amp;cid=1297</wfw:commentRss>
    

    <author>nospam@example.com (JOMYUT.NET)</author>
    <content:encoded>
    &lt;p&gt;&lt;b&gt;CS-Loxinfo Proxy Setting&lt;/b&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;http://proxy.csloxinfo.com:8080&lt;/li&gt;&lt;li&gt;export http_proxy=http://proxy.csloxinfo.com:8080&lt;/li&gt;&lt;li&gt;export ftp_proxy=http://proxy.csloxinfo.com:8080&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Sun, 20 Apr 2008 05:30:40 +0700</pubDate>
    <guid isPermaLink="false">http://diary.jomyut.net/archives/1297-guid.html</guid>
    <category>csloxinfo</category>
<category>proxy</category>

</item>
<item>
    <title>Billing System Software</title>
    <link>http://diary.jomyut.net/archives/1295-Billing-System-Software.html</link>
            <category>LAMP Server</category>
    
    <comments>http://diary.jomyut.net/archives/1295-Billing-System-Software.html#comments</comments>
    <wfw:comment>http://diary.jomyut.net/wfwcomment.php?cid=1295</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://diary.jomyut.net/rss.php?version=2.0&amp;type=comments&amp;cid=1295</wfw:commentRss>
    

    <author>nospam@example.com (JOMYUT.NET)</author>
    <content:encoded>
    &lt;br /&gt;
&lt;p&gt;&lt;b&gt;Software Lists&lt;/b&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;&lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/www.whmcs.com/index.php&#039;);&quot;  href=&quot;http://www.whmcs.com/index.php&quot;&gt;WHMCompleteSolution&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/www.invoicingmanager.com/&#039;);&quot;  href=&quot;http://www.invoicingmanager.com/&quot;&gt;Invoicing Manager&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/www.awbs.com/index.php&#039;);&quot;  href=&quot;http://www.awbs.com/index.php&quot;&gt;AWBS&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/www.licensepal.com/&#039;);&quot;  href=&quot;http://www.licensepal.com/&quot;&gt;LicensePal&lt;/a&gt; - WHMCompleteSolution reseller&lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/www.awbs.com/index.php&#039;);&quot;  href=&quot;http://www.awbs.com/index.php&quot;&gt;&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Sat, 19 Apr 2008 18:45:28 +0700</pubDate>
    <guid isPermaLink="false">http://diary.jomyut.net/archives/1295-guid.html</guid>
    <category>billing</category>
<category>hosting software</category>
<category>invoice</category>

</item>
<item>
    <title>Server: Optimization</title>
    <link>http://diary.jomyut.net/archives/1278-Server-Optimization.html</link>
            <category>LAMP Server</category>
    
    <comments>http://diary.jomyut.net/archives/1278-Server-Optimization.html#comments</comments>
    <wfw:comment>http://diary.jomyut.net/wfwcomment.php?cid=1278</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://diary.jomyut.net/rss.php?version=2.0&amp;type=comments&amp;cid=1278</wfw:commentRss>
    

    <author>nospam@example.com (JOMYUT.NET)</author>
    <content:encoded>
    &lt;br /&gt;
&lt;p&gt;Disable IPv6 [&lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/www.ubuntugeek.com/how-to-disable-ipv6-in-ubuntu.html&#039;);&quot;  href=&quot;http://www.ubuntugeek.com/how-to-disable-ipv6-in-ubuntu.html&quot;&gt;Ref&lt;/a&gt;]&lt;/p&gt;&lt;p&gt;- /etc/modprobe.d/aliases&lt;/p&gt;&lt;p&gt;Find: alias net-pf-10 ipv6&lt;br /&gt;Replace: alias net-pf-10 off&lt;/p&gt;&lt;p&gt;MRTG monitoring - Estrablish connection [&lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/golfreeze.212cafe.com/archive/2006-08-09/establish-tcp-connection-mrtg/&#039;);&quot;  href=&quot;http://golfreeze.212cafe.com/archive/2006-08-09/establish-tcp-connection-mrtg/&quot;&gt;Ref&lt;/a&gt;] [&lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:&amp;lt;u&amp;gt;Ch23&amp;lt;/u&amp;gt;:_Advanced_MRTG_for_Linux&#039;);&quot;  href=&quot;http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:&lt;u&gt;Ch23&lt;/u&gt;:_Advanced_MRTG_for_Linux&quot;&gt;Interesting resource&lt;/a&gt;]&lt;/p&gt; 
    </content:encoded>

    <pubDate>Wed, 19 Mar 2008 06:57:08 +0700</pubDate>
    <guid isPermaLink="false">http://diary.jomyut.net/archives/1278-guid.html</guid>
    <category>modprobe</category>
<category>mrtg</category>
<category>ubuntu</category>

</item>
<item>
    <title>ClamAV Reference</title>
    <link>http://diary.jomyut.net/archives/1277-ClamAV-Reference.html</link>
            <category>LAMP Server</category>
    
    <comments>http://diary.jomyut.net/archives/1277-ClamAV-Reference.html#comments</comments>
    <wfw:comment>http://diary.jomyut.net/wfwcomment.php?cid=1277</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://diary.jomyut.net/rss.php?version=2.0&amp;type=comments&amp;cid=1277</wfw:commentRss>
    

    <author>nospam@example.com (JOMYUT.NET)</author>
    <content:encoded>
    ClamAV Installation Test [&lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/flakshack.com/anti-spam/wiki/index.php?page=Test+ClamAV&#039;);&quot;  href=&quot;http://flakshack.com/anti-spam/wiki/index.php?page=Test+ClamAV&quot;&gt;Ref&lt;/a&gt;]&lt;p&gt;DirectAdmin&lt;/p&gt;&lt;p&gt;DirectAdmin and ClamAV [&lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/www.directadmin.com/forum/showthread.php?p=107380&#039;);&quot;  href=&quot;http://www.directadmin.com/forum/showthread.php?p=107380&quot;&gt;Ref&lt;/a&gt;] [&lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/www.mneylon.com/blog/archives/2006/01/16/installing-mailscanner-on-directadmin-with-exim/&#039;);&quot;  href=&quot;http://www.mneylon.com/blog/archives/2006/01/16/installing-mailscanner-on-directadmin-with-exim/&quot;&gt;Ref&lt;/a&gt;] [&lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/www.directadmin.com/forum/showthread.php?t=3860&#039;);&quot;  href=&quot;http://www.directadmin.com/forum/showthread.php?t=3860&quot;&gt;Ref&lt;/a&gt;] &lt;/p&gt;&lt;p&gt;Virus Mail Tester Tools [&lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/www.declude.com/Articles.asp?ID=99&#039;);&quot;  href=&quot;http://www.declude.com/Articles.asp?ID=99&quot;&gt;Ref&lt;/a&gt;] [&lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/www.efextra.com/filtertest.asp&#039;);&quot;  href=&quot;http://www.efextra.com/filtertest.asp&quot;&gt;Ref&lt;/a&gt;] /&lt;/p&gt;&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Tue, 18 Mar 2008 11:10:31 +0700</pubDate>
    <guid isPermaLink="false">http://diary.jomyut.net/archives/1277-guid.html</guid>
    
</item>
<item>
    <title>DirectAdmin: Bandwidth Calculation</title>
    <link>http://diary.jomyut.net/archives/1274-DirectAdmin-Bandwidth-Calculation.html</link>
            <category>LAMP Server</category>
    
    <comments>http://diary.jomyut.net/archives/1274-DirectAdmin-Bandwidth-Calculation.html#comments</comments>
    <wfw:comment>http://diary.jomyut.net/wfwcomment.php?cid=1274</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://diary.jomyut.net/rss.php?version=2.0&amp;type=comments&amp;cid=1274</wfw:commentRss>
    

    <author>nospam@example.com (JOMYUT.NET)</author>
    <content:encoded>
    &lt;br /&gt;
&lt;p&gt;&lt;b&gt;Bandwidth and Direct Admin Control &lt;/b&gt;&lt;/p&gt;&lt;p&gt;1. Calculate Bandwidth usage and Disk Space usage&lt;/p&gt;&lt;p&gt;# echo &#039;action=tally&amp;amp;value=all&#039; &amp;gt;&amp;gt; /usr/local/directadmin/data/task.queue&lt;/p&gt;&lt;p&gt;2. Reset all bandwidth usage and disk space usage&lt;/p&gt;&lt;p&gt;# echo &amp;quot;action=reset&amp;amp;value=all&amp;quot; &amp;gt;&amp;gt; /usr/local/directadmin/data/task.queue&lt;/p&gt;&lt;p&gt;3. Command to run task queue of DirectAdmin&lt;/p&gt;&lt;p&gt;# /usr/local/directadmin/dataskq (Direct Admin Task Queue)&lt;/p&gt;&lt;p&gt;&lt;b&gt;Bandwidth mod_cband control&lt;/b&gt;&lt;/p&gt;&lt;p&gt;http://www.directadmin.com/forum/showthread.php?t=23554&amp;amp;highlight=bandwidth&lt;/p&gt;&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Sun, 16 Mar 2008 15:44:20 +0700</pubDate>
    <guid isPermaLink="false">http://diary.jomyut.net/archives/1274-guid.html</guid>
    <category>directadmin</category>

</item>
<item>
    <title>Postfix: unknown user</title>
    <link>http://diary.jomyut.net/archives/1270-Postfix-unknown-user.html</link>
            <category>LAMP Server</category>
    
    <comments>http://diary.jomyut.net/archives/1270-Postfix-unknown-user.html#comments</comments>
    <wfw:comment>http://diary.jomyut.net/wfwcomment.php?cid=1270</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://diary.jomyut.net/rss.php?version=2.0&amp;type=comments&amp;cid=1270</wfw:commentRss>
    

    <author>nospam@example.com (JOMYUT.NET)</author>
    <content:encoded>
    &lt;br /&gt;
&lt;p&gt;ปัญหา Postfix กับอีเมล์ตีกลับ เพราะ Unknow User&lt;/p&gt;&lt;p&gt;วันนี้เซิฟเวอร์มีปัญหา โดยคุณชนะ (BBAquarium.com) ได้แจ้งมาว่า ไม่สามารถส่งข้อมูลจากฟอร์ม เข้าอีเมล์ info@bbaquarium.com ได้ โดยที่ BBAquarium.com ใช้ Mail Server ของ Google Mail อยู่&lt;/p&gt;&lt;p&gt;&lt;u&gt;&lt;b&gt;Workaround&lt;/b&gt;&lt;/u&gt;&lt;/p&gt;&lt;p&gt;/etc/postfix/vhcs2/domains&lt;br /&gt;/etc/vhcs2/postfix/working/domains&lt;/p&gt;&lt;p&gt;ให้ทำการ Remove Domain name ที่ต้องการจะส่งไปยัง Google Mail ออก ในที่นี้คือ bbaquarium.com แล้วสั่ง /etc/init.d/postfix reload เป็นอันเสร็จสิ้น&lt;/p&gt;&lt;p&gt;&lt;u&gt;&lt;b&gt;สาเหตุ&lt;/b&gt;&lt;/u&gt;&lt;/p&gt;&lt;p&gt;จากความเข้าใจเบื้องต้น เนื่องจากรายชื่อดังกล่าว อยู่ในกลุ่มของ Virtual User ดังนั้น Postfix จึงค้นหา Mailbox ของ User ภายใต้ Domain name ดังกล่าวก่อน เมื่อไม่พบ จึงได้แจ้งอีเมล์ออกมาว่าไม่มี User นั้นๆในระบบ&lt;/p&gt;&lt;p&gt;&lt;font color=&quot;#ff0000&quot;&gt;&lt;u&gt;&lt;b&gt;Update&lt;/b&gt;&lt;/u&gt;: 06 Mar 2008 เผลอลบ rm -rf /var/www/vhcs2/gui ไป จึงใช้วิธีการดึงจาก SVN Repository แต่ไม่แน่ใจว่ามีไฟล์ใดได้รับผลกระทบหรือไม&lt;/font&gt;่&lt;/p&gt;&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Thu, 06 Mar 2008 02:55:49 +0700</pubDate>
    <guid isPermaLink="false">http://diary.jomyut.net/archives/1270-guid.html</guid>
    <category>postfix</category>
<category>vhcs2</category>

</item>
<item>
    <title>Linux: Useful Package and Query Package</title>
    <link>http://diary.jomyut.net/archives/1135-Linux-Useful-Package-and-Query-Package.html</link>
            <category>LAMP Server</category>
    
    <comments>http://diary.jomyut.net/archives/1135-Linux-Useful-Package-and-Query-Package.html#comments</comments>
    <wfw:comment>http://diary.jomyut.net/wfwcomment.php?cid=1135</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://diary.jomyut.net/rss.php?version=2.0&amp;type=comments&amp;cid=1135</wfw:commentRss>
    

    <author>nospam@example.com (JOMYUT.NET)</author>
    <content:encoded>
    &lt;h3&gt;Useful Package&lt;/h3&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;hddtemp &lt;/b&gt;- for query temperature on Harddisk with S.M.A.R.T technology [&lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/www.cyberciti.biz/tips/howto-monitor-hard-drive-temperature.html&#039;);&quot;  href=&quot;http://www.cyberciti.biz/tips/howto-monitor-hard-drive-temperature.html&quot;&gt;Ref&lt;/a&gt;]&lt;/li&gt;&lt;li&gt;&lt;b&gt;smartd &lt;/b&gt;- monitoring and harddisk self-test [&lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/www.cyberciti.biz/tips/monitoring-hard-disk-health-with-smartd-under-linux-or-unix-operating-systems.html&#039;);&quot;  href=&quot;http://www.cyberciti.biz/tips/monitoring-hard-disk-health-with-smartd-under-linux-or-unix-operating-systems.html&quot;&gt;Ref&lt;/a&gt;]&lt;/li&gt;&lt;li&gt;&lt;b&gt;RRDTool&lt;/b&gt; - (Doesn&#039;t review yet, but overview look very useful, it is like mrtg, ganglia), The linux monitoring graph [&lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/www.cyberciti.biz/tips/howto-monitor-hard-drive-temperature.html&#039;);&quot;  href=&quot;http://www.cyberciti.biz/tips/howto-monitor-hard-drive-temperature.html&quot;&gt;Ref&lt;/a&gt;]&lt;/li&gt;&lt;/ul&gt;&lt;h3&gt;Query Package&lt;/h3&gt;&lt;ul&gt;&lt;li&gt;This is a way to query package which installed in the system [&lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/www.linuxquestions.org/questions/ubuntu-63/how-to-save-a-list-of-installed-packages-and-install-these-packages-later-393191/&#039;);&quot;  href=&quot;http://www.linuxquestions.org/questions/ubuntu-63/how-to-save-a-list-of-installed-packages-and-install-these-packages-later-393191/&quot;&gt;Ref #1&lt;/a&gt;,&lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/ubuntuforums.org/showthread.php?t=261366&#039;);&quot;  href=&quot;http://ubuntuforums.org/showthread.php?t=261366&quot;&gt;Ref #2&lt;/a&gt;]&lt;br /&gt;# &lt;font color=&quot;#990099&quot;&gt;dpkg -l&lt;/font&gt;&lt;/li&gt;&lt;li&gt;Another way, open &lt;font color=&quot;#990066&quot;&gt;/etc/dpkg/dpkg.cfg&lt;/font&gt; and looking at log file path&lt;/li&gt;&lt;li&gt;By default, &lt;font color=&quot;#ff3300&quot;&gt;/var/log/dpkg.log, dpkg.log.gz.1 ,....&lt;/font&gt;&lt;br /&gt;This path show installed date/time of each package&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Sat, 20 Oct 2007 20:03:09 +0700</pubDate>
    <guid isPermaLink="false">http://diary.jomyut.net/archives/1135-guid.html</guid>
    <category>apt-get</category>
<category>dpkg</category>
<category>linux</category>
<category>monitoring</category>

</item>
<item>
    <title>Apache Optimization</title>
    <link>http://diary.jomyut.net/archives/1127-Apache-Optimization.html</link>
            <category>LAMP Server</category>
    
    <comments>http://diary.jomyut.net/archives/1127-Apache-Optimization.html#comments</comments>
    <wfw:comment>http://diary.jomyut.net/wfwcomment.php?cid=1127</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://diary.jomyut.net/rss.php?version=2.0&amp;type=comments&amp;cid=1127</wfw:commentRss>
    

    <author>nospam@example.com (JOMYUT.NET)</author>
    <content:encoded>
    &lt;br /&gt;
&lt;p&gt;Optimizing the server,&lt;/p&gt;&lt;p&gt;&lt;u&gt;Server Model&lt;/u&gt;&lt;/p&gt;&lt;p&gt;IBM Resource: http://www.ibm.com/developerworks/linux/library/l-tune-lamp-2.html&lt;/p&gt;&lt;p&gt;&lt;u&gt;Keep Alive Time&lt;/u&gt;&lt;/p&gt;&lt;p&gt;Apache Help: http://httpd.apache.org/docs/2.0/mod/core.html#limit&lt;/p&gt; 
    </content:encoded>

    <pubDate>Fri, 12 Oct 2007 17:37:00 +0700</pubDate>
    <guid isPermaLink="false">http://diary.jomyut.net/archives/1127-guid.html</guid>
    <category>apache</category>
<category>optimization</category>

</item>
<item>
    <title>SSH: Brust force attacking</title>
    <link>http://diary.jomyut.net/archives/1126-SSH-Brust-force-attacking.html</link>
            <category>LAMP Server</category>
    
    <comments>http://diary.jomyut.net/archives/1126-SSH-Brust-force-attacking.html#comments</comments>
    <wfw:comment>http://diary.jomyut.net/wfwcomment.php?cid=1126</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://diary.jomyut.net/rss.php?version=2.0&amp;type=comments&amp;cid=1126</wfw:commentRss>
    

    <author>nospam@example.com (JOMYUT.NET)</author>
    <content:encoded>
    &lt;br /&gt;
Today, I am monitoring my server and found the unidentify connection (&lt;font color=&quot;#0000ff&quot;&gt;netstat -pant&lt;/font&gt;) over port 22 (Secure Shell). I take more investigate by query &lt;font color=&quot;#cc0000&quot;&gt;&lt;i&gt;/var/log/auth.log&lt;/i&gt;&lt;/font&gt; and found that someone try to attack my secure shell&lt;p&gt;&lt;font color=&quot;#ff33cc&quot;&gt;-------------- Auth.log -------------&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font color=&quot;#ff33cc&quot;&gt;Oct 12 15:48:28 locomotive sshd[3443]: Failed password for root from 59.144.32.29 port 49121 ssh2&lt;br /&gt;Oct 12 15:48:30 locomotive sshd[3459]: (pam_unix) authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=speed.ktk.airtelbroadband.in  user=root&lt;br /&gt;Oct 12 15:48:32 locomotive sshd[3459]: Failed password for root from 59.144.32.29 port 49570 ssh2&lt;br /&gt;Oct 12 15:48:34 locomotive sshd[3467]: (pam_unix) authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=speed.ktk.airtelbroadband.in  user=root&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font color=&quot;#ff33cc&quot;&gt;---------------------------------------&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;
So, I play with them. Investigate the source of attacker by resolve the origin of IP address, one attacker come from india, and another one come from china if the ip address database is up-to-date.&lt;/p&gt;&lt;p&gt;I have not block them yet because they can brust force attack at 3 passwords / seconds also the user doesn&#039;t exist in my server, so I play more to practise myself to handle the attacker&lt;/p&gt;&lt;p&gt;&lt;font color=&quot;#ff66cc&quot;&gt;-------------- Information from netstat -----------------&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font color=&quot;#ff66cc&quot;&gt;tcp6       0      0 :::22                   :::*                    LISTEN     4485/sshd           &lt;br /&gt;tcp6       0  0 ::ffff:203.146.249.194:22 ::ffff:59.144.32.29:33676 ESTABLISHED3123/sshd: root [pr &lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font color=&quot;#ff66cc&quot;&gt;-------------------------------------------------------&lt;/font&gt;&lt;/p&gt;&lt;p&gt;It is simple to block them from the system by use iptables policy like this&lt;/p&gt;&lt;p&gt;# &lt;font color=&quot;#0000ff&quot;&gt;iptables -I INPUT 1 -s 59.144.32.29 -j DROP&lt;/font&gt;&lt;/p&gt;&lt;p&gt;so, before I&#039;m end my work, I will monitoring the behaviour of these attacker.&lt;/p&gt;&lt;p&gt;Prevent attacker from root attacking&lt;/p&gt;&lt;ul&gt;&lt;li&gt;vi /etc/ssh/sshd_config &amp;lt;this depended on your linux dist.&amp;gt;&lt;/li&gt;&lt;li&gt;insert below line&lt;br /&gt;PermitRootLogin no&lt;/li&gt;&lt;li&gt;after that, save file&lt;/li&gt;&lt;li&gt;restart the service&lt;/li&gt;&lt;li&gt;now, your secure shell cannot be login with root account&lt;/li&gt;&lt;/ul&gt; 
    </content:encoded>

    <pubDate>Fri, 12 Oct 2007 15:49:05 +0700</pubDate>
    <guid isPermaLink="false">http://diary.jomyut.net/archives/1126-guid.html</guid>
    <category>attack</category>
<category>denial-of-service</category>
<category>iptables</category>
<category>log</category>

</item>
<item>
    <title>Linux: Enable/Disable su command</title>
    <link>http://diary.jomyut.net/archives/1108-Linux-EnableDisable-su-command.html</link>
            <category>LAMP Server</category>
    
    <comments>http://diary.jomyut.net/archives/1108-Linux-EnableDisable-su-command.html#comments</comments>
    <wfw:comment>http://diary.jomyut.net/wfwcomment.php?cid=1108</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://diary.jomyut.net/rss.php?version=2.0&amp;type=comments&amp;cid=1108</wfw:commentRss>
    

    <author>nospam@example.com (JOMYUT.NET)</author>
    <content:encoded>
    &lt;br /&gt;
&lt;p&gt;This is technical to enable/disable su command in linux (enable root account in alternative meaning)&lt;/p&gt;&lt;p&gt;To Enable:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;sudo &lt;i&gt;password&lt;/i&gt; root&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;To Disable:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;sudo &lt;i&gt;password&lt;/i&gt; -l root&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;When disable root account, you can use the root privillage by following command&lt;/p&gt;&lt;ul&gt;&lt;li&gt;sudo -i&lt;/li&gt;&lt;li&gt;sudo su -&lt;/li&gt;&lt;/ul&gt;Above command act as &amp;quot;&lt;i&gt;su -&lt;/i&gt;&amp;quot;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Ref:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;http://www.debianadmin.com/enable-and-disable-ubuntu-root-password.html&lt;/li&gt;&lt;li&gt;https://help.ubuntu.com/community/RootSudo&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Mon, 01 Oct 2007 01:08:18 +0700</pubDate>
    <guid isPermaLink="false">http://diary.jomyut.net/archives/1108-guid.html</guid>
    
</item>
<item>
    <title>Postfix: ปัญหา Postfix กับ VHCS</title>
    <link>http://diary.jomyut.net/archives/1015-Postfix-Postfix-VHCS.html</link>
            <category>LAMP Server</category>
    
    <comments>http://diary.jomyut.net/archives/1015-Postfix-Postfix-VHCS.html#comments</comments>
    <wfw:comment>http://diary.jomyut.net/wfwcomment.php?cid=1015</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://diary.jomyut.net/rss.php?version=2.0&amp;type=comments&amp;cid=1015</wfw:commentRss>
    

    <author>nospam@example.com (JOMYUT.NET)</author>
    <content:encoded>
    &lt;br /&gt;
&lt;p&gt;คราวก่อน เคยเขียนเรื่อง Postfix กับการส่งเมล์ภายในโดเมนตัวเองไปแล้ว ที่จะต้องไปปรับ local_transport เป็น smtp เพื่อบังคับให้ Postfix ทำการส่งเมล์ผ่าน SMTP Gateway ซึ่งจะมีการเช็คว่า mail ที่เราส่งนั้น จะต้องส่งไปที่ใด เนื่องจาก local_transport=local จะทำให้ตัว Postfix ไม่มีการ Lookup MX Record เพิ่มเติม แต่จะยัดลง Local ทันที ซึงผลทำให้ ถ้าหาก Domain name นั้นๆ ไม่ได้ใช้ Mail server เครื่องดังกล่าว เมล์ก็จะหายไปด้วย ไม่มีการแจ้งเตือนกลับมาอย่างไร ว่าเจ้าของไม่ได้รับ เพราะว่าเมล์มันส่งสำเร็จ แต่อยู่ผิดที่ผิดทาง เหมือนส่งไปรษณีย์ไปยังบ้านเก่า ที่เจ้าของบ้าน ก็เช็คกล่องจดหมายเฉพาะบ้านที่อยู่ปัจจุบันเท่านั้น&lt;/p&gt;&lt;p&gt;นอกเหนือจากต้องเซ็ต local_transport เป็น smtp แล้ว ยังจะต้องเซ็ต map ของ local ให้เป็นค่าว่างอีกด้วย ซึ่งค่าโดยปกติ จะเป็นค่า Username/Password ของระบบ ซึ่งผลทำให้ ถ้าหากชื่อเมล์ที่เราส่งถึง มันไม่มีรายชื่อในนี้ ก็จะไม่สามารถส่งได้นั้นเอง&lt;/p&gt;&lt;p&gt;จริงๆ มันอาจจะไม่ใช่วิธีที่ถูกต้องที่สุด แต่มันก็เป็นวิธีการที่ทำให้เมล์ส่งถึงเมล์เซิร์ฟเวอร์ ของโดเมนที่อยู่ในเครื่องได้ถูกที่ถูกทาง&lt;/p&gt;&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Sat, 11 Aug 2007 22:03:43 +0700</pubDate>
    <guid isPermaLink="false">http://diary.jomyut.net/archives/1015-guid.html</guid>
    
</item>
<item>
    <title>Server: Denial-of-Service</title>
    <link>http://diary.jomyut.net/archives/998-Server-Denial-of-Service.html</link>
            <category>LAMP Server</category>
    
    <comments>http://diary.jomyut.net/archives/998-Server-Denial-of-Service.html#comments</comments>
    <wfw:comment>http://diary.jomyut.net/wfwcomment.php?cid=998</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://diary.jomyut.net/rss.php?version=2.0&amp;type=comments&amp;cid=998</wfw:commentRss>
    

    <author>nospam@example.com (JOMYUT.NET)</author>
    <content:encoded>
    &lt;br /&gt;
&lt;p&gt;Yesterday, I cannot connect to comscience.net because the server got SYN_RECV from one IP address that send to my server to make denial-of-service. I am quickly checking the system and find the solution to block that IP address to send SYN_RECV.&lt;/p&gt;&lt;p&gt;I try to ask some expert but they doesn&#039;t know the way to resolve my problem until I call to Arm (Compman). He give some advisements to me by use iptables with specific parameter.&lt;/p&gt;&lt;p&gt;#iptables -I INPUT [line number] -s [ipaddress] -j DROP&lt;br /&gt;#iptables -I INPUT 1 -s 203.xxx.xxx.xxx -j DROP&lt;/p&gt;&lt;p&gt;that&#039;s work! They gone. After the attack over 2 hours. After that, I looking for the information of that IP Address and keep some logs from my server. Now prepare the information for the police station that I don&#039;t know they can help me to find the person from that IP address or not.///&lt;/p&gt;&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Thu, 02 Aug 2007 22:21:29 +0700</pubDate>
    <guid isPermaLink="false">http://diary.jomyut.net/archives/998-guid.html</guid>
    
</item>
<item>
    <title>Postfix : ส่งเมล์เข้า Localhost</title>
    <link>http://diary.jomyut.net/archives/996-Postfix-Localhost.html</link>
            <category>LAMP Server</category>
    
    <comments>http://diary.jomyut.net/archives/996-Postfix-Localhost.html#comments</comments>
    <wfw:comment>http://diary.jomyut.net/wfwcomment.php?cid=996</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://diary.jomyut.net/rss.php?version=2.0&amp;type=comments&amp;cid=996</wfw:commentRss>
    

    <author>nospam@example.com (JOMYUT.NET)</author>
    <content:encoded>
    &lt;br /&gt;
&lt;p&gt;มีปัญหากับ Postfix ที่ใช้ทำ Hosting ว่า มันส่งเมล์ของโดเมนของตัวมันเองไม่ได้ จะส่งเข้า Local ตลอด เดิมที เคยแก้แ้ล้ว แล้วอยู่ๆค่า Configuration เปลี่ยนไป วันนี้เลยมาโน๊ตไว้กันลืม&lt;/p&gt;&lt;p&gt;สามารถแก้ไขได้ด้วยการเปลี่ยน local_transport จาก local เป็น smtp&lt;/p&gt;&lt;p&gt;เพราะว่า local daemon มันจะส่งเข้า mailbox ใน shell โลด ไม่มีการเช็คอะไรเพิ่มเติม ในขณะที่ smtp จะเช็คว่า MX Record ของโดเมนนั้น แท้จริงอยู่ที่ไหน.&lt;/p&gt;&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Tue, 31 Jul 2007 23:53:39 +0700</pubDate>
    <guid isPermaLink="false">http://diary.jomyut.net/archives/996-guid.html</guid>
    
</item>

</channel>
</rss>