<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.webos-internals.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Smoofra</id>
	<title>WebOS Internals - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.webos-internals.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Smoofra"/>
	<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/wiki/Special:Contributions/Smoofra"/>
	<updated>2026-04-20T10:04:22Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Ip_forward&amp;diff=9258</id>
		<title>Ip forward</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Ip_forward&amp;diff=9258"/>
		<updated>2010-03-02T04:27:19Z</updated>

		<summary type="html">&lt;p&gt;Smoofra: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;You might have noticed that /proc/sys/net/ipv4/ip_forward keeps getting reset to 0.  &lt;br /&gt;
&lt;br /&gt;
There are three places I've found that cause this to happen.  First is /etc/network/options. Go &lt;br /&gt;
in there and change the line &lt;br /&gt;
&amp;lt;pre&amp;gt;ip_forward=no&lt;br /&gt;
&amp;lt;/pre&amp;gt; to &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ip_forward=yes&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
Next is /etc/pmnetconfig/if-down.  Comment out the lines&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
   ${LOG} &amp;quot;${ECHO} 0 &amp;gt;/proc/sys/net/ipv4/ip_forward&amp;quot;&lt;br /&gt;
   ${ECHO} 0 &amp;gt;/proc/sys/net/ipv4/ip_forward&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Last and not least, is the binary /usr/bin/PmNetConfigManager.   First, make a fake place for it to write to&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mount -o remount,rw / &lt;br /&gt;
mkdir-p /media/cryptofs/fake/sys/net/ipv4&lt;br /&gt;
ln -s /media/cryptofs/fake /fake&lt;br /&gt;
echo 0 &amp;gt;/fake/sys/net/ipv4/ip_forward&lt;br /&gt;
mount -o remount,ro /&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, patch /usr/bin/PmNetConfigManager so it writes to /fake/sys/net/ipv4/ip_forward instead of /proc/sys/net/ipv4/ip_forward.  Just open it up in a hex editor, find that path, and change &amp;quot;proc&amp;quot; to &amp;quot;fake&amp;quot;.  Make sure you only change those four bytes.  You should probably also make sure you have a backup of the original binary.  After you replace PmNetConfigManager, restart it.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
stop PmNetConfigManager&lt;br /&gt;
start PmNetConfigManager&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Another way to solve this problem is to make /proc/sys/net/ipv4/ip_forward innaccessable.  As PuffTheMagic_ put it:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;amp;lt;PuffTheMagic_&amp;amp;gt; smoofra: mount -o bind /dev/null over ip_forward&lt;br /&gt;
&amp;amp;lt;PuffTheMagic_&amp;amp;gt; then mount proc in a new directory&lt;br /&gt;
&amp;amp;lt;PuffTheMagic_&amp;amp;gt; and set it to 1 from that new dir&lt;br /&gt;
&amp;amp;lt;PuffTheMagic_&amp;amp;gt; ;)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Smoofra</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Ip_forward&amp;diff=9257</id>
		<title>Ip forward</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Ip_forward&amp;diff=9257"/>
		<updated>2010-03-02T04:26:55Z</updated>

		<summary type="html">&lt;p&gt;Smoofra: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;You might have noticed that /proc/sys/net/ipv4/ip_forward keeps getting reset to 0.  &lt;br /&gt;
&lt;br /&gt;
There are three places I've found that cause this to happen.  First is /etc/network/options. Go &lt;br /&gt;
in there and change the line &lt;br /&gt;
&amp;lt;pre&amp;gt;ip_forward=no&lt;br /&gt;
&amp;lt;/pre&amp;gt; to &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ip_forward=yes&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
Next is /etc/pmnetconfig/if-down.  Comment out the lines&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
   ${LOG} &amp;quot;${ECHO} 0 &amp;gt;/proc/sys/net/ipv4/ip_forward&amp;quot;&lt;br /&gt;
   ${ECHO} 0 &amp;gt;/proc/sys/net/ipv4/ip_forward&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Last and not least, is the binary /usr/bin/PmNetConfigManager.   First, make a fake place for it to write to&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mount -o remount,rw / &lt;br /&gt;
