Bingo. Thanks A LOT!<br><br>Is it possible to update the Wiki with that one. I think this will be a great help to the whole community<br><br>Cheers<br><br>Tony<br><br><div class="gmail_quote">2009/10/7 Cristian Gómez <span dir="ltr"><<a href="mailto:cristianpark@gmail.com">cristianpark@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi, What I do to connect the FreeRunner to the PC is running this script [1] that I've made with the things listed on the wiki. To run it just type sudo sh usb_networking.sh. <br>
<br>I used it on Arch Linux and Ubuntu and I think it works on every distro as well. Any changes, suggestions are welcome. Currently it's on spanish.<br>
<br>Note: The script is configured for SHR so it uses the eth1 interface not the usb0<br><br>[1] <a href="http://www.mediafire.com/download.php?zm0gtz2tyjq" target="_blank">http://www.mediafire.com/download.php?zm0gtz2tyjq</a><br>
<br clear="all">
/***************************************<br>* Don't Worry.......Be Linux!!!!<br>* Cristian Gómez Alvarez <br>* Ingeniero en Sistemas y Computación<br>* Universidad de Caldas <br>* Comunidad de Software Libre Manizales<br>
* IEEE/WIE Student Member<br>* Linux User #463617 <br>* Mi Blog: <a href="http://cristianpark.sehablalinux.com/" target="_blank">http://cristianpark.sehablalinux.com/</a><br>****************************************/<br>
<br><br><div class="gmail_quote">2009/10/6 Matthias Huber <span dir="ltr"><<a href="mailto:matthias.huber@wollishausen.de" target="_blank">matthias.huber@wollishausen.de</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="h5">
<div bgcolor="#ffffff" text="#000000">
Tony Berth schrieb:
<div><div></div><div><blockquote type="cite">On Tue, Oct 6, 2009 at 10:00 PM, Frederik Sdun <span dir="ltr"><<a href="mailto:frederik.sdun@googlemail.com" target="_blank">frederik.sdun@googlemail.com</a>></span>
wrote:<br>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">*
Tony Berth <<a href="mailto:tonyberth@googlemail.com" target="_blank">tonyberth@googlemail.com</a>>
[06.10.2009 18:06]:<br>
<div>
<div>> followed as described in:<br>
><br>
> <a href="http://wiki.openmoko.org/wiki/USB_Networking" target="_blank">http://wiki.openmoko.org/wiki/USB_Networking</a><br>
><br>
> -------------<br>
><br>
> Ubuntu 9.04 - the Jaunty Jackalope -- udev<br>
><br>
> One can see /etc/udev/rules.d that a device plugged in on USB
will be<br>
> called eth1. Go to system->Administration->Network and
add the parameters<br>
> for eth1 < static ip, address 192.168.0.200 mask
255.255.255.192 add your<br>
> default gateway>. Thats is all.<br>
><br>
> Tested with Qi bootloader aka official MAC address of the
Freerunner : on<br>
> Android Koolu beta 7<br>
><br>
> Carig Philippines --frank 14:11, 17 June 2009 (UTC)<br>
><br>
> ----------<br>
><br>
> and eth1 gets assigned the proper IP address. I can connect to
Neo but<br>
> from there I don't have any connection to the 'outside'. Please
notice<br>
> that resolv.conf has the correct Opendns IPs!<br>
><br>
> Actually I should face the same problem as described in:<br>
><br>
> <a href="http://lists.openmoko.org/nabble.html#nabble-td3119750" target="_blank">http://lists.openmoko.org/nabble.html#nabble-td3119750</a><br>
><br>
> but the postings there weren't of any help :(<br>
><br>
> Thanks<br>
><br>
> Tony<br>
</div>
</div>
I used the config you can find in [0] and it works.<br>
<br>
<br>
[0] <a href="http://wiki.openmoko.org/wiki/USB_Networking#Debian.2C_Ubuntu_and_others" target="_blank">http://wiki.openmoko.org/wiki/USB_Networking#Debian.2C_Ubuntu_and_others</a><br>
> _______________________________________________<br>
<br>
</blockquote>
<div><br>
but this one 'ties' it in usb0 although it connects as eth1! How can
this work?<br>
<br>
I also used the following entries in /etc/network/interfaces:<br>
<br>
#freerunner3<br>
allow-hotplug eth1<br>
iface eth1 inet static<br>
address 192.168.0.200<br>
netmask 255.255.255.0<br>
network 192.168.0.0<br>
up iptables -A POSTROUTING -t nat -j MASQUERADE -s <a href="http://192.168.0.0/24" target="_blank">192.168.0.0/24</a>
&<br>
up echo 1 > /proc/sys/net/ipv4/ip_forward &<br>
up iptables -P FORWARD ACCEPT &<br>
down iptables -D POSTROUTING -t nat -j MASQUERADE -s <a href="http://192.168.0.0/24" target="_blank">192.168.0.0/24</a>
&<br>
<br>
and didn't work! Openmoko wasn't able to get an IP address at all!<br>
</div>
</div>
</blockquote></div></div>
get ip adress ? dont understand this.<br>
<br>
but i had to add this two lines to my /etc/ufw/ufw.conf<br>
<br>
ufw allow from 192.168.0.202<br>
ufw allow to 192.168.0.202<br>
<br>
<br>
another trial with iptables needs to load some modules too:<br>
<br>
#!/bin/sh<br>
<br>
MOKO=192.168.0.202<div><br>
<br>
echo 1 > /proc/sys/net/ipv4/ip_forward<br></div>
modprobe ipt_MASQUERADE<br>
<br>
iptables -I FORWARD -j ACCEPT -d ${MOKO}/32<br>
iptables -I FORWARD -j ACCEPT -s ${MOKO}/32<br>
iptables -I POSTROUTING -t nat -j MASQUERADE -s ${MOKO}/32 <br>
<br>
<br>
<pre cols="72">--
Mit freundlichen Grüssen
Matthias Huber
Kohlstattstr. 14
86459 Wollishausen
Tel: 08238-7998
LPI000181125
</pre>
</div>
<br></div></div><div class="im">_______________________________________________<br>
Openmoko community mailing list<br>
<a href="mailto:community@lists.openmoko.org" target="_blank">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>
<br></div></blockquote></div><br>
<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>
<br></blockquote></div><br>