<div dir="ltr">Thanks man. That&#39;s awesome script. <br><br>For newbies: In addition to above script you should also update /etc/resolve.conf to reflect the contents of your host machine. Without that hostname to IP resolution will fails and &#39;opkg update&#39; won&#39;t work.<br>
<br>Jayesh<br><br><div class="gmail_quote">On Sun, Jul 13, 2008 at 7:27 AM, Eildert Groeneveld &lt;<a href="mailto:eg@tzv.fal.de">eg@tzv.fal.de</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Sunday 13 July 2008, joseph schlesinger wrote:<br>
&gt; Running it as root does not work, nor does passing a --device<br>
&gt; parameter. &nbsp;I should mention that I&#39;ve also tried a number of different<br>
&gt; linux host machines and usb ports on each. &nbsp;Could it be a defective phone?<br>
<br>
</div>This is what I need to run as root and the everything works fine:<br>
root(eno,freerunner)# cat upom<br>
#!/bin/sh<br>
/sbin/ifconfig usb0 <a href="http://192.168.0.200" target="_blank">192.168.0.200</a> netmask <a href="http://255.255.255.0" target="_blank">255.255.255.0</a><br>
/sbin/route add -host <a href="http://192.168.0.202/32" target="_blank">192.168.0.202/32</a> dev usb0<br>
<br>
/bin/echo 1 &gt; /proc/sys/net/ipv4/ip_forward<br>
iptables -F<br>
iptables -A INPUT -s <a href="http://192.168.0.202" target="_blank">192.168.0.202</a> -i usb0 &nbsp;-d <a href="http://192.168.0.200" target="_blank">192.168.0.200</a> &nbsp; -j ACCEPT<br>
iptables -A INPUT &nbsp;-s <a href="http://192.168.0.200" target="_blank">192.168.0.200</a> &nbsp;-i eth+ &nbsp;-d <a href="http://192.168.0.202" target="_blank">192.168.0.202</a> &nbsp;-j ACCEPT<br>
iptables -A INPUT &nbsp;-s <a href="http://192.168.2.0/24" target="_blank">192.168.2.0/24</a> &nbsp;-i eth+ &nbsp;-d <a href="http://192.168.0.202" target="_blank">192.168.0.202</a> &nbsp;-j ACCEPT<br>
iptables -A INPUT &nbsp;-s <a href="http://192.168.2.0/24" target="_blank">192.168.2.0/24</a> &nbsp;-i eth+ &nbsp;-d <a href="http://192.168.2.0/24" target="_blank">192.168.2.0/24</a> &nbsp;-j ACCEPT<br>
<br>
iptables -A FORWARD -s <a href="http://192.168.0.202" target="_blank">192.168.0.202</a> -i usb0 -d <a href="http://192.168.2.0/24" target="_blank">192.168.2.0/24</a> -o eth+ &nbsp; -j<br>
ACCEPT<br>
iptables -A FORWARD -s <a href="http://192.168.2.0/24" target="_blank">192.168.2.0/24</a> -i eth+ -d <a href="http://192.168.0.202" target="_blank">192.168.0.202</a> -o usb0 &nbsp;-j<br>
ACCEPT<br>
<br>
iptables -A OUTPUT -d <a href="http://192.168.2.0/24" target="_blank">192.168.2.0/24</a> -o eth+ &nbsp; -j ACCEPT<br>
iptables -A OUTPUT -d <a href="http://192.168.0.202" target="_blank">192.168.0.202</a> -o usb0 &nbsp;-j ACCEPT<br>
iptables -A POSTROUTING -t nat -j MASQUERADE -s <a href="http://192.168.0.0/24root%28eno,freerunner%29#" target="_blank">192.168.0.0/24<br>
root(eno,freerunner)#</a><br>
<br>
<br>
courtesy I-dont-remember<br>
<br>
Eildert<br>
<br>
--<br>
<font color="#888888">Eildert Groeneveld<br>
===================================================<br>
Institute of Farm Animal Genetics<br>
Mariensee 31535 Neustadt Germany<br>
Tel : (+49)(0)5034 871155 Fax : (+49)(0)5034 871239<br>
e-mail: <a href="mailto:eildert.groeneveld@fli.bund.de">eildert.groeneveld@fli.bund.de</a> <a href="http://vce.tzv.fal.de/index.pl" target="_blank">http://vce.tzv.fal.de/index.pl</a><br>
<a href="http://www.tzv.fal.de/%7Eeg/" target="_blank">http://www.tzv.fal.de/~eg/</a> <a href="http://apiis.tzv.fal.de/index.pl" target="_blank">http://apiis.tzv.fal.de/index.pl</a><br>
===================================================<br>
</font><div><div></div><div class="Wj3C7c"><br>
_______________________________________________<br>
Openmoko community mailing list<br>
<a href="mailto:community@lists.openmoko.org">community@lists.openmoko.org</a><br>
<a href="http://lists.openmoko.org/mailman/listinfo/community" target="_blank">http://lists.openmoko.org/mailman/listinfo/community</a><br>
</div></div></blockquote></div><br></div>