<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Port forwarding on my Mac mini</title>
	<atom:link href="http://switch.richard5.net/2006/01/25/port-forwarding-on-my-mac-mini/feed/" rel="self" type="application/rss+xml" />
	<link>http://switch.richard5.net/2006/01/25/port-forwarding-on-my-mac-mini/</link>
	<description>How to build your Mac into a internet server using open source software</description>
	<lastBuildDate>Tue, 17 Jun 2008 18:25:42 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Pio</title>
		<link>http://switch.richard5.net/2006/01/25/port-forwarding-on-my-mac-mini/comment-page-1/#comment-13034</link>
		<dc:creator>Pio</dc:creator>
		<pubDate>Fri, 05 Jan 2007 00:49:38 +0000</pubDate>
		<guid isPermaLink="false">http://switch.richard5.net/?p=67#comment-13034</guid>
		<description>How to automatically restart natd process with the &#039;port forwarding&#039; option after each reboot:

** This example forwards the port 4662 (aMule) **
** These operations must be done by root **

i) Create a folder named &#039;natd&#039; in /Library/StartupItems/

ii) Create two files, &#039;StartupParameters.plist&#039; and &#039;natd&#039;, inside &#039;natd&#039; folder  

===  Begin of StartupParameters.plist  ===

{
   Description = &quot;Network Address Translation&quot;;
   Provides = (&quot;NAT&quot;); 
   Requires = (&quot;Network&quot;, &quot;NetworkExtensions&quot;); 
   OrderPreference = &quot;Last&quot;;
}

===  End of StartupParameters.plist  ===


==========  Begin of natd  ==========

#!/bin/sh
. /etc/rc.common

killall -KILL natd
sleep 5
natd -alias_address 192.168.1.2 -interface en0 -use_sockets -same_ports -unregistered_only -dynamic -clamp_mss -redirect_port tcp 10.0.0.2:4662 4662

==========  End of natd  ==========

iii) &#039;natd&#039; is a script, so we should set it to be executable

# chmod 755 natd

iv) Reboot your computer.</description>
		<content:encoded><![CDATA[<p>How to automatically restart natd process with the &#8216;port forwarding&#8217; option after each reboot:</p>
<p>** This example forwards the port 4662 (aMule) **<br />
** These operations must be done by root **</p>
<p>i) Create a folder named &#8216;natd&#8217; in /Library/StartupItems/</p>
<p>ii) Create two files, &#8216;StartupParameters.plist&#8217; and &#8216;natd&#8217;, inside &#8216;natd&#8217; folder  </p>
<p>===  Begin of StartupParameters.plist  ===</p>
<p>{<br />
   Description = &#8220;Network Address Translation&#8221;;<br />
   Provides = (&#8220;NAT&#8221;);<br />
   Requires = (&#8220;Network&#8221;, &#8220;NetworkExtensions&#8221;);<br />
   OrderPreference = &#8220;Last&#8221;;<br />
}</p>
<p>===  End of StartupParameters.plist  ===</p>
<p>==========  Begin of natd  ==========</p>
<p>#!/bin/sh<br />
. /etc/rc.common</p>
<p>killall -KILL natd<br />
sleep 5<br />
natd -alias_address 192.168.1.2 -interface en0 -use_sockets -same_ports -unregistered_only -dynamic -clamp_mss -redirect_port tcp 10.0.0.2:4662 4662</p>
<p>==========  End of natd  ==========</p>
<p>iii) &#8216;natd&#8217; is a script, so we should set it to be executable</p>
<p># chmod 755 natd</p>
<p>iv) Reboot your computer.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
