<?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>NotrevBlog &#187; ipforward</title>
	<atom:link href="http://earruda.eti.br/blog/tag/ipforward/feed/" rel="self" type="application/rss+xml" />
	<link>http://earruda.eti.br/blog</link>
	<description>Éverton Arruda's Blog</description>
	<lastBuildDate>Fri, 16 Jul 2010 20:07:06 +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>IpForward from Computer with Linux to PS3</title>
		<link>http://earruda.eti.br/blog/2009/10/ipforward-from-computer-with-linux-to-ps3/</link>
		<comments>http://earruda.eti.br/blog/2009/10/ipforward-from-computer-with-linux-to-ps3/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 00:04:24 +0000</pubDate>
		<dc:creator>Éverton Arruda</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Planet INdT]]></category>
		<category><![CDATA[Planet PSL-AM]]></category>
		<category><![CDATA[3g]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[ipforward]]></category>
		<category><![CDATA[modem]]></category>
		<category><![CDATA[PS3]]></category>

		<guid isPermaLink="false">http://earruda.eti.br/blog/?p=155</guid>
		<description><![CDATA[I&#8217;ve recently bought my PlayStation 3 (FInaly!!!!!) and was thinking of a way to connect my PS3 to the internet using my 3G BroadBand internet connection, which is provided by the brazilian Phone Company Claro. The only thing that came to me was: IpForward. So i did this: 1 &#8211; Connected my Notebook to the [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently bought my PlayStation 3 (FInaly!!!!!) and was thinking of a way to connect my PS3 to the internet using my 3G BroadBand internet connection, which is provided by the brazilian Phone Company Claro. The only thing that came to me was: IpForward.</p>
<p>So i did this:<br />
<strong>1 &#8211; Connected my Notebook to the 3G Broadband:</strong><br />
Just connected as I normally do.</p>
<p><strong>2 &#8211; Connected my PS3 to my Notebook:</strong><br />
Created a LAN between them, through my notebook&#8217;s interface eth0.<br />
I configured my PS3&#8242;s network connection as follows:<br />
In the PS3&#8242;s main menu go to <strong>Settings</strong> > <strong>Network Settings</strong> > <strong>Internet Connection Settings</strong>, then, go through this sequence of choices: <strong>custom</strong>, <strong>wired connection</strong>, <strong>auto-detect</strong>, <strong>manual</strong> (the ip settings are shown bellow), <strong>automatic</strong>, <strong>do not use</strong> (in my case i don&#8217;t use any proxy), <strong>enable</strong>.</p>
<p>The Ip Settings are:<br />
<strong>Ip address:</strong> 192.168.0.2<br />
<strong>Subnet mask:</strong> 255.255.255.0<br />
<strong>Default Router:</strong> 192.168.0.1 (This is my Notebook&#8217;s Ip)<br />
<strong>Primary DNS:</strong> 208.67.222.222 (This is Claro&#8217;s primary DNS Server)<strong><br />
Secondary DNS:</strong> 208.67.220.220 (This is Claro&#8217;s secondary DNS Server)</p>
<p><strong>3 &#8211; Set Notebook to IpForward</strong><br />
I found a Script in the internet that does everything it needs to ipforward, all i did was add the final line, which sets a fixed ip to the interface that is connected to the LAN. I don&#8217;t remeber who wrote the script, but the credits are his/hers.<br />
All you have to do now is save the script bellow and run it everytime you want to connect your PS3:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">#!/bin/sh</span><br />
<span style="color: #666666; font-style: italic;"># Basic firewall and forward/masquerade setup</span><br />
<br />
<span style="color: #007800;">PATH</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin:<span style="color: #000000; font-weight: bold;">/</span>sbin:<span style="color: #000000; font-weight: bold;">/</span>bin:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<br />
<br />
<span style="color: #666666; font-style: italic;"># Delete/Flush old iptables rules</span><br />
iptables <span style="color: #660033;">-F</span><br />
iptables <span style="color: #660033;">-t</span> nat <span style="color: #660033;">-F</span><br />
iptables <span style="color: #660033;">-X</span><br />
<br />
<span style="color: #666666; font-style: italic;"># Set up IP FORWARDing and Masquerading</span><br />
iptables <span style="color: #660033;">--table</span> nat <span style="color: #660033;">--append</span> POSTROUTING <span style="color: #660033;">--out-interface</span> ppp0 <span style="color: #660033;">-j</span> MASQUERADE<br />
<br />
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;1&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>proc<span style="color: #000000; font-weight: bold;">/</span>sys<span style="color: #000000; font-weight: bold;">/</span>net<span style="color: #000000; font-weight: bold;">/</span>ipv4<span style="color: #000000; font-weight: bold;">/</span>ip_forward<br />
<br />
<span style="color: #c20cb9; font-weight: bold;">ifconfig</span> eth0 192.168.0.1 netmask 255.255.255.0</div></td></tr></tbody></table></div>
<p>If you did as it is described in here, then it should work just fine.</p>
<p>Just for the record, I&#8217;m sing BrDesktop Lenny Linux as Operating System (a Debian Pure Blend).</p>
<p><strong>Note:</strong> Everytime I try to test the connect through PS3, my notebook loses the ip 192.168.0.1 and starts o search for another one, breaking the connection between them. So i recommend you not to use that feature when using the connection method described in here.</p>
<p>:wq</p>
]]></content:encoded>
			<wfw:commentRss>http://earruda.eti.br/blog/2009/10/ipforward-from-computer-with-linux-to-ps3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
