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

<channel>
	<title>SEO Tree Host</title>
	<atom:link href="http://blog.treehost.in.th/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.treehost.in.th</link>
	<description>seo,ทำ seo,รับทำ seo,เทคนิค seo,โปรโมทเว็บ</description>
	<lastBuildDate>Mon, 16 Apr 2012 22:18:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>CSF + WEBMIN</title>
		<link>http://blog.treehost.in.th/2012/04/17/csf-webmin/</link>
		<comments>http://blog.treehost.in.th/2012/04/17/csf-webmin/#comments</comments>
		<pubDate>Mon, 16 Apr 2012 22:18:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[firewall]]></category>
		<category><![CDATA[csf]]></category>
		<category><![CDATA[webmin]]></category>

		<guid isPermaLink="false">http://blog.treehost.in.th/?p=1415</guid>
		<description><![CDATA[http://nakuls77.wordpress.com/2012/01/18/csf-webmin/]]></description>
			<content:encoded><![CDATA[<p><a href="http://nakuls77.wordpress.com/2012/01/18/csf-webmin/">http://nakuls77.wordpress.com/2012/01/18/csf-webmin/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.treehost.in.th/2012/04/17/csf-webmin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>สร้าง Symbol link   /etc/rc.local</title>
		<link>http://blog.treehost.in.th/2012/04/13/%e0%b8%aa%e0%b8%a3%e0%b9%89%e0%b8%b2%e0%b8%87-symbol-link-etcrc-local/</link>
		<comments>http://blog.treehost.in.th/2012/04/13/%e0%b8%aa%e0%b8%a3%e0%b9%89%e0%b8%b2%e0%b8%87-symbol-link-etcrc-local/#comments</comments>
		<pubDate>Fri, 13 Apr 2012 06:12:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[webhosting]]></category>
		<category><![CDATA[rc.local]]></category>

		<guid isPermaLink="false">http://blog.treehost.in.th/?p=1413</guid>
		<description><![CDATA[centos #ln -s /etc/rc.d/rc.local /etc/rc.local]]></description>
			<content:encoded><![CDATA[<p><em><strong>centos</strong></em></p>
<p>#ln -s /etc/rc.d/rc.local /etc/rc.local</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.treehost.in.th/2012/04/13/%e0%b8%aa%e0%b8%a3%e0%b9%89%e0%b8%b2%e0%b8%87-symbol-link-etcrc-local/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zip a Folder in Linux</title>
		<link>http://blog.treehost.in.th/2012/04/07/zip-folder-linux/</link>
		<comments>http://blog.treehost.in.th/2012/04/07/zip-folder-linux/#comments</comments>
		<pubDate>Sat, 07 Apr 2012 12:58:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ไม่มีหมวดหมู่]]></category>
		<category><![CDATA[zip]]></category>
		<category><![CDATA[zip folder linux]]></category>
		<category><![CDATA[zip linux]]></category>

		<guid isPermaLink="false">http://blog.treehost.in.th/?p=1410</guid>
		<description><![CDATA[zip -9 -r &#60;zip file&#62; &#60;folder name&#62; To zip a single file: zip -9 &#60;zip file&#62; &#60;filename&#62; Use &#8220;-9&#8243; for best compression. The compressed file works fine with Windows XP compression tool.]]></description>
			<content:encoded><![CDATA[<p><code>zip -9 -r &lt;zip file&gt; &lt;folder name&gt;</code></p>
<p>To zip a single file:</p>
<p><code>zip -9 &lt;zip file&gt; &lt;filename&gt;</code></p>
<p>Use &#8220;-9&#8243; for best compression. The compressed file works fine with Windows XP compression tool.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.treehost.in.th/2012/04/07/zip-folder-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DA limits cronjob to max per user</title>
		<link>http://blog.treehost.in.th/2012/04/02/da-limits-cronjob-max-user/</link>
		<comments>http://blog.treehost.in.th/2012/04/02/da-limits-cronjob-max-user/#comments</comments>
		<pubDate>Sun, 01 Apr 2012 19:10:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[webhosting]]></category>
		<category><![CDATA[cronjob]]></category>
		<category><![CDATA[directadmin]]></category>

		<guid isPermaLink="false">http://blog.treehost.in.th/?p=1407</guid>
		<description><![CDATA[DA limits cronjob &#160; crontab -u username -e]]></description>
			<content:encoded><![CDATA[<h2 id="section-1">DA limits cronjob</h2>
<p>&nbsp;</p>
<pre>crontab -u <strong>username</strong> -e</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.treehost.in.th/2012/04/02/da-limits-cronjob-max-user/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ตรวจสอบว่าเครื่องถูกยิง และวิธีแก้ไขสถานการเบื้องต้น</title>
		<link>http://blog.treehost.in.th/2012/03/19/%e0%b8%95%e0%b8%a3%e0%b8%a7%e0%b8%88%e0%b8%aa%e0%b8%ad%e0%b8%9a%e0%b8%a7%e0%b9%88%e0%b8%b2%e0%b8%96%e0%b8%b9%e0%b8%81%e0%b8%a2%e0%b8%b4%e0%b8%87/</link>
		<comments>http://blog.treehost.in.th/2012/03/19/%e0%b8%95%e0%b8%a3%e0%b8%a7%e0%b8%88%e0%b8%aa%e0%b8%ad%e0%b8%9a%e0%b8%a7%e0%b9%88%e0%b8%b2%e0%b8%96%e0%b8%b9%e0%b8%81%e0%b8%a2%e0%b8%b4%e0%b8%87/#comments</comments>
		<pubDate>Sun, 18 Mar 2012 20:02:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[firewall]]></category>
		<category><![CDATA[iptables]]></category>

		<guid isPermaLink="false">http://blog.treehost.in.th/?p=1402</guid>
		<description><![CDATA[bunyiam: สืบเนื่องจากวันนี้ server ของน้องคนหนึ่งถูกกระหน่ำยิงจนไม่สามารถทำงานได้ แล้วผมก็เคยเห็นหลายๆ คนเคยตั้งคำถามไว้ว่าจะรู้ได้อย่างไรว่าเครื่องเราโดนยิงเข้าให้แล้ว วันนี้ก็ถือเป็นโอกาสอันดีที่จะนำความรู้เท่าหางอึงอันน้อยนิดนี้มาแบ่งกัน การตรวจสอบว่าเราถูกยิงหรือไม่ผ่านคำสั่ง netstat หลายๆ คนคงรู้วิธีใช้งาน netstat กันบ้างแล้ว คราวนี้จะมาดูวิธีการใช้งาน netstat อย่างประยุคๆ หน่อย &#8211; การใช้ netstat ตรวจสอบการถูกยิงด้วย syn คำสั่ง netstat -ntu &#124; grep SYN_RECV &#124; awk &#8216;{print $5}&#8217; &#124; cut -d: -f1 &#124; sort &#124; uniq -c &#124; sort -nr  อันนี้จะบอกว่า ณ ขณะเวลานั้นๆ มีคนส่ง syn เข้ามาเพื่อขอเชื่อมกับ server ของเรา โดยปกติไม่ควรเกิน 10 ครั้งต่อ<a class="moretag" href="http://blog.treehost.in.th/2012/03/19/%e0%b8%95%e0%b8%a3%e0%b8%a7%e0%b8%88%e0%b8%aa%e0%b8%ad%e0%b8%9a%e0%b8%a7%e0%b9%88%e0%b8%b2%e0%b8%96%e0%b8%b9%e0%b8%81%e0%b8%a2%e0%b8%b4%e0%b8%87/">&#160;&#160;Full Article&#8230;</a>
]]></description>
			<content:encoded><![CDATA[<p><strong>bunyiam</strong>:<br />
สืบเนื่องจากวันนี้ server ของน้องคนหนึ่งถูกกระหน่ำยิงจนไม่สามารถทำงานได้ แล้วผมก็เคยเห็นหลายๆ คนเคยตั้งคำถามไว้ว่าจะรู้ได้อย่างไรว่าเครื่องเราโดนยิงเข้าให้แล้ว วันนี้ก็ถือเป็นโอกาสอันดีที่จะนำความรู้เท่าหางอึงอันน้อยนิดนี้มาแบ่งกัน</p>
<p>การตรวจสอบว่าเราถูกยิงหรือไม่ผ่านคำสั่ง netstat<br />
หลายๆ คนคงรู้วิธีใช้งาน netstat กันบ้างแล้ว คราวนี้จะมาดูวิธีการใช้งาน netstat อย่างประยุคๆ หน่อย<br />
&#8211; การใช้ netstat ตรวจสอบการถูกยิงด้วย syn<br />
คำสั่ง netstat -ntu | grep SYN_RECV | awk &#8216;{print $5}&#8217; | cut -d: -f1 | sort | uniq -c | sort -nr  อันนี้จะบอกว่า ณ ขณะเวลานั้นๆ มีคนส่ง syn เข้ามาเพื่อขอเชื่อมกับ server ของเรา โดยปกติไม่ควรเกิน 10 ครั้งต่อ 1 IP หากเกินกว่านั้นท่าน Block ได้เลย<br />
&#8211; การใช้ netstat นับจำนวน connetion ของแต่ละ IP<br />
คำสั่ง netstat -ntu | grep ESTABLISHED | awk &#8216;{print $5}&#8217; | cut -d: -f1 | sort | uniq -c | sort -nr  อันนี้จะบอกว่า ณ ขณะเวลานั้นๆ แต่ละ IP มีการเชื่อมต่อกับเรากี่ connetion  โดยปกติไม่ควรเกิน 10-20 ครั้งต่อ 1 IP หากเกินกว่านั้นท่าน Block ได้เลย</p>
<p>การใช้ netstat ตรวจสอบได้กับ tcp จะง่าย แต่ถ้าเป็น udp icmp ผมจะใช้โปรแกรม iptraf ช่วยอีกแรง ดูง่ายหน่อย<br />
ติดตั้ง yum -y install iptraf<br />
วิธีใช้พิมพ์คำสั่ง iptraf จากนั้นดูว่ามี packet udp icmp วิงผิดปกติหรือเปล่า ถ้ามีก็ดู ip นั้นๆ แล้วนำมา block</p>
<p>การ Block ก็ง่ายๆ ไม่ยากด้วย iptables<br />
ตัวอย่าง</p>
<p>iptables -A INPUT -s xxx.xxx.xxx.xxx -j DROP ความหมาย -A = เพิ่ม (add), -s = IP ต้นทาง, -j DROP = Block IP นั้นซ่ะ</p>
<p>Block เป็น class</p>
<p>iptables -A INPUT -s xxx.xxx.xxx.xxx/xx -j DROP<br />
Block เป็น Protocal</p>
<p>iptables -A INPUT -p udp &#8211;dport 80 -j DROP ความหมาย -p = เลือก Protocal ที่ต้องการ (udp,tcp) , &#8211;dpoprt = Port ปลายทาง, &#8211;spoprt = Port ต้นทางทาง</p>
<p>แล้ว ก็ฝากเตือนทุกๆ คนที่ server โดยยิง ไม่ว่าจะอย่างไรห้ามยิงกลับเป็นอันขาดนะครับ ต้องป้องกันให้ดีที่สุด เก็บ log แล้วก็แจ้งความเท่านั้นนะครับ เพราะถ้าเรายิงกลับเราจะเป็นฝ่ายที่โดนจับเสียเอง</p>
<p>from : http://www.thaihosttalk.com</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.treehost.in.th/2012/03/19/%e0%b8%95%e0%b8%a3%e0%b8%a7%e0%b8%88%e0%b8%aa%e0%b8%ad%e0%b8%9a%e0%b8%a7%e0%b9%88%e0%b8%b2%e0%b8%96%e0%b8%b9%e0%b8%81%e0%b8%a2%e0%b8%b4%e0%b8%87/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IPTABLES เซ็ท ALLOW PORT</title>
		<link>http://blog.treehost.in.th/2012/03/03/iptables-%e0%b9%80%e0%b8%8b%e0%b9%87%e0%b8%97-port/</link>
		<comments>http://blog.treehost.in.th/2012/03/03/iptables-%e0%b9%80%e0%b8%8b%e0%b9%87%e0%b8%97-port/#comments</comments>
		<pubDate>Sat, 03 Mar 2012 03:42:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[firewall]]></category>
		<category><![CDATA[iptables]]></category>

		<guid isPermaLink="false">http://blog.treehost.in.th/?p=1396</guid>
		<description><![CDATA[# vi /etc/sysconfig/iptables &#160; ใส่คำสั่ง -A INPUT -p tcp -m tcp &#8211;dport 21 -j ACCEPT  # เปิด port 21 -A INPUT -p tcp -m tcp &#8211;dport 9000:9010 -j ACCEPT # เปิด port 9000-9010]]></description>
			<content:encoded><![CDATA[<p># vi /etc/sysconfig/iptables</p>
<p>&nbsp;</p>
<p>ใส่คำสั่ง</p>
<p>-A INPUT -p tcp -m tcp &#8211;dport 21 -j ACCEPT  # เปิด port 21</p>
<p>-A INPUT -p tcp -m tcp &#8211;dport 9000:9010 -j ACCEPT # เปิด port 9000-9010</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.treehost.in.th/2012/03/03/iptables-%e0%b9%80%e0%b8%8b%e0%b9%87%e0%b8%97-port/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>การลง ioncube loader บน linux และ directadmin</title>
		<link>http://blog.treehost.in.th/2012/02/11/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%a5%e0%b8%87-ioncube-loader-%e0%b8%9a%e0%b8%99-linux-%e0%b9%81%e0%b8%a5%e0%b8%b0-directadmin/</link>
		<comments>http://blog.treehost.in.th/2012/02/11/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%a5%e0%b8%87-ioncube-loader-%e0%b8%9a%e0%b8%99-linux-%e0%b9%81%e0%b8%a5%e0%b8%b0-directadmin/#comments</comments>
		<pubDate>Sat, 11 Feb 2012 00:10:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[webhosting]]></category>
		<category><![CDATA[ไม่มีหมวดหมู่]]></category>
		<category><![CDATA[ioncube loader]]></category>
		<category><![CDATA[zend]]></category>

		<guid isPermaLink="false">http://blog.treehost.in.th/?p=1392</guid>
		<description><![CDATA[cd /tmp/ wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz tar xvfz ioncube_loaders_lin_x86.tar.gz cd ioncube/ mkdir /usr/local/lib/ioncube mv ioncube_loader_lin_5.2.so /usr/local/lib/ioncube/ (ดูด้วยว่าลง php เวอร์ชันไหน ในที่นี้เป็น 5.2) nano /usr/local/lib/php.ini &#160; เพิ่มไว้ด้านบน หลัง [zend] [zend] zend_extension=/usr/local/lib/ioncube/ioncube_loader_lin_5.2.so /etc/init.d/httpd restart &#160; http://blog.resellerthailand.com/?p=4120]]></description>
			<content:encoded><![CDATA[<p>cd /tmp/</p>
<p>wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz</p>
<p>tar xvfz ioncube_loaders_lin_x86.tar.gz</p>
<p>cd ioncube/</p>
<p>mkdir /usr/local/lib/ioncube</p>
<p>mv ioncube_loader_lin_5.2.so /usr/local/lib/ioncube/ (ดูด้วยว่าลง php เวอร์ชันไหน ในที่นี้เป็น 5.2)</p>
<p>nano /usr/local/lib/php.ini</p>
<p>&nbsp;</p>
<p>เพิ่มไว้ด้านบน หลัง [zend]</p>
<p>[zend]</p>
<p>zend_extension=/usr/local/lib/ioncube/ioncube_loader_lin_5.2.so</p>
<p>/etc/init.d/httpd restart</p>
<p>&nbsp;</p>
<p><a href="http://blog.resellerthailand.com/?p=4120">http://blog.resellerthailand.com/?p=4120</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.treehost.in.th/2012/02/11/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%a5%e0%b8%87-ioncube-loader-%e0%b8%9a%e0%b8%99-linux-%e0%b9%81%e0%b8%a5%e0%b8%b0-directadmin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install  Lighttpd in Kloxo</title>
		<link>http://blog.treehost.in.th/2012/02/06/install-lighttpd-kloxo/</link>
		<comments>http://blog.treehost.in.th/2012/02/06/install-lighttpd-kloxo/#comments</comments>
		<pubDate>Mon, 06 Feb 2012 12:09:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[webhosting]]></category>
		<category><![CDATA[kloxo]]></category>
		<category><![CDATA[lighttpd]]></category>

		<guid isPermaLink="false">http://blog.treehost.in.th/?p=1389</guid>
		<description><![CDATA[http://myliteraturetechlife.com/how-to-install-lighttpd-in-kloxo-lxadmin/]]></description>
			<content:encoded><![CDATA[<p>http://myliteraturetechlife.com/how-to-install-lighttpd-in-kloxo-lxadmin/</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.treehost.in.th/2012/02/06/install-lighttpd-kloxo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>how to first install centos 6  64 bit</title>
		<link>http://blog.treehost.in.th/2012/02/06/install-centos-6-64-bit/</link>
		<comments>http://blog.treehost.in.th/2012/02/06/install-centos-6-64-bit/#comments</comments>
		<pubDate>Mon, 06 Feb 2012 12:06:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[webhosting]]></category>
		<category><![CDATA[centos 6]]></category>
		<category><![CDATA[yum install]]></category>
		<category><![CDATA[yum update]]></category>

		<guid isPermaLink="false">http://blog.treehost.in.th/?p=1384</guid>
		<description><![CDATA[คนขี้เกียจแบบผมก็ก๊อบวางครับ yum update # rpm -Uvh http://mirrors.thzhost.com/epel/6/x86_64/epel-release-6-5.noarch.rpm # yum -y install gcc-c++ make patch screen wget quota ncftp bind bind-utils caching-nameserver which bison flex webalizer patch openssl-devel.x86_64 curl-devel.x86_64 e2fsprogs-devel.x86_64 perl-DBI ntp tcpdump iptables telnet traceroute rsync openssh-clients perl-Term-ReadKey autoconf rpm-build vim-enhanced nginx automake libaio libcurl-devel # yum -y install cpan # yum -y install screen<a class="moretag" href="http://blog.treehost.in.th/2012/02/06/install-centos-6-64-bit/">&#160;&#160;Full Article&#8230;</a>
]]></description>
			<content:encoded><![CDATA[<p><strong><span style="color: #0000ff;">คนขี้เกียจแบบผมก็ก๊อบวางครับ</span></strong></p>
<p>yum update</p>
<p>#</p>
<p>rpm -Uvh http://mirrors.thzhost.com/epel/6/x86_64/epel-release-6-5.noarch.rpm</p>
<p>#</p>
<p>yum -y install gcc-c++ make patch screen wget quota ncftp bind bind-utils caching-nameserver which bison flex webalizer patch openssl-devel.x86_64 curl-devel.x86_64 e2fsprogs-devel.x86_64 perl-DBI ntp tcpdump iptables telnet traceroute rsync openssh-clients perl-Term-ReadKey autoconf rpm-build vim-enhanced nginx automake libaio libcurl-devel</p>
<p>#</p>
<p>yum -y install cpan</p>
<p>#</p>
<p>yum -y install screen nano wget</p>
<p>#</p>
<p>yum -y install system-config-firewall</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.treehost.in.th/2012/02/06/install-centos-6-64-bit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install zend optimizer on Directadmin</title>
		<link>http://blog.treehost.in.th/2012/02/05/install-zend-optimizer-directadmin/</link>
		<comments>http://blog.treehost.in.th/2012/02/05/install-zend-optimizer-directadmin/#comments</comments>
		<pubDate>Sun, 05 Feb 2012 12:39:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[webhosting]]></category>
		<category><![CDATA[directadmin]]></category>
		<category><![CDATA[zend]]></category>
		<category><![CDATA[zend optimizer]]></category>

		<guid isPermaLink="false">http://blog.treehost.in.th/?p=1380</guid>
		<description><![CDATA[Steps : vi /usr/local/directadmin/custombuild/options.conf Make &#8220;zend=yes&#8221; cd /usr/local/directadmin/custombuild ./build update ./build zend]]></description>
			<content:encoded><![CDATA[<h2 id="section-1">Steps :</h2>
<p>vi /usr/local/directadmin/custombuild/options.conf</p>
<p>Make &#8220;zend=yes&#8221;</p>
<p>cd /usr/local/directadmin/custombuild</p>
<pre>./build update</pre>
<p>./build zend</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.treehost.in.th/2012/02/05/install-zend-optimizer-directadmin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

