<?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>Linux and Unix technical recipes &#187; Mandrake</title>
	<atom:link href="http://www.howtonix.com/category/linux/mandrake/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.howtonix.com</link>
	<description>Linux Tutorial and Guide</description>
	<lastBuildDate>Thu, 30 Sep 2010 23:41:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>How to create tar.gz?</title>
		<link>http://www.howtonix.com/how-to-create-tar-gz/</link>
		<comments>http://www.howtonix.com/how-to-create-tar-gz/#comments</comments>
		<pubDate>Sat, 19 Dec 2009 12:23:41 +0000</pubDate>
		<dc:creator>emran</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mandrake]]></category>
		<category><![CDATA[SuSE]]></category>
		<category><![CDATA[Linux Tar Zip Compress untar]]></category>

		<guid isPermaLink="false">http://www.howtonix.com/?p=102</guid>
		<description><![CDATA[google_ad_client = "pub-4492234592142803"; /* 468x60, created 9/1/10 howtonix */ google_ad_slot = "5691725759"; google_ad_width = 468; google_ad_height = 60; You can create tar.gz file with the following command.DO NOT ENTER / after the directory name. tar -cvzf  test.tar.gz test google_ad_client = "pub-4492234592142803"; /* 336x280, created 9/1/10 Content Footer */ google_ad_slot = "7186675198"; google_ad_width = 336; google_ad_height [...]]]></description>
			<content:encoded><![CDATA[
<!-- Quick Adsense WordPress Plugin: http://techmilieu.com/quick-adsense -->
<div style="float:none;margin:10px 0 10px 0;text-align:center;">
<script type="text/javascript">

google_ad_client = "pub-4492234592142803";
/* 468x60, created 9/1/10 howtonix */
google_ad_slot = "5691725759";
google_ad_width = 468;
google_ad_height = 60;


</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<p>You can create tar.gz file with the following command.DO NOT ENTER / after the directory name.</p>
<p>tar -cvzf  test.tar.gz test</p>

<div style="font-size:0px;height:0px;line-height:0px;margin:0;padding:0;clear:both"></div>]]></content:encoded>
			<wfw:commentRss>http://www.howtonix.com/how-to-create-tar-gz/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to Install Perl CPAN Module</title>
		<link>http://www.howtonix.com/how-to-install-perl-cpan-module/</link>
		<comments>http://www.howtonix.com/how-to-install-perl-cpan-module/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 16:47:07 +0000</pubDate>
		<dc:creator>emran</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mandrake]]></category>
		<category><![CDATA[SuSE]]></category>

		<guid isPermaLink="false">http://www.howtonix.com/?p=96</guid>
		<description><![CDATA[From the root prompt on your server, invoke the CPAN shell: # perl -MCPAN -e shell Once the Perl interpreter has loaded (and been configured), you can install modules with: install MODULENAME. The first thing you should do is upgrade your CPAN: cpan&#62; install Bundle::CPAN Once it is completed, type: cpan&#62; reload cpan Now, enter [...]]]></description>
			<content:encoded><![CDATA[<p>From the root prompt on your server, invoke the <acronym>CPAN</acronym> shell:</p>
<pre><code>#</code> <strong><code>perl -MCPAN -e shell</code></strong></pre>
<p>Once the Perl interpreter has loaded (and been configured), you can install modules with: <code>install <em><code>MODULENAME</code></em></code>.</p>
<p>The first thing you should do is upgrade your <acronym>CPAN</acronym>:</p>
<pre><code>cpan&gt;</code> <strong><code>install Bundle::CPAN</code></strong></pre>
<p>Once it is completed, type:</p>
<pre><code>cpan&gt;</code> <strong><code>reload cpan</code></strong></pre>
<pre><strong><code>
Now, enter the following command to retrieve all of the required modules:
<pre><code>cpan&gt;</code> <strong><code>install DateTime</code></strong></pre>
<pre><strong></strong></pre>
<pre><strong><code>
<h3>Note</h3>

Be aware that after freshly installing <code><em><code>make</code></em></code> / <code><em><code>gcc</code></em></code>, your perl installation will not necessarily detect it. This means module installation will still fail during the 'make' stage. You may need to invoke the <acronym>CPAN</acronym> shell and run the setup routine again, to point to the location of <code>make</code>:
<pre><code>#</code><strong><code> <span><strong>perl <code>-MCPAN -e shell CPAN</code></strong></span></code></strong></pre>
<p> </p>
<pre><code>cpan&gt;</code> <strong><code><span><strong>o conf <code>make</code></strong></span> <em><code>/usr/bin/make</code></em></code></strong></pre>
<pre><code>cpan&gt;</code> <strong><code><span><strong>o conf <code>commit</code></strong></span></code></strong></pre>
<pre><strong><code><span><strong></strong></span></code></strong></pre>
<p></code></strong></pre>
<p></code></strong></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.howtonix.com/how-to-install-perl-cpan-module/feed/</wfw:commentRss>
		<slash:comments>342</slash:comments>
		</item>
		<item>
		<title>Text-To-Speech (TTS) from AT&amp;T Research Labs</title>
		<link>http://www.howtonix.com/text-to-speech-tts-from-att-research-labs/</link>
		<comments>http://www.howtonix.com/text-to-speech-tts-from-att-research-labs/#comments</comments>
		<pubDate>Tue, 29 Sep 2009 19:48:26 +0000</pubDate>
		<dc:creator>emran</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Mandrake]]></category>
		<category><![CDATA[Network Tools]]></category>
		<category><![CDATA[SuSE]]></category>

		<guid isPermaLink="false">http://www.howtonix.com/?p=78</guid>
		<description><![CDATA[Here is the link: http://www.research.att.com/~ttsweb/tts/demo.php]]></description>
			<content:encoded><![CDATA[<p>Here is the link:</p>
<p><a href="http://www.research.att.com/~ttsweb/tts/demo.php">http://www.research.att.com/~ttsweb/tts/demo.php</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.howtonix.com/text-to-speech-tts-from-att-research-labs/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>List of TCP and UDP port numbers</title>
		<link>http://www.howtonix.com/list-of-tcp-and-udp-port-numbers/</link>
		<comments>http://www.howtonix.com/list-of-tcp-and-udp-port-numbers/#comments</comments>
		<pubDate>Tue, 29 Sep 2009 19:46:22 +0000</pubDate>
		<dc:creator>emran</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Mandrake]]></category>
		<category><![CDATA[NetBSD]]></category>
		<category><![CDATA[OpenBSD]]></category>
		<category><![CDATA[SuSE]]></category>

		<guid isPermaLink="false">http://www.howtonix.com/?p=76</guid>
		<description><![CDATA[The following link contains list of TCP and UDP ports: http://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers]]></description>
			<content:encoded><![CDATA[<p>The following link contains list of TCP and UDP ports:</p>
<p><a href="http://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers">http://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.howtonix.com/list-of-tcp-and-udp-port-numbers/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>A basic firewall configuration suitable for a gateway/nat</title>
		<link>http://www.howtonix.com/a-basic-firewall-configuration-suitable-for-a-gatewaynat/</link>
		<comments>http://www.howtonix.com/a-basic-firewall-configuration-suitable-for-a-gatewaynat/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 05:50:49 +0000</pubDate>
		<dc:creator>emran</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Mandrake]]></category>
		<category><![CDATA[SuSE]]></category>

		<guid isPermaLink="false">http://www.howtonix.com/?p=55</guid>
		<description><![CDATA[Introduction The field of application of a NAT Gateway is in example a private LAN consisting of several PC with an Internet connection with one public IP address. The goal is to share the Internet connection among the LAN PCs. The problem is that there is only one public IP for outbound traffic. The solution [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Introduction</strong></p>
<p>The field of application of a <a title="NAT" href="http://wiki.linuxquestions.org/wiki/NAT">NAT</a> Gateway is in example a private <a title="http://en.wikipedia.org/wiki/LAN" rel="nofollow" href="http://en.wikipedia.org/wiki/LAN">LAN</a> consisting of several <a title="http://en.wikipedia.org/wiki/Personal_computer" rel="nofollow" href="http://en.wikipedia.org/wiki/Personal_computer">PC</a> with an <a title="http://en.wikipedia.org/wiki/Internet" rel="nofollow" href="http://en.wikipedia.org/wiki/Internet">Internet</a> connection with one public IP address.</p>
<ul>
<li>The goal is to share the Internet connection among the LAN PCs.</li>
<li>The problem is that there is only one public IP for outbound traffic.</li>
<li>The solution is &#8220;<em>Network Address Translation</em>&#8221; (or NAT for short).</li>
</ul>
<p>The Gateway (GW) is equipped with two network interfaces. One gets assigned the public IP, the second a private IP (i.e. 192.168.0.1). Every other LAN PCs has it&#8217;s own private IP (i.e. 192.168.0.2). If an outbound connection is requested the LAN PC talks to the gateway which masquerades the outbound traffic using the public IP. So every external connection looks like if it is coming from only one PC.</p>
<p>The basic firewalling will prevent all connections from outside with the exception of <a title="SSH" href="http://wiki.linuxquestions.org/wiki/SSH">SSH</a> (port 22) which we leave open for service purposes (i.e.).</p>
<p><strong>System preparation</strong></p>
<p>The following assumes that the gateway has two network interfaces:</p>
<ul>
<li>eth0 will be the external and</li>
<li>eth1 the internal interface.</li>
</ul>
<p>To use iptables you need to have at least the following kernel components compiled in or as modules</p>
<ul>
<li><tt>ip_tables</tt></li>
<li><tt>ip_conntrack</tt> and <tt>ip_conntrack_ftp</tt></li>
</ul>
<p>IP forwarding needs to be active (<tt>echo 1 &gt; /proc/sys/net/ipv4/ip_forward&lt;/userdefined</tt>).</p>
<p>Setup the external interface using the necessary data from your provider (IP and standard gateway). The internal interface (eth1) needs to get a private IP address, like 10.174.254.197. The routing table of the gateway will be set up automatically during network initialization.</p>
<p>Every LAN PC will use the NAT-Gateways internal IP (192.168.0.1 in our example) as standard gateway in its networking setup.</p>
<p><strong>Firewall script</strong></p>
<blockquote><p>#!/bin/sh ipt=/sbin/iptables extip=192.168.2.243 # replace with your EXTERNAL IP lan=10.174.254.197/27 # your LAN&lt; # start firewall start_firwall { echo &#8220;Enabling IP forwarding.&#8221; echo 1 &gt; /proc/sys/net/ipv4/ip_forward echo &#8220;Enabling iptables firewall.&#8221; # default policies $ipt -P INPUT DROP $ipt -P FORWARD DROP # NAT $ipt -t nat -A POSTROUTING -o eth0 -j SNAT &#8211;to-source $extip # INPUT chain $ipt -A INPUT -i lo -j ACCEPT $ipt -A INPUT -i eth1 -s $lan -j ACCEPT $ipt -A INPUT -i eth0 -m state &#8211;state ESTABLISHED,RELATED -j ACCEPT $ipt -A INPUT -p tcp &#8211;destination-port 22 -j ACCEPT # FORWARD chain $ipt -A FORWARD -i eth1 -s $lan -j ACCEPT $ipt -A FORWARD -i eth0 -m state &#8211;state ESTABLISHED,RELATED -j ACCEPT } # stop firewall stop_firwall { $ipt -P INPUT DROP $ipt -P OUTPUT DROP $ipt -P FORWARD DROP # allow internal traffic $ipt -A INPUT -i eth1 -j ACCEPT $ipt -A OUTPUT -o eth1 -j ACCEPT } # flushing, removing and zeroing tables<br />
reset_firwall { chains=`cat /proc/net/ip_tables_names` for i in $chains; do $debug $ipt -t $i -F $debug $ipt -t $i -X $debug $ipt -t $i -Z done } case &#8220;$1&#8243; in start|restart|reload) reset_firewall start_firewall  ;; stop) reset_firewall stop_firewall  ;; *) echo &#8220;Usage: $0 {start|stop|restart|reload}&#8221; exit 1  ;; esac exit 0</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.howtonix.com/a-basic-firewall-configuration-suitable-for-a-gatewaynat/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

