<?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>NamHuy &#187; Security</title>
	<atom:link href="http://namhuy.org/blog/category/security/feed/" rel="self" type="application/rss+xml" />
	<link>http://namhuy.org/blog</link>
	<description>Includes news, help, tutorials, programming, tips and how-to guides for Linux, UNIX, and BSD</description>
	<lastBuildDate>Fri, 20 Jan 2012 19:37:47 +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>Do HTTP authentication over HTTPS with URL rewriting</title>
		<link>http://namhuy.org/blog/2012/01/20/do-http-authentication-over-https-with-url-rewriting/</link>
		<comments>http://namhuy.org/blog/2012/01/20/do-http-authentication-over-https-with-url-rewriting/#comments</comments>
		<pubDate>Fri, 20 Jan 2012 19:37:47 +0000</pubDate>
		<dc:creator>Huy Tran</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Tips - Tricks]]></category>

		<guid isPermaLink="false">http://namhuy.org/blog/?p=347</guid>
		<description><![CDATA[I am trying to protect the ~/public_html/dev directory using http auth basic, but to make that secure I want to run it over ssl. The middle section of the below .htaccess file switches to https if the request URI begins &#8230; <a href="http://namhuy.org/blog/2012/01/20/do-http-authentication-over-https-with-url-rewriting/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I am trying to protect the ~/public_html/dev directory using http auth basic, but to make that secure I want to run it over ssl.</p>
<p>The middle section of the below .htaccess file switches to https if the request URI begins with /dev and works.</p>
<p>The last section of the file works as well but does not work properly with the https redirect.</p>
<p>I basically want to be able to type http://www.namhuy.org/dev/some_sub_dir/ and be redirected to https://www.namhuy.org/dev/some_sub_dir/ and prompted for the http auth username and password.</p>
<p>What currently happens is if I go to http://www.namhuy.org/dev/some_sub_dir/ I get prompted for a username and password over port 80, and then immediately get prompted again over port 443. So my credentials are being sent twice, once in the clear, and once encrypted. Making the whole https url rewrite a little pointless.</p>
<p>The reason for doing this is so that I won&#8217;t be able to accidentally submit my user/pass over http; https will always be used to access the /dev directory.</p>
<p>Create a file /etc/httpd/conf.d/test.conf with:</p>
<p>&lt;Directory &#8220;/var/www/html/dev&#8221;&gt;<br />
#<br />
# force HTTPS<br />
#<br />
RewriteEngine On<br />
RewriteCond %{HTTPS} off<br />
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}<br />
&lt;/Directory&gt;</p>
<p>&#8230;and then adding the following inside /etc/httpd/conf.d/ssl.conf just above the &lt;/VirtualHost&gt; tag:</p>
<p>&lt;Directory &#8220;/var/www/html/dev&#8221;&gt;<br />
#<br />
# require authentication<br />
#<br />
AuthType Basic<br />
AuthName &#8220;Please Log In&#8221;<br />
AuthUserFile /var/www/auth/passwords<br />
Require valid-user<br />
&lt;/Directory&gt;</p>
<div class="bottomcontainerBox" style="background-color:#F0F4F9;">
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fnamhuy.org%2Fblog%2F2012%2F01%2F20%2Fdo-http-authentication-over-https-with-url-rewriting%2F&amp;layout=button_count&amp;show_faces=false&amp;width=80&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=80px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://namhuy.org/blog/2012/01/20/do-http-authentication-over-https-with-url-rewriting/"></g:plusone>
			</div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://namhuy.org/blog/2012/01/20/do-http-authentication-over-https-with-url-rewriting/"  data-text="Do HTTP authentication over HTTPS with URL rewriting" data-count="horizontal">Tweet</a>
			</div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://namhuy.org/blog/2012/01/20/do-http-authentication-over-https-with-url-rewriting/"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div>]]></content:encoded>
			<wfw:commentRss>http://namhuy.org/blog/2012/01/20/do-http-authentication-over-https-with-url-rewriting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux defacements and Linux hacking</title>
		<link>http://namhuy.org/blog/2011/11/15/linux-defacements-and-linux-hacking/</link>
		<comments>http://namhuy.org/blog/2011/11/15/linux-defacements-and-linux-hacking/#comments</comments>
		<pubDate>Tue, 15 Nov 2011 17:36:26 +0000</pubDate>
		<dc:creator>Huy Tran</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[freeware]]></category>
		<category><![CDATA[hackers]]></category>
		<category><![CDATA[Hacking]]></category>
		<category><![CDATA[Hacking Linux]]></category>
		<category><![CDATA[internet security]]></category>
		<category><![CDATA[Linux hacking]]></category>
		<category><![CDATA[Red Hat]]></category>

		<guid isPermaLink="false">http://namhuy.org/blog/?p=329</guid>
		<description><![CDATA[Zone-h.org has an excellent site to see defacements and what is going on across the internet.   Reviewing the archives and live defacements, Linux is defaced (hacked) more times than Windows.   What exactly does this mean?  Is Linux unsafe? &#8230; <a href="http://namhuy.org/blog/2011/11/15/linux-defacements-and-linux-hacking/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://zone-h.org/archive/published=0" target="_blank">Zone-h.org </a>has an excellent site to see defacements and what is going on across the internet.   Reviewing the archives and live defacements, Linux is defaced (hacked) more times than Windows.   What exactly does this mean?  Is Linux unsafe?  Not at all.  It truly falls on the administrator who configured Linux.   There is a false sense of security when you install Linux based on all of the sites and forums that support Linux’s ability to be safe and reliable.   Truly it can be the safest if the following holds true -</p>
<ul>
<li>Proper configuration</li>
<li>Updates</li>
<li>Reading materials</li>
<li>Frequent penetration tests</li>
<li>Monitoring and logging</li>
<li>Experience with advanced configurations</li>
</ul>
<p><a href="http://zone-h.org/archive/published=0" target="_blank">Zone-h archives</a></p>
<p>All operating systems have vulnerabilities.  And yes Apple, Microsoft and Linux is only as safe as the end user.</p>
<div class="bottomcontainerBox" style="background-color:#F0F4F9;">
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fnamhuy.org%2Fblog%2F2011%2F11%2F15%2Flinux-defacements-and-linux-hacking%2F&amp;layout=button_count&amp;show_faces=false&amp;width=80&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=80px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://namhuy.org/blog/2011/11/15/linux-defacements-and-linux-hacking/"></g:plusone>
			</div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://namhuy.org/blog/2011/11/15/linux-defacements-and-linux-hacking/"  data-text="Linux defacements and Linux hacking" data-count="horizontal">Tweet</a>
			</div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://namhuy.org/blog/2011/11/15/linux-defacements-and-linux-hacking/"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div>]]></content:encoded>
			<wfw:commentRss>http://namhuy.org/blog/2011/11/15/linux-defacements-and-linux-hacking/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Free products for Web Content Filtering</title>
		<link>http://namhuy.org/blog/2011/01/31/free-products-for-web-content-filtering/</link>
		<comments>http://namhuy.org/blog/2011/01/31/free-products-for-web-content-filtering/#comments</comments>
		<pubDate>Mon, 31 Jan 2011 18:43:02 +0000</pubDate>
		<dc:creator>Huy Tran</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Tips - Tricks]]></category>
		<category><![CDATA[content]]></category>
		<category><![CDATA[filter]]></category>
		<category><![CDATA[filtering]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://namhuy.org/blog/?p=201</guid>
		<description><![CDATA[I figured I’d post about a few web content filtering solutions I’ve come across over the years. Good for setting up kid computers or an entire network for content filtering. There are products a church might recommend like CovenantEyes accountability &#8230; <a href="http://namhuy.org/blog/2011/01/31/free-products-for-web-content-filtering/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I figured I’d post about a few web content filtering solutions I’ve come across over the years.  Good for setting up kid computers or an entire network for content filtering.  There are products a church might recommend like CovenantEyes accountability software but why pay for something that is out there for free?<br />
<span id="more-201"></span><br />
<a title="K9 web protection" href="http://www1.k9webprotection.com/?namhuy.org" target="_blank">K9 Web Protection </a></p>
<p>This and Windows Live Safety are my first choices for a kid computer.  K9 is a free product offered by Blue Coat Systems which make content filtering solutions for businesses.  Giving away a free home client isn’t where they make their money so it’s nice they offer something for home users that utilizes their corporate filtering technologies.  From what I’ve seen it is a free download, you can set up a parental password to override a blocked site, select from predefined site categories to block, set up email to audit what was visited, password protect the installation so someone can’t remote the app without knowing the password you used to secure the installation.  Essentially everything I’d expect in a paid product.</p>
<p><a title="windows live safety" href="http://explore.live.com/windows-live-family-safety?os=other?namhuy.org" target="_blank">Windows Live Safety</a></p>
<p>A part of the Windows Live Essentials pack.  Free content filtering from Microsoft.  This is on my list for the same reasons as the K9 Web filtering software above and I could see this being something a mom would put on her child’s computer.  It’s a nice solution because it hooks into Windows well by leveraging features of Windows that we users tend to ignore, such as Windows Parental controls and whatnot.</p>
<p><a title="opendns" href="http://www.opendns.com/?namhuy.org" target="_blank">OpenDNS</a></p>
<p>Kicking it up a notch we get to solutions that can either be used on a per computer basis or blanket a whole home.  DNS stands for Domain Name Services.  DNS servers are what your computer and network use to translate internet addresses to domain names.  Example: go to your favorite web browser and paste 74.125.47.103 into it and you’ll be directed to google.com.  By default your Internet provider has dynamically set you up to use their DNS servers.  Unless you live in China you’re service provider doesn’t regulate what sites you go to but for the purposes of content filtering you can use 3rd party DNS servers which categorize content for you for easy filtering.  All of these solutions are doing this same filtering but OpenDNS is one of the services that doesn’t necessarily require a client software install but can also be used by configuring your home router to use OpenDNS servers instead of your ISP’s to resolve domain names.  The way their site works is you sign up and set up your content filters.  You’d then either set up your child’s computer to point to their DNS servers or just plug them into your router’s setup instead of your ISP’s.  Pretty easy if you take a moment to figure it out and they have pretty good instructions on how to do it since it sounds confusing.</p>
<p><a title="untangle" href="http://www.untangle.com/?namhuy.org" target="_blank">Untangle</a></p>
<p>Kicking it up the extra notch.  If you’re a bit more savvy with a computer this would be my last free solution.  This product is a Ubuntu-based distribution (Linux) which clicks you through setting up a computer as a security appliance gateway on your network.  Definitely a higher skillset than any other solution as you have to understand a bit more about networks but in the end it’s a network security appliance that rivals products a company might pay a chunk of change for.  I suppose I won’t go into much details but this product bundles open source web content filtering, virus scanning, intrusion detection, firewall, protocol filtering, ad filtering… etc.  Consider this if you are a geek that likes free stuff.  You’d need an old computer with 2 network cards in it you can dedicate to running this product.  A big gain for me is adblocking.  You don’t know what it’s like to go from having programs that block ads on web pages to using a computer that doesn’t block ads.</p>
<p>In all we have 4 solutions that perform the same function of content filtering.  Some client-side and some for whole network filtering.  Some do just content filtering and others are bundled with much more.  Any of these could be combined and work just fine though going to a website and having it filtered 4 times would make browsing slower.  If I was setting this up for a child I’d pick a client-side program.  When I think of OpenDNS I consider that my ISP’s DNS servers are likely closer to my network and would likely be a little quicker on resolving domain names but for whole network protection it’d be the easiest to set up.  If I can afford using an old computer as an appliance I’d use Untangle, though I have to know how to set it up.</p>
<p>Rest assured you could set up K9 or Windows Family Safety in a matter of minutes.</p>
<div class="bottomcontainerBox" style="background-color:#F0F4F9;">
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fnamhuy.org%2Fblog%2F2011%2F01%2F31%2Ffree-products-for-web-content-filtering%2F&amp;layout=button_count&amp;show_faces=false&amp;width=80&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=80px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://namhuy.org/blog/2011/01/31/free-products-for-web-content-filtering/"></g:plusone>
			</div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://namhuy.org/blog/2011/01/31/free-products-for-web-content-filtering/"  data-text="Free products for Web Content Filtering" data-count="horizontal">Tweet</a>
			</div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://namhuy.org/blog/2011/01/31/free-products-for-web-content-filtering/"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div>]]></content:encoded>
			<wfw:commentRss>http://namhuy.org/blog/2011/01/31/free-products-for-web-content-filtering/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>network diagnostic using mtr</title>
		<link>http://namhuy.org/blog/2010/09/17/network-diagnostic-using-mtr/</link>
		<comments>http://namhuy.org/blog/2010/09/17/network-diagnostic-using-mtr/#comments</comments>
		<pubDate>Fri, 17 Sep 2010 17:40:48 +0000</pubDate>
		<dc:creator>Huy Tran</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Tips - Tricks]]></category>
		<category><![CDATA[diagnostic]]></category>
		<category><![CDATA[mtr]]></category>
		<category><![CDATA[network]]></category>

		<guid isPermaLink="false">http://namhuy.org/blog/?p=112</guid>
		<description><![CDATA[There is a few ways to diagnose network problem, and tools like ping, and traceroute, are indispensable for the task. Here’s another tools that, is useful. mtr. mtr can be seen as a combination of ping and traceroute. When started &#8230; <a href="http://namhuy.org/blog/2010/09/17/network-diagnostic-using-mtr/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>There is a few ways to diagnose network problem, and tools like ping, and traceroute, are indispensable for the task.</p>
<p>Here’s another tools that, is useful. mtr. mtr can be seen as a combination of ping and traceroute. When started it runs as a ncurses program. And what make it interesting is that, it shows the result, live. To me it’s interesting. There is 2 version in the ubuntu repository, one is mtr, another is mtr-tiny. The version I use, is mtr-tiny, which do not have x11 support. to install it on ubuntu, is a matter of<br />
sudo apt-get install mtr or sudo apt-get install mtr-tiny</p>
<p>To run in is a matter of</p>
<blockquote><p>mtr destination(could be address or URL)</p></blockquote>
<p>or to leave ncurses, useful if you want to redirect the output to a file.</p>
<blockquote><p>mtr -r destination</p></blockquote>
<p>or to run on certain cycle</p>
<blockquote><p>mtr -c 10 destination</p></blockquote>
<p>or you can combine it</p>
<blockquote><p>mtr -c 10 -r destination</p></blockquote>
<div class="bottomcontainerBox" style="background-color:#F0F4F9;">
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fnamhuy.org%2Fblog%2F2010%2F09%2F17%2Fnetwork-diagnostic-using-mtr%2F&amp;layout=button_count&amp;show_faces=false&amp;width=80&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=80px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://namhuy.org/blog/2010/09/17/network-diagnostic-using-mtr/"></g:plusone>
			</div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://namhuy.org/blog/2010/09/17/network-diagnostic-using-mtr/"  data-text="network diagnostic using mtr" data-count="horizontal">Tweet</a>
			</div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://namhuy.org/blog/2010/09/17/network-diagnostic-using-mtr/"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div>]]></content:encoded>
			<wfw:commentRss>http://namhuy.org/blog/2010/09/17/network-diagnostic-using-mtr/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSH Tunneling Made Easy</title>
		<link>http://namhuy.org/blog/2010/08/02/ssh-tunneling-made-easy/</link>
		<comments>http://namhuy.org/blog/2010/08/02/ssh-tunneling-made-easy/#comments</comments>
		<pubDate>Tue, 03 Aug 2010 03:00:43 +0000</pubDate>
		<dc:creator>Huy Tran</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Tips - Tricks]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[SSH Tunneling]]></category>

		<guid isPermaLink="false">http://namhuy.org/blog/?p=106</guid>
		<description><![CDATA[Using OpenSSH on a Linux/Unix system you can tunnel all of the traffic from your local box to a remote box that you have an account on. For example I tunnel all of my outbound E-mail traffic back to my &#8230; <a href="http://namhuy.org/blog/2010/08/02/ssh-tunneling-made-easy/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Using <a title="openssh" href="http://www.openssh.org/" target="_blank">OpenSSH</a> on a Linux/Unix system you can tunnel all of the traffic from your local box to a remote box that you have an account on.</p>
<p>For example I tunnel all of my outbound E-mail traffic back to my personal server to avoid having to change SMTP servers, use SMTP-AUTH, etc. when I am behind firewalls. I find that hotel firewalls, wireless access points, and the other various NATing devices you end up behind while traveling often do not play nice.</p>
<p>To do this I use the following:</p>
<p>ssh -f user@personal-server.com -L 2000:personal-server.com:25 -N</p>
<p>The -f tells ssh to go into the background just before it executes the command. This is followed by the username and server you are logging into. The <strong>-L 2000:personal-server.com:25</strong> is in the form of -L local-port:host:remote-port. Finally the <strong>-N</strong> instructs OpenSSH to not execute a command on the remote system.</p>
<p>This essentially forwards the local port 2000 to port 25 on personal-server.com over, with nice benefit of being encrypted. I then simply point my E-mail client to use <strong>localhost:2000</strong> as the SMTP server and we&#8217;re off to the races.</p>
<p>Another useful feature of port forwarding is for getting around pesky firewall restrictions. For example, a firewall I was behind recently did not allow outbound Jabber protocol traffic to talk.google.com. With this command:</p>
<p>ssh -f -L 3000:talk.google.com:5222 home -N</p>
<p>I was able to send my Google Talk traffic encrypted through the firewall back to my server at home and then out to Google. All I had to do was reconfigure my Jabber client to use localhost as the server and the port 3000 that I had configured.</p>
<div class="bottomcontainerBox" style="background-color:#F0F4F9;">
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fnamhuy.org%2Fblog%2F2010%2F08%2F02%2Fssh-tunneling-made-easy%2F&amp;layout=button_count&amp;show_faces=false&amp;width=80&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=80px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://namhuy.org/blog/2010/08/02/ssh-tunneling-made-easy/"></g:plusone>
			</div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://namhuy.org/blog/2010/08/02/ssh-tunneling-made-easy/"  data-text="SSH Tunneling Made Easy" data-count="horizontal">Tweet</a>
			</div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://namhuy.org/blog/2010/08/02/ssh-tunneling-made-easy/"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div>]]></content:encoded>
			<wfw:commentRss>http://namhuy.org/blog/2010/08/02/ssh-tunneling-made-easy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux Security Hole Goes Back Eight Years</title>
		<link>http://namhuy.org/blog/2009/08/23/linux-security-hole-goes-back-eight-years/</link>
		<comments>http://namhuy.org/blog/2009/08/23/linux-security-hole-goes-back-eight-years/#comments</comments>
		<pubDate>Sun, 23 Aug 2009 23:20:07 +0000</pubDate>
		<dc:creator>Huy Tran</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[debain]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[security hole]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://namhuy.org/blog/2009/08/23/linux-security-hole-goes-back-eight-years/</guid>
		<description><![CDATA[Here’s another deep chink in the armor of the braindead zealots who claim Linux is inherently more secure than Windows. Julien Tinnes and Tavis Ormandy have found what could be the widest ranging vulnerability yet discovered in the Linux kernel. &#8230; <a href="http://namhuy.org/blog/2009/08/23/linux-security-hole-goes-back-eight-years/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Here’s another deep chink in the armor of the braindead zealots who claim Linux is inherently more secure than Windows. <a href="http://blog.cr0.org/2009/08/linux-null-pointer-dereference-due-to.html">Julien Tinnes</a> and <a href="http://archives.neohapsis.com/archives/fulldisclosure/2009-08/0174.html">Tavis Ormandy</a> have found what could be the widest ranging vulnerability yet discovered in the Linux kernel.</p>
<p>Affected versions include all Linux 2.4 and2.6 versions since May 2001. This spans 2.4.4 up to and including 2.4.37.4 in the 2.4 kernel and every iteration of 2.6 from 2.6.0 up to and including 2.6.30.4.</p>
<p>What is this vulnerability all about? Functions in certain kernel routines are left uninitialized, so pointers aren’t validated before dereferencing. This allows local execution of code (sample POC available in both articles linked above) which compromises the machine. Compromise? Yes, pwnt.</p>
<p>These are known affected modules according to <a href="https://bugzilla.redhat.com/show_bug.cgi?id=516949">Redhat’s bugzilla</a>:<br />
ipx.ko<br />
irda.ko<br />
x25.ko<br />
ax25.ko<br />
bluetooth.ko<br />
sctp.ko<br />
pppoe.ko<br />
pppox.ko<br />
appletalk.ko</p>
<p>That thread offers mitigation possibilities (and some commenters — see <a href="https://bugzilla.redhat.com/show_bug.cgi?id=516949#c32">#32</a> and <a href="https://bugzilla.redhat.com/show_bug.cgi?id=516949#c48">#48</a> — explain why those steps won’t work). According to <a href="https://bugzilla.redhat.com/show_bug.cgi?id=516949#c27">post #27</a> in that thread, the exploit is already being used (as of about a week ago as I write this) to attack machines: “They entered the system through a web application exploit and then used the exploit to gain a root shell.”</p>
<p>This gets to the bigger problems of security. If you think of Linux as only the kernel or even the kernel plus the utilities that make it a functioning operating system, you’re seeing only one layer of vulnerability. Add another layer of complexity with various software and you’re adding more complexity and, accordingly exponentially more layers of vulnerability. If someone can get in through one door, he can often find “keys” to open other doors. That in a nutshell is what happens in cases like #27 in the Redhat bugzilla thread.</p>
<p>Fedora, Debian, and Ubuntu have reportedly already patched for this kernel issue.</p>
<div class="bottomcontainerBox" style="background-color:#F0F4F9;">
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fnamhuy.org%2Fblog%2F2009%2F08%2F23%2Flinux-security-hole-goes-back-eight-years%2F&amp;layout=button_count&amp;show_faces=false&amp;width=80&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=80px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://namhuy.org/blog/2009/08/23/linux-security-hole-goes-back-eight-years/"></g:plusone>
			</div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://namhuy.org/blog/2009/08/23/linux-security-hole-goes-back-eight-years/"  data-text="Linux Security Hole Goes Back Eight Years" data-count="horizontal">Tweet</a>
			</div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://namhuy.org/blog/2009/08/23/linux-security-hole-goes-back-eight-years/"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div>]]></content:encoded>
			<wfw:commentRss>http://namhuy.org/blog/2009/08/23/linux-security-hole-goes-back-eight-years/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CVS server on Ubuntu</title>
		<link>http://namhuy.org/blog/2008/02/05/cvs-server-on-ubuntu/</link>
		<comments>http://namhuy.org/blog/2008/02/05/cvs-server-on-ubuntu/#comments</comments>
		<pubDate>Tue, 05 Feb 2008 23:46:39 +0000</pubDate>
		<dc:creator>Huy Tran</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Tips - Tricks]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[CVS server]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://namhuy.org/blog/2008/02/05/cvs-server-on-ubuntu/</guid>
		<description><![CDATA[Install CVS files: sudo apt-get install cvs Install the CVS server: sudo apt-get install cvsd When prompted in the cvsd installation process for Repository, type in “/cvsrepo”. Now that the cvsd installation in complete goto /var/lib/cvsd or seeking for a &#8230; <a href="http://namhuy.org/blog/2008/02/05/cvs-server-on-ubuntu/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><span style="font-size: 85%">Install CVS files:<br />
<strong><span style="color: #ff0000">sudo apt-get install cvs</span></strong></span></p>
<p>Install the CVS server:<br />
<strong><span style="color: #ff0000">sudo apt-get install cvsd</span></strong></p>
<p>When prompted in the cvsd installation process for Repository, type in “/cvsrepo”.</p>
<p>Now that the cvsd installation in complete goto /var/lib/cvsd<br />
<span style="font-size: 85%">or seeking for a change(or if there is a new version of cvs updated):</span></p>
<p><span style="font-size: 85%"><strong><span style="color: #ff0000">sudo cvsd-buildroot /var/lib/cvsd</span></strong></span><br />
If the folder cvsrepo does not exist, then create it ..<br />
<strong><span style="color: #ff0000">sudo mkdir cvsrepo</span></strong><br />
<strong><span style="color: #ff0000">sudo chown -R cvsd:cvsd cvsrepo</span><br />
</strong><br />
and then initilize the repository<br />
<span style="color: #ff0000"><strong>sudo cvs -d /var/lib/cvsd/cvsrepo init</strong></span><br />
create a user and password<br />
<span style="color: #ff0000"><strong>sudo cvsd-passwd /var/lib/cvsd/cvsrepo +username</strong></span><br />
<span style="font-family: 宋体">sudo vi /</span><span style="font-family: Times New Roman"><strong><span style="color: #ff0000">/var/lib/cvsd/cvsrepo/CVSROOT/config</span></strong></span><br />
<span style="font-family: Times New Roman"><strong><span style="color: #ff0000">Change &#8220;SystemAuto=no&#8221;</span></strong><br />
</span><br />
<span style="font-family: Times New Roman"><span style="font-family: 宋体">Test</span></span><br />
<span style="font-family: Times New Roman"></span><br />
<span style="font-family: Times New Roman"><span style="color: #ff0000"><strong><span style="font-family: 宋体">cvs -d :pserver:username@localhost:/</span><span style="font-family: Times New Roman">cvsrepo login</span></strong></span></span></p>
<p><span style="font-family: Times New Roman"><span style="color: #ff0000"><strong><span style="font-family: 宋体">cvs -d :pserver:username@localhost:/</span><span style="font-family: Times New Roman">cvsrepo checkout .</span></strong></span></span></p>
<div class="bottomcontainerBox" style="background-color:#F0F4F9;">
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fnamhuy.org%2Fblog%2F2008%2F02%2F05%2Fcvs-server-on-ubuntu%2F&amp;layout=button_count&amp;show_faces=false&amp;width=80&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=80px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://namhuy.org/blog/2008/02/05/cvs-server-on-ubuntu/"></g:plusone>
			</div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://namhuy.org/blog/2008/02/05/cvs-server-on-ubuntu/"  data-text="CVS server on Ubuntu" data-count="horizontal">Tweet</a>
			</div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://namhuy.org/blog/2008/02/05/cvs-server-on-ubuntu/"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div>]]></content:encoded>
			<wfw:commentRss>http://namhuy.org/blog/2008/02/05/cvs-server-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Securing Linux Server with IPKungfu</title>
		<link>http://namhuy.org/blog/2007/10/31/securing-linux-server-with-ipkungfu/</link>
		<comments>http://namhuy.org/blog/2007/10/31/securing-linux-server-with-ipkungfu/#comments</comments>
		<pubDate>Wed, 31 Oct 2007 08:01:55 +0000</pubDate>
		<dc:creator>Huy Tran</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Tips - Tricks]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[iptables]]></category>

		<guid isPermaLink="false">http://namhuy.org/blog/2007/10/31/securing-linux-server-with-ipkungfu/</guid>
		<description><![CDATA[Ipkungfu or linuxkungfu is an iptables firewall script. With ipkungfu, you can easily configure as to which port of the server will be opened for connection, restrict who can access the server plus other security features. You can refer to &#8230; <a href="http://namhuy.org/blog/2007/10/31/securing-linux-server-with-ipkungfu/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.linuxkungfu.org/" target="_blank">Ipkungfu</a> or <a href="http://www.linuxkungfu.org/" target="_blank">linuxkungfu</a> is an iptables firewall script. With ipkungfu, you can easily configure as to which port of the server will be opened for connection, restrict who can access the server plus other security features. You can refer to the website of ipkungfu at <a href="http://www.linuxkungfu.org/" target="_blank">http://www.linuxkungfu.org/</a> for the list of complete features.</p>
<p>Ipkungfu is available a the <a href="http://namhuy.org/blog/category/open-source/linux/ubuntu/" target="_blank">Ubuntu</a> repositories. To install ubuntu,</p>
<blockquote><p># aptitude install ipkungfu</p></blockquote>
<p>Ipkungfu should now be working.</p>
<p>After installing ipkungfu, type<span id="more-39"></span></p>
<blockquote><p># ipkungfu</p></blockquote>
<p>to configure ipkungfu and answer “yes” if you are prompted.</p>
<blockquote><p>At this point, if you connecting remotely via ssh, make sure you are not disconnected because by default, ipkungfu is blocking all incoming connections. If you are working directly at the terminal, then there’s no problem. Open the file /etc/ipkungfu/services.conf</p></blockquote>
<p>and append ACCEPT beside the port that you want to open.</p>
<blockquote><p># Service Names and Protocols are lowercase, Targets are UPPERCASE.<br />
#<br />
# Example:<br />
# ssh:22:tcp:ACCEPT<br />
ftp-data:20:tcp<br />
ftp:21:tcp<br />
ssh:22:tcp:ACCEPT<br />
telnet:23:tcp<br />
smtp:25:tcp<br />
domain:53:tcp<br />
bootps:63:tcp<br />
http:80:tcp:ACCEPT<br />
pop3:110:tcp<br />
auth:113:tcp<br />
ntp:123:tcp<br />
imap:143:tcp<br />
https:443:tcp<br />
imaps:993:tcp<br />
pop3s:995:tcp<br />
socks:1080:tcp<br />
# Add your services below. The rule is:<br />
# ServiceName:ServicePort:Protocol[:ACCEPT|DROP|REJECT|or any valid target)] # extra comments<br />
#</p></blockquote>
<p>The, save the file. In the example, I have allowed connection for ports 22 (SSH) and 80 (HTTP). Open the file</p>
<blockquote><p>/etc/ipkungfu/ipkungfu.conf</p></blockquote>
<p>and configure it based on your server’s setting and your preferred setting.</p>
<blockquote><p># =========================================================================<br />
# $Id: ipkungfu.conf 57 2005-11-02 17:04:20Z s0undt3ch $<br />
# =========================================================================<br />
# Please read the README and FAQ for more information<br />
# Some distros (most notably Redhat) don&#8217;t have<br />
# everything we need in $PATH so we specify it here.<br />
# Make sure modprobe, iptables, and route are here,<br />
# as well as ordinary items such as echo and grep.</p>
<p># Default is as shown in the example below.<br />
#PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin:/usr/local/sbin</p>
<p># Set the path to ipkungfu&#8217;s runtime error log.<br />
# Default: /var/log/ipkungfu.log<br />
#IPKUNGFU_LOG=</p>
<p># Your external interface<br />
# This is the one that connects to the internet.<br />
# Ipkungfu will detect this if you don&#8217;t specify.<br />
EXT_NET=&#8221;eth0&#8243;<br />
#EXT_NET=&#8221;eth1&#8243;<br />
#EXT_NET=&#8221;ppp0&#8243;</p>
<p># Your internal interfaces, if any.  If you have more<br />
# than 1 internal interface, separate them with<br />
# spaces.  If you only have one interface, put &#8220;lo&#8221;<br />
# here. Default is auto-detected.<br />
#INT_NET=&#8221;eth0&#8243;<br />
#INT_NET=&#8221;eth1&#8243;<br />
#INT_NET=&#8221;lo&#8221;</p>
<p># IP Range of your internal network.  Use &#8220;127.0.0.1&#8243;<br />
# for a standalone machine.  Default is a reasonable<br />
# guess. Separate multiple ranges with spaces.<br />
#LOCAL_NET=&#8221;192.168.0.0/255.255.0.0 10.0.0.0/255.0.0.0&#8243;</p>
<p># Set this to 0 for a standalone machine, or 1 for<br />
# a gateway device to share an Internet connection.<br />
# Default is 1.<br />
GATEWAY=0</p>
<p># TCP ports you want to allow for incoming traffic<br />
# Don&#8217;t add ports here that you intend to forward.<br />
# This should be a list of tcp ports that have<br />
# servers listening on them on THIS machine,<br />
# separated by spaces. You can add port ranges<br />
# delimited by hyphens, such as &#8220;20-22&#8243;. Default<br />
# is none.<br />
#ALLOWED_TCP_IN=&#8221;22 80&#8243;</p>
<p># UDP ports to allow for incoming traffic<br />
# See the comments above for ALLOWED_TCP_IN<br />
#ALLOWED_UDP_IN=&#8221;"</p>
<p># Temporarily block future connection attempts from an<br />
# IP that hits these ports (If module is present)<br />
# Hits to these ports will be logged as &#8220;BADGUY&#8221; hits<br />
# regardless of log.conf settings.<br />
FORBIDDEN_PORTS=&#8221;135 137 139&#8243;</p>
<p># Drop all ping packets?<br />
# Set to 1 for yes, 0 for no. Default is no.<br />
BLOCK_PINGS=0</p>
<p># Possible values here are &#8220;DROP&#8221;, &#8220;REJECT&#8221;, or &#8220;MIRROR&#8221;<br />
#<br />
# &#8220;DROP&#8221; means your computer will not respond at all. &#8220;Stealth mode&#8221;<br />
#<br />
# &#8220;REJECT&#8221; means your computer will respond with a<br />
# message that the packet was rejected.<br />
#<br />
# &#8220;MIRROR&#8221;, if your kernel supports it, will swap the source and<br />
#   destination IP addresses, and send the offending packet back<br />
#   where it came from.  USE WITH EXTREME CAUTION! Only use this if you fully<br />
#   understand the consequences.<br />
#<br />
# The safest option, and the default in each case,,  is &#8220;DROP&#8221;. Don&#8217;t change<br />
# unless you fully understand this.<br />
# What to do with &#8216;probably malicious&#8217; packets<br />
#SUSPECT=&#8221;REJECT&#8221;<br />
SUSPECT=&#8221;DROP&#8221;</p>
<p># What to do with obviously invalid traffic<br />
# This is also the action for FORBIDDEN_PORTS<br />
#KNOWN_BAD=&#8221;REJECT&#8221;<br />
KNOWN_BAD=&#8221;DROP&#8221;</p>
<p># What to do with port scans<br />
#PORT_SCAN=&#8221;REJECT&#8221;<br />
PORT_SCAN=&#8221;DROP&#8221;</p>
<p># How should ipkungfu determine your IP address? The default<br />
# answer, &#8220;NONE&#8221;, will cause ipkungfu to not use the few<br />
# features that require it to know your external IP address.<br />
# This option is good for dialup users who run ipkungfu on<br />
# bootup, since dialup users rarely use the features that<br />
# require this, and the IP address for a dialup connection<br />
# generally isn&#8217;t known at bootup.  &#8220;AUTO&#8221; will cause<br />
# ipkungfu to automatically determine the IP address of<br />
# $EXT_NET when it is started.  If you have a static IP<br />
# address you can simply enter your IP address here.<br />
# If you do port forwarding and your ISP changes your IP<br />
# address, choose NONE here, or your port forwarding<br />
# will break when your IP address changes. Default is<br />
# &#8220;NONE&#8221;.<br />
#GET_IP=&#8221;NONE&#8221;<br />
#GET_IP=&#8221;AUTO&#8221;<br />
GET_IP=&#8221;202.92.148.101&#8243;</p>
<p># If the target for identd (113/tcp) is DROP, it can take<br />
# a long time to connect to some IRC servers. Set this to<br />
# 1 to speed up these connections with a negligible cost<br />
# to security.  Identd probes will be rejected with the<br />
# &#8216;reject-with-tcp-reset&#8217; option to close the connection<br />
# gracefully. If you want to actually allow ident probes,<br />
# and you&#8217;re running an identd, and you&#8217;ve allowed port<br />
# 113 in ALLOWED_TCP_IN, set this to 0. Default is 0.<br />
#DONT_DROP_IDENTD=0<br />
# Set this to 0 if you&#8217;re running ipkungfu on a machine<br />
# inside your LAN.  This will cause private IP addresses<br />
# coming in on $EXT_NET to be identified as a spoof,<br />
# which would be inaccurate on intra-LAN traffic<br />
# This will cause private IP addresses coming in on<br />
# $EXT_NET to be identified as a spoof. Default is 1.<br />
#DISALLOW_PRIVATE=1</p>
<p># For reasons unknown to me, ipkungfu sometimes causes<br />
# kernel panics when run at init time. This is my<br />
# attempt to work around that.  Ipkungfu will wait<br />
# the specified number of seconds before starting, to<br />
# let userspace/kernel traffic catch up before executing.<br />
# Default is 0.<br />
#WAIT_SECONDS=5</p>
<p># This option, if enabled, will cause ipkungfu to set<br />
# the default policy on all builtin chains in the filter<br />
# table to ACCEPT in the event of a failure.  This is<br />
# intended for remote administrators who may be locked<br />
# out of the firewall if ipkungfu fails.  A warning to<br />
# this effect will be echoed so that the situation can be<br />
# rectified quickly.  This is the same as running<br />
# ipkungfu with &#8211;failsafe.  Default is 0.<br />
#FAILSAFE=0</p>
<p># Configurable list of kernel modules to load at runtime.<br />
# If no list is provided, the default and needed ones,<br />
# ip_nat_irc, ip_conntrack_ftp ip_nat_ftp ip_conntrack_irc,<br />
# will still be loaded.<br />
#MODULES_LIST=&#8221;"</p></blockquote>
<p>The</p>
<blockquote><p>EXT_NET=&#8221;eth0&#8243;</p></blockquote>
<p>is you the active network interface.</p>
<blockquote><p>GATEWAY=0</p></blockquote>
<p>because I’m configuring a standalone server. I have also set the forbidden ports</p>
<blockquote><p>FORBIDDEN_PORTS=&#8221;135 137 139&#8243;</p></blockquote>
<p>I don’t block pings</p>
<blockquote><p>BLOCK_PINGS=0</p></blockquote>
<p>because the ping tool is an effective use to test for the connectivity of the server.<br />
For suspected, bad ports and port scan, I drop the packets.</p>
<blockquote><p>SUSPECT=&#8221;DROP&#8221;<br />
KNOWN_BAD=”DROP”<br />
PORT_SCAN=”DROP”</p></blockquote>
<p>If you have a static IP address, set GET_IP to your IP address.</p>
<blockquote><p>GET_IP=&#8221;202.92.148.101&#8243;</p></blockquote>
<p>The save the file. Restart by ipkungfu</p>
<blockquote><p>/etc/init.d/ipkungfu restart</p></blockquote>
<div class="bottomcontainerBox" style="background-color:#F0F4F9;">
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fnamhuy.org%2Fblog%2F2007%2F10%2F31%2Fsecuring-linux-server-with-ipkungfu%2F&amp;layout=button_count&amp;show_faces=false&amp;width=80&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=80px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://namhuy.org/blog/2007/10/31/securing-linux-server-with-ipkungfu/"></g:plusone>
			</div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://namhuy.org/blog/2007/10/31/securing-linux-server-with-ipkungfu/"  data-text="Securing Linux Server with IPKungfu" data-count="horizontal">Tweet</a>
			</div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://namhuy.org/blog/2007/10/31/securing-linux-server-with-ipkungfu/"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div>]]></content:encoded>
			<wfw:commentRss>http://namhuy.org/blog/2007/10/31/securing-linux-server-with-ipkungfu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to install nmap into ubuntu</title>
		<link>http://namhuy.org/blog/2007/08/16/how-to-install-nmap-into-ubuntu/</link>
		<comments>http://namhuy.org/blog/2007/08/16/how-to-install-nmap-into-ubuntu/#comments</comments>
		<pubDate>Thu, 16 Aug 2007 20:30:49 +0000</pubDate>
		<dc:creator>Huy Tran</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Tips - Tricks]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[nmap]]></category>

		<guid isPermaLink="false">http://namhuy.org/blog/2007/08/16/how-to-install-nmap-into-ubuntu/</guid>
		<description><![CDATA[Nmap is a utility for network exploration or security auditing. It supports ping scanning (determine which hosts are up), many port scanning techniques, version detection (determine service protocols and application versions listening behind ports), and TCP/IP fingerprinting (remote host OS &#8230; <a href="http://namhuy.org/blog/2007/08/16/how-to-install-nmap-into-ubuntu/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Nmap is a utility for network exploration or security auditing. It supports ping scanning (determine which hosts are up), many port scanning techniques, version detection (determine service protocols and application versions listening behind ports), and TCP/IP fingerprinting (remote host OS or device identification). Nmap also offers flexible target and port specification, decoy/stealth scanning, sunRPC scanning, and more. Most Unix and Windows platforms are supported in both GUI and commandline modes. Several popular handheld devices are also supported, including the Sharp Zaurus and the iPAQ.</p>
<p>open a terminal and enter:</p>
<p><strong>apt-get install nmap</strong></p>
<p>how to use nmap:</p>
<p><strong>sudo nmap domainname</strong> (or IP address) is the most simple syntax to scan the open ports on the remote system. The other switches are used for more selective scans.</p>
<p><strong><span style="text-decoration: underline;">Command Line</span></strong><br />
How to use it</p>
<p>Nmap has lots of options, so we are going to focus on only some of them.</p>
<p><strong>sudo nmap -sS -O 127.0.0.1</strong><br />
-sS<br />
TCP SYN scan<br />
-O<br />
Enable Operating System detection</p>
<p><strong>sudo nmap -sU 127.0.0.1</strong><br />
-sU<br />
UDP ports scan</p>
<p><strong>sudo nmap -sS -O -p 20-25 127.0.0.1</strong><br />
-sS<br />
TCP SYN scan<br />
-p 20-25<br />
Scan on ports 20 to 25</p>
<p><strong>sudo nmap -sS -F 127.0.0.1</strong><br />
-sS<br />
TCP SYN scan<br />
-F<br />
Fast (limited port) scan</p>
<p>you can check the long <a href="http://www.go2linux.org/nmap-man-page" target="_blank">nmap man page</a></p>
<div class="bottomcontainerBox" style="background-color:#F0F4F9;">
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fnamhuy.org%2Fblog%2F2007%2F08%2F16%2Fhow-to-install-nmap-into-ubuntu%2F&amp;layout=button_count&amp;show_faces=false&amp;width=80&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=80px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://namhuy.org/blog/2007/08/16/how-to-install-nmap-into-ubuntu/"></g:plusone>
			</div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://namhuy.org/blog/2007/08/16/how-to-install-nmap-into-ubuntu/"  data-text="How to install nmap into ubuntu" data-count="horizontal">Tweet</a>
			</div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://namhuy.org/blog/2007/08/16/how-to-install-nmap-into-ubuntu/"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div>]]></content:encoded>
			<wfw:commentRss>http://namhuy.org/blog/2007/08/16/how-to-install-nmap-into-ubuntu/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to use sudo without a password</title>
		<link>http://namhuy.org/blog/2007/07/07/how-to-use-sudo-without-a-password/</link>
		<comments>http://namhuy.org/blog/2007/07/07/how-to-use-sudo-without-a-password/#comments</comments>
		<pubDate>Sat, 07 Jul 2007 07:16:10 +0000</pubDate>
		<dc:creator>Huy Tran</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Tips - Tricks]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://namhuy.org/blog/2007/07/07/how-to-use-sudo-without-a-password/</guid>
		<description><![CDATA[sudo visudo Find: root ALL= (ALL) ALL Replace with: root ALL=(ALL) NOPASSWD: ALL Save that file. Tweet]]></description>
			<content:encoded><![CDATA[<p>sudo visudo</p>
<p>Find: root        ALL= (ALL) ALL</p>
<p>Replace with: root        ALL=(ALL) NOPASSWD: ALL</p>
<p>Save that file.</p>
<div class="bottomcontainerBox" style="background-color:#F0F4F9;">
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fnamhuy.org%2Fblog%2F2007%2F07%2F07%2Fhow-to-use-sudo-without-a-password%2F&amp;layout=button_count&amp;show_faces=false&amp;width=80&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width=80px; height:21px;" allowTransparency="true"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://namhuy.org/blog/2007/07/07/how-to-use-sudo-without-a-password/"></g:plusone>
			</div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://namhuy.org/blog/2007/07/07/how-to-use-sudo-without-a-password/"  data-text="How to use sudo without a password" data-count="horizontal">Tweet</a>
			</div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://namhuy.org/blog/2007/07/07/how-to-use-sudo-without-a-password/"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div>]]></content:encoded>
			<wfw:commentRss>http://namhuy.org/blog/2007/07/07/how-to-use-sudo-without-a-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 0.441 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-02-04 17:29:06 -->
<!-- Compression = gzip -->