mkdir-p /media/cryptofs/fake/sys/net/ipv4&lt;br /&gt;
ln -s /media/cryptofs/fake /fake&lt;br /&gt;
echo 0 &amp;gt;/fake/sys/net/ipv4/ip_forward&lt;br /&gt;
mount -o remount,ro /&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, patch /usr/bin/PmNetConfigManager so it writes to /fake/sys/net/ipv4/ip_forward instead of /proc/sys/net/ipv4/ip_forward.  Just open it up in a hex editor, find that path, and change &amp;quot;proc&amp;quot; to &amp;quot;fake&amp;quot;.  Make sure you only change those four bytes.  You should probably also make sure you have a backup of the original binary.  After you replace PmNetConfigManager, restart it.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
stop PmNetConfigManager&lt;br /&gt;
start PmNetConfigManager&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Another way to solve this problem is to make /proc/sys/net/ipv4/ip_forward innaccessable.  As PuffTheMagic_ put it:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;amp;lt;PuffTheMagic_gt; smoofra: mount -o bind /dev/null over ip_forward&lt;br /&gt;
&amp;amp;lt;PuffTheMagic_gt; then mount proc in a new directory&lt;br /&gt;
&amp;amp;lt;PuffTheMagic_gt; and set it to 1 from that new dir&lt;br /&gt;
&amp;amp;lt;PuffTheMagic_gt; ;)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Smoofra</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=USBnet_Setup&amp;diff=9256</id>
		<title>USBnet Setup</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=USBnet_Setup&amp;diff=9256"/>
		<updated>2010-03-02T01:07:29Z</updated>

		<summary type="html">&lt;p&gt;Smoofra: /* Windows 7 RC Build 7100 (64-bit) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;USBnet allows you to create an IP network over the USB cable. This will allow you to talk to your Pre without WiFi or Bluetooth, and it keeps the battery charged.&lt;br /&gt;
&lt;br /&gt;
This page is a duplicate of [[USBnet networking setup]]&lt;br /&gt;
&lt;br /&gt;
== With Linux Access ==&lt;br /&gt;
&lt;br /&gt;
run&lt;br /&gt;
&lt;br /&gt;
'''usbnet enable'''&lt;br /&gt;
&lt;br /&gt;
as root and then restart the device as instructed. When it comes back up, run 'ifconfig' and verify you now have a usb0 interface. Mine had the IP of 192.168.0.202. The IP can be changed in /etc/network/interfaces. After a change, bounce the usb0 interface: ifdown usb0; ifup usb0&lt;br /&gt;
&lt;br /&gt;
== Optional Setup to enable DHCP (so you don't have to set the IP address below) ==&lt;br /&gt;
&lt;br /&gt;
#Edit /etc/dnsmasq.palm.conf &lt;br /&gt;
#Add interface=usb0 below the existing interface line &lt;br /&gt;
#Add dhcp-range=192.168.0.11,192.168.0.12,12h below the existing dhcp-range &lt;br /&gt;
#Restart the dnsmasq process: stop dnsmasq; start dnsmasq &lt;br /&gt;
&lt;br /&gt;
== On Windows XP ==&lt;br /&gt;
&lt;br /&gt;
#Download the driver here: [http://gitorious.org/webos-internals/usbnet-pre/blobs/raw/master/windows/usbnet-pre.inf usbnet-pre windows driver(32 bit)] or [http://gitorious.org/webos-internals/usbnet-pre/blobs/raw/master/windows/usbnet-pre-64.inf usbnet-pre windows driver(64 bit)] and save the file to disk as usbnet-pre.inf &lt;br /&gt;
#Plug the Pre into your computer. The Add New Hardware Wizard should come up, asking to install an ethernet gadget. &lt;br /&gt;
#Follow detailed instructions (screenshots and all) here if you are unfamiliar with installing drivers: [http://docwiki.gumstix.org/index.php/Windows_XP_usbnet Windows XP USBnet install] &lt;br /&gt;
#When you finish, you should have a network setup. Goto &amp;quot;Network Connections&amp;quot; via Network Places or the Control Panel &lt;br /&gt;
#If you have previously installed Novacom on this machine, bring up Windows Task Manager before proceeding. You may find discover a conflict between USBnet and novacomd where the novacomd process will consume lots of CPU and your machine will become very unresponsive. Since you have Task Manager up already, you can easily use it to kill novacomd if this occurs. &lt;br /&gt;
#Right-click on the new network, which probably be named Local Area Connection 2 &lt;br /&gt;
#Select Properties &lt;br /&gt;
#Double click on Internet Protocol (TCP/IP) &lt;br /&gt;
#Click Advanced &lt;br /&gt;
#UNCheck Automatic metric, put 100 in its place. This will keep Windows from attempting to [http://support.microsoft.com/default.aspx/kb/299540 route] traffic over the Pre (it won't work anyway). Note: 100 may be too high. If it seems that network traffic is being routed to the pre (IE - your internet connection apparently dies), try setting this to something lower (like 60).&lt;br /&gt;
#Click OK &lt;br /&gt;
#If you did not enable DHCP, you will need to set an IP address manually: &lt;br /&gt;
##Set your IP address as 192.168.0.203 ( could be anything except 192.168.0.202, assuming this is the Pre's address) &lt;br /&gt;
##Subnet mask: 255.255.255.0 &lt;br /&gt;
##Default Gateway: 192.168.0.202 (your Pre's address for the usb0 interface) &lt;br /&gt;
##Set DNS to your preferred servers. Addresses are not currently resolving for me, regardless of the server I use &lt;br /&gt;
#Hit OK &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The network should now be setup. To verify, ssh to 192.168.0.202, and you should be prompted for a login.&lt;br /&gt;
&lt;br /&gt;
== Notes: ==&lt;br /&gt;
&lt;br /&gt;
*This has only been tested on Windows XP 32 bit. For Windows 2000, you will need an additional download from Microsoft. The link is in the header of the INF file. &lt;br /&gt;
&lt;br /&gt;
- From zinge: I have several confirmations via the precentral forums that this only works on XP sp3. Sp2 gives &amp;quot;error code 10, the device cannot start&amp;quot;. Has anyone followed this process and had it work on XP sp2? Update: Upgraded to SP3 on my laptop, and it immediately started working.&lt;br /&gt;
&lt;br /&gt;
*The 64 bit driver is unverified at this point, but I think it works. &lt;br /&gt;
*wayne47: I was having all kinds of issues with this on my WinXP notebook. Clicking on the safely remove hardware icon in the tray indicated two devices associated with the Pre: Novacom and a USB drive. Stopping the Novacom service resolved the issues. Note that I need to do this each time that I attach the Pre via USB. &lt;br /&gt;
&lt;br /&gt;
== On Mac OS X ==&lt;br /&gt;
&lt;br /&gt;
*[http://www.wikidot.com/user:info/mdklein mdklein] notes that as of 1.0.4 the g_composite driver appears to only operate usbnet in rndis mode which is not the method OS-X includes. He has made a version that implements CDC-ECM, but it breaks a few other things. Working on this.&lt;br /&gt;
&lt;br /&gt;
*Allegedly, Mac OS X 10.4 should create a usb0 interface after you plug in a usbnet enabled pre. 10.5 needs a modified driver, which is not working for me (and carazy) yet.&lt;br /&gt;
See [http://bugcommunity.com/wiki/index.php/Start_Guide_Mac_OS_X_10.5 this page] for more details.&lt;br /&gt;
&lt;br /&gt;
*I don't know of anyone that has gotten USBNet driver to work on Mac OSX at all so for the time being, count it as unsupported. If anyone can figure it out please shed some light on us.&lt;br /&gt;
&lt;br /&gt;
== Windows Vista (64-bit) ==&lt;br /&gt;
&lt;br /&gt;
*If driver/device fails to come online in network sharing center, simply click start-&amp;gt;right click computer-&amp;gt; properties … Click Device manager and look for the device &amp;quot;Linux USB Ethernet/RNDIS Gadget&amp;quot; you can then right click disable/enable the device. That's all. &lt;br /&gt;
*This device/driver can also be cycled with MS Windows own [http://support.microsoft.com/kb/311272 DevCon] application.&lt;br /&gt;
&lt;br /&gt;
== Windows 7 (64-bit) ==&lt;br /&gt;
&lt;br /&gt;
* Windows 7 has the driver it needs already, but it won't set it up by itself.   The driver you want is under &amp;quot;Microsoft Corporation&amp;quot; &amp;gt; &amp;quot;Remote NDIS based Internet Sharing Device.&amp;quot;.  See http://mytether.net/#other for complete directions.&lt;br /&gt;
&lt;br /&gt;
== Windows 7 RC Build 7100 (64-bit) ==&lt;br /&gt;
&lt;br /&gt;
*User lars47 confirms this is working on Windows 7 x64. Wrestled with the driver installation at first, it would not install, Windows complained of a file in use. I rebooted, and the next time I plugged in the Pre via USB, it &amp;quot;just worked&amp;quot;. Unsure if I caused the problem, or if a reboot is required/recommended.&lt;br /&gt;
&lt;br /&gt;
== Linux Support ==&lt;br /&gt;
&lt;br /&gt;
* Once usbnet was enabled on the Pre, my Ubuntu 9.04 (64 bit) immediately identified the Pre in the NetworkManager and worked without modification to the OS. It seems to already have a driver that works.&lt;br /&gt;
* In order to prevent Ubuntu Linux from automatically trying to connect to the internet while the phone is connected via USBnet: &lt;br /&gt;
** In the Network Manager icon, click &amp;quot;Edit Connections&amp;quot;&lt;br /&gt;
** Select the usb0 interface and select &amp;quot;Edit&amp;quot;&lt;br /&gt;
** Uncheck the box that says &amp;quot;Connect Automatically&amp;quot; (this is optional, but could prevent headaches)&lt;br /&gt;
** Under IPv4 Settings select Routes&lt;br /&gt;
*** Check the box next to &amp;quot;Use this connection only for resources on its network&amp;quot;&lt;br /&gt;
** Click Ok, Apply. Now you should be able to access your regular wifi/lan/internet&lt;/div&gt;</summary>
		<author><name>Smoofra</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Ip_forward&amp;diff=9255</id>
		<title>Ip forward</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Ip_forward&amp;diff=9255"/>
		<updated>2010-03-02T00:04:45Z</updated>

		<summary type="html">&lt;p&gt;Smoofra: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;You might have noticed that /proc/sys/net/ipv4/ip_forward keeps getting reset to 0.  &lt;br /&gt;
&lt;br /&gt;
There are three places I've found that cause this to happen.  First is /etc/network/options. Go &lt;br /&gt;
in there and change the line &lt;br /&gt;
&amp;lt;pre&amp;gt;ip_forward=no&lt;br /&gt;
&amp;lt;/pre&amp;gt; to &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ip_forward=yes&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
Next is /etc/pmnetconfig/if-down.  Comment out the lines&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
   ${LOG} &amp;quot;${ECHO} 0 &amp;gt;/proc/sys/net/ipv4/ip_forward&amp;quot;&lt;br /&gt;
   ${ECHO} 0 &amp;gt;/proc/sys/net/ipv4/ip_forward&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Last and not least, is the binary /usr/bin/PmNetConfigManager.   First, make a fake place for it to write to&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mount -o remount,rw / &lt;br /&gt;
mkdir-p /media/cryptofs/fake/sys/net/ipv4&lt;br /&gt;
ln -s /media/cryptofs/fake /fake&lt;br /&gt;
echo 0 &amp;gt;/fake/sys/net/ipv4/ip_forward&lt;br /&gt;
mount -o remount,ro /&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, patch /usr/bin/PmNetConfigManager so it writes to /fake/sys/net/ipv4/ip_forward instead of /proc/sys/net/ipv4/ip_forward.  Just open it up in a hex editor, find that path, and change &amp;quot;proc&amp;quot; to &amp;quot;fake&amp;quot;.  Make sure you only change those four bytes.  You should probably also make sure you have a backup of the original binary.  After you replace PmNetConfigManager, restart it.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
stop PmNetConfigManager&lt;br /&gt;
start PmNetConfigManager&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Smoofra</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Ip_forward&amp;diff=9254</id>
		<title>Ip forward</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Ip_forward&amp;diff=9254"/>
		<updated>2010-03-02T00:02:15Z</updated>

		<summary type="html">&lt;p&gt;Smoofra: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;You might have noticed that /proc/sys/net/ipv4/ip_forward keeps getting reset to 0.  &lt;br /&gt;
&lt;br /&gt;
There are three places I've found that cause this to happen.  First is /etc/network/options. Go &lt;br /&gt;
in there and change the line &lt;br /&gt;
&amp;lt;pre&amp;gt;ip_forward=no&lt;br /&gt;
&amp;lt;/pre&amp;gt; to &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ip_forward=yes&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
Next is /etc/pmnetconfig/if-down.  Comment out the lines&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
   ${LOG} &amp;quot;${ECHO} 0 &amp;gt;/proc/sys/net/ipv4/ip_forward&amp;quot;&lt;br /&gt;
   ${ECHO} 0 &amp;gt;/proc/sys/net/ipv4/ip_forward&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Last and not least, is the binary /usr/bin/PmNetConfigManager.   First, make a fake place for it to write to&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mount -o remount,rw / &lt;br /&gt;
mkdir /media/cryptofs/fake/sys/net/ipv4/ip_forward&lt;br /&gt;
ln -s /media/cryptofs/fake /fake&lt;br /&gt;
mount -o remount,ro /&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, patch /usr/bin/PmNetConfigManager so it writes to /fake/sys/net/ipv4/ip_forward instead of /proc/sys/net/ipv4/ip_forward.  Just open it up in a hex editor, find that path, and change &amp;quot;proc&amp;quot; to &amp;quot;fake&amp;quot;.  Make sure you only change those four bytes.  You should probably also make sure you have a backup of the original binary.  After you replace PmNetConfigManager, restart it.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
stop PmNetConfigManager&lt;br /&gt;
start PmNetConfigManager&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Smoofra</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Ip_forward&amp;diff=9253</id>
		<title>Ip forward</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Ip_forward&amp;diff=9253"/>
		<updated>2010-03-01T23:58:08Z</updated>

		<summary type="html">&lt;p&gt;Smoofra: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;You might have noticed that /proc/sys/net/ipv4/ip_forward keeps getting reset to 0.  &lt;br /&gt;
&lt;br /&gt;
There are three places I've found that cause this to happen.  First is /etc/network/options. Go &lt;br /&gt;
in there and change the line &lt;br /&gt;
&amp;lt;pre&amp;gt;ip_forward=no&lt;br /&gt;
&amp;lt;/pre&amp;gt; to &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ip_forward=yes&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
 &lt;br /&gt;
Next is /etc/pmnetconfig/if-down.  Comment out the lines&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
   ${LOG} &amp;quot;${ECHO} 0 &amp;gt;/proc/sys/net/ipv4/ip_forward&amp;quot;&lt;br /&gt;
   ${ECHO} 0 &amp;gt;/proc/sys/net/ipv4/ip_forward&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Last and not least, is the binary /usr/bin/PmNetConfigManager.   First, make a fake place for it to write to&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mount -o remount,rw / &lt;br /&gt;
mkdir /media/cryptofs/fake/sys/net/ipv4/ip_forward&lt;br /&gt;
ln -s /media/cryptofs/fake /fake&lt;br /&gt;
mount -o remount,ro /&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, patch /usr/bin/PmNetConfigManager so it writes to /fake/sys/net/ipv4/ip_forward instead of /proc/sys/net/ipv4/ip_forward.  Just open it up in a hex editor, find that path, and change &amp;quot;proc&amp;quot; to &amp;quot;fake&amp;quot;.  Make sure you only change those four bytes.&lt;/div&gt;</summary>
		<author><name>Smoofra</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Ip_forward&amp;diff=9243</id>
		<title>Ip forward</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Ip_forward&amp;diff=9243"/>
		<updated>2010-03-01T21:05:16Z</updated>

		<summary type="html">&lt;p&gt;Smoofra: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;You might have noticed that /proc/sys/net/ipv4/ip_forward keeps getting reset to 0.  If you go into &lt;br /&gt;
/etc/network/options and change the line &lt;br /&gt;
&amp;lt;pre&amp;gt;ip_forward=no&lt;br /&gt;
&amp;lt;/pre&amp;gt; to &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ip_forward=yes&lt;br /&gt;
&amp;lt;/pre&amp;gt; the problem seems to go away.&lt;/div&gt;</summary>
		<author><name>Smoofra</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Ip_forward&amp;diff=9242</id>
		<title>Ip forward</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Ip_forward&amp;diff=9242"/>
		<updated>2010-03-01T21:04:23Z</updated>

		<summary type="html">&lt;p&gt;Smoofra: New page: You might have noticed that /proc/sys/net/ipv4/ip_forward keeps getting reset to 0.  If you go into /etc/network/options and change the line ip_forward=no to ip_forward=yes, the problem se...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;You might have noticed that /proc/sys/net/ipv4/ip_forward keeps getting reset to 0.  If you go into /etc/network/options and change the line ip_forward=no to ip_forward=yes, the problem seems to go away.&lt;/div&gt;</summary>
		<author><name>Smoofra</name></author>
	</entry>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Avahi&amp;diff=6392</id>
		<title>Avahi</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Avahi&amp;diff=6392"/>
		<updated>2009-10-09T15:07:51Z</updated>

		<summary type="html">&lt;p&gt;Smoofra: /* Avahi Installation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Avahi=&lt;br /&gt;
[http://avahi.org Avahi] is a Linux service for providing multicast-DNS/DNS-SD (also known as [http://en.wikipedia.org/wiki/Bonjour_%28software%29 Bonjour] or mDNS/DNS-SD). Avahi allows for simple service discovery and advertisement on a local network and provides name resolution for all hosts running a mDNS/DNS-SD service.&lt;br /&gt;
&lt;br /&gt;
Using Avahi allows for easy SSH access over a local wireless network. Once installed and started, users can ssh to their device using their mDNS assigned hostname.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Avahi Installation==&lt;br /&gt;
&lt;br /&gt;
First, mount the root filesystem as writable and install the Avahi ipkg.&lt;br /&gt;
&lt;br /&gt;
 $&amp;gt; sudo mount -o remount,rw /&lt;br /&gt;
 $&amp;gt; sudo /opt/bin/ipkg-opt install avahi&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Avahi currently attempts to access a different dbus system socket than the one provided by the Pre's dbus, so we need to turn off dbus access for the time being. Edit &amp;lt;tt&amp;gt;/opt/etc/avahi/avahi-daemon.conf&amp;lt;/tt&amp;gt; and make the following change:&lt;br /&gt;
&lt;br /&gt;
 Replace this line:&lt;br /&gt;
 #enable-dbus=yes&lt;br /&gt;
 &lt;br /&gt;
 With this line:&lt;br /&gt;
 enable-dbus=no&lt;br /&gt;
&lt;br /&gt;
Avahi seems to want to run as a user named &amp;quot;avahi&amp;quot;.  To create the user, run the following command:&lt;br /&gt;
&lt;br /&gt;
 $&amp;gt; adduser -h /opt/var/run/avahi avahi&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At this point, the Avahi daemon can be started with the following command:&lt;br /&gt;
&lt;br /&gt;
 $&amp;gt; sudo /opt/sbin/avahi-daemon -D&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you would like Avahi to start up at boot, create the following two files: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''/opt/etc/init.d/S60avahi'''&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 &lt;br /&gt;
 [ -e /opt/etc/default/avahi ] &amp;amp;&amp;amp; . /opt/etc/default/avahi&lt;br /&gt;
 &lt;br /&gt;
 if [ &amp;quot;$AVAHI_ENABLE&amp;quot; = &amp;quot;no&amp;quot; ]; then&lt;br /&gt;
     exit&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 if [ -n &amp;quot;`pidof /opt/sbin/avahi-daemon`&amp;quot; ]; then &lt;br /&gt;
     killall /opt/sbin/avahi 2&amp;gt;/dev/null&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 /opt/sbin/avahi-daemon -D&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''/opt/etc/default/avahi''':&lt;br /&gt;
 AVAHI_ENABLE=yes&lt;br /&gt;
&lt;br /&gt;
Make sure you set the startup script to executable:&lt;br /&gt;
&lt;br /&gt;
 $&amp;gt; sudo chmod 755 /opt/etc/init.d/S60avahi&lt;br /&gt;
&lt;br /&gt;
Alternatively, you can create an upstart script at '''/etc/event.d/avahi''':&lt;br /&gt;
&lt;br /&gt;
 start on started PmConnectionManager                                            &lt;br /&gt;
                                                                                &lt;br /&gt;
 console output                                                                  &lt;br /&gt;
                                                                                &lt;br /&gt;
 exec /opt/sbin/avahi-daemon -D                                                  &lt;br /&gt;
 respawn &lt;br /&gt;
&lt;br /&gt;
NOTE: This script is not being stored in the /opt directory. You may have to replace it after an update, and it may cause problems with your Pre.&lt;br /&gt;
&lt;br /&gt;
==Connecting via SSH using mDNS==&lt;br /&gt;
&lt;br /&gt;
mDNS uses the system's hostname and appends it to the &amp;lt;tt&amp;gt;local.&amp;lt;/tt&amp;gt; domain. Using the Pre's default &amp;lt;tt&amp;gt;castle&amp;lt;/tt&amp;gt; hostname, the following command would be used to SSH to your Pre on port 222:&lt;br /&gt;
&lt;br /&gt;
 $&amp;gt; ssh -P 222 castle.local.&lt;br /&gt;
&lt;br /&gt;
'''Note: The system that you are connecting from MUST have a mDNS service also running, else the hostname will not resolve'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Current Issues==&lt;br /&gt;
&lt;br /&gt;
* The ipkg binary of Avahi attempts to find the dbus socket at &amp;lt;tt&amp;gt;/opt/var/run/dbus/system_bus_socket&amp;lt;/tt&amp;gt;, but the Pre's dbus socket is at &amp;lt;tt&amp;gt;/var/run/dbus/system_bus_socket&amp;lt;/tt&amp;gt;. I haven't investigated tying these two together too much, but the expanded functionality of accessing mDNS via dbus is preferred.&lt;br /&gt;
* The avahi-daemon seems to have issues keeping the mDNS name resolution running for more than a few minutes. I don't know if this is a power management issue or something else at this point.&lt;/div&gt;</summary>
		<author><name>Smoofra</name></author>
	</entry>
</feed>