Re: USB networking with Ubuntu 9.04
Why use a script that you need to run manually each time? It can be done automatically just by putting the right stuff in /etc/network/interfaces: auto eth2 iface eth2 inet static address 192.168.0.200 netmask 255.255.255.0 post-up iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -j MASQUERADE post-up echo 1 /proc/sys/net/ipv4/ip_forward post-up route add -host 192.168.0.202 dev eth2 post-up dnsmasq pre-down echo 0 /proc/sys/net/ipv4/ip_forward pre-down iptables -t nat -D POSTROUTING -s 192.168.0.0/24 -j MASQUERADE pre-down killall dnsmasq when you plug in the FR, eth2 will activate automatically.. grtz Sander On Thursday 08 October 2009 03:24:06 Cristian Gómez wrote: Hi Tony, thanks for giving a try to the script. I'm glad it helped you. I just create a sub-section on the wiki page [1] where I put the script to help others to get connected easily. Cheers [1] http://wiki.openmoko.org/wiki/USB_Networking#Connection_Script /*** * Don't Worry...Be Linux * Cristian Gómez Alvarez * Ingeniero en Sistemas y Computación * Universidad de Caldas * Comunidad de Software Libre Manizales * IEEE/WIE Student Member * Linux User #463617 * Mi Blog: http://cristianpark.sehablalinux.com/ / 2009/10/7 Tony Berth tonybe...@googlemail.com On Wed, Oct 7, 2009 at 10:27 AM, Matthias Huber matthias.hu...@wollishausen.de wrote: Tony Berth schrieb: Bingo. Thanks A LOT! Is it possible to update the Wiki with that one. I think this will be a great help to the whole community if you would tell me wich of / or both tricks did it on your system ? but i had to add this two lines to my /etc/ufw/ufw.conf ufw allow from 192.168.0.202 ufw allow to 192.168.0.202 another trial with iptables needs to load some modules too: #!/bin/sh MOKO=192.168.0.202 echo 1 /proc/sys/net/ipv4/ip_forward modprobe ipt_MASQUERADE iptables -I FORWARD -j ACCEPT -d ${MOKO}/32 iptables -I FORWARD -j ACCEPT -s ${MOKO}/32 iptables -I POSTROUTING -t nat -j MASQUERADE -s ${MOKO}/32 what works was the script Cristian Gomez included in his reply! Just for the records, the first time I run that script it does assign the 192.168.0.200 IP to eth1 but can't ping/access 192.168.0.202! Then: - I disconnect Openmoko - connect it again - re-run the script and voila the connection is there! Thanks Tony ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: USB networking with Ubuntu 9.04
did try that and did work when I was using a debian 5 box but no chance with ubuntu 9.04 :( Thanks Tony On Thu, Oct 8, 2009 at 1:21 PM, Sander van Grieken san...@3v8.net wrote: Why use a script that you need to run manually each time? It can be done automatically just by putting the right stuff in /etc/network/interfaces: auto eth2 iface eth2 inet static address 192.168.0.200 netmask 255.255.255.0 post-up iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -j MASQUERADE post-up echo 1 /proc/sys/net/ipv4/ip_forward post-up route add -host 192.168.0.202 dev eth2 post-up dnsmasq pre-down echo 0 /proc/sys/net/ipv4/ip_forward pre-down iptables -t nat -D POSTROUTING -s 192.168.0.0/24 -j MASQUERADE pre-down killall dnsmasq when you plug in the FR, eth2 will activate automatically.. grtz Sander On Thursday 08 October 2009 03:24:06 Cristian Gómez wrote: Hi Tony, thanks for giving a try to the script. I'm glad it helped you. I just create a sub-section on the wiki page [1] where I put the script to help others to get connected easily. Cheers [1] http://wiki.openmoko.org/wiki/USB_Networking#Connection_Script /*** * Don't Worry...Be Linux * Cristian Gómez Alvarez * Ingeniero en Sistemas y Computación * Universidad de Caldas * Comunidad de Software Libre Manizales * IEEE/WIE Student Member * Linux User #463617 * Mi Blog: http://cristianpark.sehablalinux.com/ / 2009/10/7 Tony Berth tonybe...@googlemail.com On Wed, Oct 7, 2009 at 10:27 AM, Matthias Huber matthias.hu...@wollishausen.de wrote: Tony Berth schrieb: Bingo. Thanks A LOT! Is it possible to update the Wiki with that one. I think this will be a great help to the whole community if you would tell me wich of / or both tricks did it on your system ? but i had to add this two lines to my /etc/ufw/ufw.conf ufw allow from 192.168.0.202 ufw allow to 192.168.0.202 another trial with iptables needs to load some modules too: #!/bin/sh MOKO=192.168.0.202 echo 1 /proc/sys/net/ipv4/ip_forward modprobe ipt_MASQUERADE iptables -I FORWARD -j ACCEPT -d ${MOKO}/32 iptables -I FORWARD -j ACCEPT -s ${MOKO}/32 iptables -I POSTROUTING -t nat -j MASQUERADE -s ${MOKO}/32 what works was the script Cristian Gomez included in his reply! Just for the records, the first time I run that script it does assign the 192.168.0.200 IP to eth1 but can't ping/access 192.168.0.202! Then: - I disconnect Openmoko - connect it again - re-run the script and voila the connection is there! Thanks Tony ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: USB networking with Ubuntu 9.04
I copied Sander's exact lines into /etc/network/interfaces (I changed eth2 to usb0 -- I don't know if that matters) on my ubuntu 9.04 laptop and it's working for me. I have plugged and unplugged the cable a couple times and no longer have to run my manual script each time. Thanks! Eric Tony Berth wrote: did try that and did work when I was using a debian 5 box but no chance with ubuntu 9.04 :( Thanks Tony On Thu, Oct 8, 2009 at 1:21 PM, Sander van Grieken san...@3v8.net wrote: Why use a script that you need to run manually each time? It can be done automatically just by putting the right stuff in /etc/network/interfaces: auto eth2 iface eth2 inet static address 192.168.0.200 netmask 255.255.255.0 post-up iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -j MASQUERADE post-up echo 1 /proc/sys/net/ipv4/ip_forward post-up route add -host 192.168.0.202 dev eth2 post-up dnsmasq pre-down echo 0 /proc/sys/net/ipv4/ip_forward pre-down iptables -t nat -D POSTROUTING -s 192.168.0.0/24 -j MASQUERADE pre-down killall dnsmasq when you plug in the FR, eth2 will activate automatically.. grtz Sander On Thursday 08 October 2009 03:24:06 Cristian Gómez wrote: Hi Tony, thanks for giving a try to the script. I'm glad it helped you. I just create a sub-section on the wiki page [1] where I put the script to help others to get connected easily. Cheers [1] http://wiki.openmoko.org/wiki/USB_Networking#Connection_Script /*** * Don't Worry...Be Linux * Cristian Gómez Alvarez * Ingeniero en Sistemas y Computación * Universidad de Caldas * Comunidad de Software Libre Manizales * IEEE/WIE Student Member * Linux User #463617 * Mi Blog: http://cristianpark.sehablalinux.com/ / 2009/10/7 Tony Berth tonybe...@googlemail.com On Wed, Oct 7, 2009 at 10:27 AM, Matthias Huber matthias.hu...@wollishausen.de wrote: Tony Berth schrieb: Bingo. Thanks A LOT! Is it possible to update the Wiki with that one. I think this will be a great help to the whole community if you would tell me wich of / or both tricks did it on your system ? but i had to add this two lines to my /etc/ufw/ufw.conf ufw allow from 192.168.0.202 ufw allow to 192.168.0.202 another trial with iptables needs to load some modules too: #!/bin/sh MOKO=192.168.0.202 echo 1 /proc/sys/net/ipv4/ip_forward modprobe ipt_MASQUERADE iptables -I FORWARD -j ACCEPT -d ${MOKO}/32 iptables -I FORWARD -j ACCEPT -s ${MOKO}/32 iptables -I POSTROUTING -t nat -j MASQUERADE -s ${MOKO}/32 what works was the script Cristian Gomez included in his reply! Just for the records, the first time I run that script it does assign the 192.168.0.200 IP to eth1 but can't ping/access 192.168.0.202! Then: - I disconnect Openmoko - connect it again - re-run the script and voila the connection is there! Thanks Tony ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: USB networking with Ubuntu 9.04
Bingo. Thanks A LOT! Is it possible to update the Wiki with that one. I think this will be a great help to the whole community Cheers Tony 2009/10/7 Cristian Gómez cristianp...@gmail.com 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. 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. Note: The script is configured for SHR so it uses the eth1 interface not the usb0 [1] http://www.mediafire.com/download.php?zm0gtz2tyjq /*** * Don't Worry...Be Linux * Cristian Gómez Alvarez * Ingeniero en Sistemas y Computación * Universidad de Caldas * Comunidad de Software Libre Manizales * IEEE/WIE Student Member * Linux User #463617 * Mi Blog: http://cristianpark.sehablalinux.com/ / 2009/10/6 Matthias Huber matthias.hu...@wollishausen.de Tony Berth schrieb: On Tue, Oct 6, 2009 at 10:00 PM, Frederik Sdun frederik.s...@googlemail.com wrote: * Tony Berth tonybe...@googlemail.com [06.10.2009 18:06]: followed as described in: http://wiki.openmoko.org/wiki/USB_Networking - Ubuntu 9.04 - the Jaunty Jackalope -- udev One can see /etc/udev/rules.d that a device plugged in on USB will be called eth1. Go to system-Administration-Network and add the parameters for eth1 static ip, address 192.168.0.200 mask 255.255.255.192 add your default gateway. Thats is all. Tested with Qi bootloader aka official MAC address of the Freerunner : on Android Koolu beta 7 Carig Philippines --frank 14:11, 17 June 2009 (UTC) -- and eth1 gets assigned the proper IP address. I can connect to Neo but from there I don't have any connection to the 'outside'. Please notice that resolv.conf has the correct Opendns IPs! Actually I should face the same problem as described in: http://lists.openmoko.org/nabble.html#nabble-td3119750 but the postings there weren't of any help :( Thanks Tony I used the config you can find in [0] and it works. [0] http://wiki.openmoko.org/wiki/USB_Networking#Debian.2C_Ubuntu_and_others ___ but this one 'ties' it in usb0 although it connects as eth1! How can this work? I also used the following entries in /etc/network/interfaces: #freerunner3 allow-hotplug eth1 iface eth1 inet static address 192.168.0.200 netmask 255.255.255.0 network 192.168.0.0 up iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24 up echo 1 /proc/sys/net/ipv4/ip_forward up iptables -P FORWARD ACCEPT down iptables -D POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24 and didn't work! Openmoko wasn't able to get an IP address at all! get ip adress ? dont understand this. but i had to add this two lines to my /etc/ufw/ufw.conf ufw allow from 192.168.0.202 ufw allow to 192.168.0.202 another trial with iptables needs to load some modules too: #!/bin/sh MOKO=192.168.0.202 echo 1 /proc/sys/net/ipv4/ip_forward modprobe ipt_MASQUERADE iptables -I FORWARD -j ACCEPT -d ${MOKO}/32 iptables -I FORWARD -j ACCEPT -s ${MOKO}/32 iptables -I POSTROUTING -t nat -j MASQUERADE -s ${MOKO}/32 -- Mit freundlichen Grüssen Matthias Huber Kohlstattstr. 14 86459 Wollishausen Tel: 08238-7998 LPI000181125 ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: USB networking with Ubuntu 9.04
Tony Berth schrieb: Bingo. Thanks A LOT! Is it possible to update the Wiki with that one. I think this will be a great help to the whole community if you would tell me wich of / or both tricks did it on your system ? but i had to add this two lines to my /etc/ufw/ufw.conf ufw allow from 192.168.0.202 ufw allow to 192.168.0.202 another trial with iptables needs to load some modules too: #!/bin/sh MOKO=192.168.0.202 echo 1 /proc/sys/net/ipv4/ip_forward modprobe ipt_MASQUERADE iptables -I FORWARD -j ACCEPT -d ${MOKO}/32 iptables -I FORWARD -j ACCEPT -s ${MOKO}/32 iptables -I POSTROUTING -t nat -j MASQUERADE -s ${MOKO}/32 -- Mit freundlichen Grüssen Matthias Huber Kohlstattstr. 14 86459 Wollishausen Tel: 08238-7998 LPI000181125 ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: USB networking with Ubuntu 9.04
On Wed, Oct 7, 2009 at 10:27 AM, Matthias Huber matthias.hu...@wollishausen.de wrote: Tony Berth schrieb: Bingo. Thanks A LOT! Is it possible to update the Wiki with that one. I think this will be a great help to the whole community if you would tell me wich of / or both tricks did it on your system ? but i had to add this two lines to my /etc/ufw/ufw.conf ufw allow from 192.168.0.202 ufw allow to 192.168.0.202 another trial with iptables needs to load some modules too: #!/bin/sh MOKO=192.168.0.202 echo 1 /proc/sys/net/ipv4/ip_forward modprobe ipt_MASQUERADE iptables -I FORWARD -j ACCEPT -d ${MOKO}/32 iptables -I FORWARD -j ACCEPT -s ${MOKO}/32 iptables -I POSTROUTING -t nat -j MASQUERADE -s ${MOKO}/32 what works was the script Cristian Gomez included in his reply! Just for the records, the first time I run that script it does assign the 192.168.0.200 IP to eth1 but can't ping/access 192.168.0.202! Then: - I disconnect Openmoko - connect it again - re-run the script and voila the connection is there! Thanks Tony ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: USB networking with Ubuntu 9.04
Hi Tony, thanks for giving a try to the script. I'm glad it helped you. I just create a sub-section on the wiki page [1] where I put the script to help others to get connected easily. Cheers [1] http://wiki.openmoko.org/wiki/USB_Networking#Connection_Script /*** * Don't Worry...Be Linux * Cristian Gómez Alvarez * Ingeniero en Sistemas y Computación * Universidad de Caldas * Comunidad de Software Libre Manizales * IEEE/WIE Student Member * Linux User #463617 * Mi Blog: http://cristianpark.sehablalinux.com/ / 2009/10/7 Tony Berth tonybe...@googlemail.com On Wed, Oct 7, 2009 at 10:27 AM, Matthias Huber matthias.hu...@wollishausen.de wrote: Tony Berth schrieb: Bingo. Thanks A LOT! Is it possible to update the Wiki with that one. I think this will be a great help to the whole community if you would tell me wich of / or both tricks did it on your system ? but i had to add this two lines to my /etc/ufw/ufw.conf ufw allow from 192.168.0.202 ufw allow to 192.168.0.202 another trial with iptables needs to load some modules too: #!/bin/sh MOKO=192.168.0.202 echo 1 /proc/sys/net/ipv4/ip_forward modprobe ipt_MASQUERADE iptables -I FORWARD -j ACCEPT -d ${MOKO}/32 iptables -I FORWARD -j ACCEPT -s ${MOKO}/32 iptables -I POSTROUTING -t nat -j MASQUERADE -s ${MOKO}/32 what works was the script Cristian Gomez included in his reply! Just for the records, the first time I run that script it does assign the 192.168.0.200 IP to eth1 but can't ping/access 192.168.0.202! Then: - I disconnect Openmoko - connect it again - re-run the script and voila the connection is there! Thanks Tony ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
USB networking with Ubuntu 9.04
followed as described in: http://wiki.openmoko.org/wiki/USB_Networking - Ubuntu 9.04 - the Jaunty Jackalope -- udev One can see /etc/udev/rules.d that a device plugged in on USB will be called *eth1*. Go to system-Administration-Network and add the parameters for eth1 static ip, address 192.168.0.200 mask 255.255.255.192 add your default gateway. Thats is all. Tested with Qi bootloader aka official MAC address of the Freerunner : on Android Koolu beta 7 Carig Philippines --frankhttp://wiki.openmoko.org/index.php?title=User:Frankaction=edit14:11, 17 June 2009 (UTC) -- and eth1 gets assigned the proper IP address. I can connect to Neo but from there I don't have any connection to the 'outside'. Please notice that resolv.conf has the correct Opendns IPs! Actually I should face the same problem as described in: http://lists.openmoko.org/nabble.html#nabble-td3119750 but the postings there weren't of any help :( Thanks Tony ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: USB networking with Ubuntu 9.04
* Tony Berth tonybe...@googlemail.com [06.10.2009 18:06]: followed as described in: http://wiki.openmoko.org/wiki/USB_Networking - Ubuntu 9.04 - the Jaunty Jackalope -- udev One can see /etc/udev/rules.d that a device plugged in on USB will be called eth1. Go to system-Administration-Network and add the parameters for eth1 static ip, address 192.168.0.200 mask 255.255.255.192 add your default gateway. Thats is all. Tested with Qi bootloader aka official MAC address of the Freerunner : on Android Koolu beta 7 Carig Philippines --frank 14:11, 17 June 2009 (UTC) -- and eth1 gets assigned the proper IP address. I can connect to Neo but from there I don't have any connection to the 'outside'. Please notice that resolv.conf has the correct Opendns IPs! Actually I should face the same problem as described in: http://lists.openmoko.org/nabble.html#nabble-td3119750 but the postings there weren't of any help :( Thanks Tony I used the config you can find in [0] and it works. [0] http://wiki.openmoko.org/wiki/USB_Networking#Debian.2C_Ubuntu_and_others ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community -- IRC: playya @ Freenode, Gimpnet xmpp: pla...@draugr.de signature.asc Description: Digital signature ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: USB networking with Ubuntu 9.04
On Tue, Oct 6, 2009 at 10:00 PM, Frederik Sdun frederik.s...@googlemail.com wrote: * Tony Berth tonybe...@googlemail.com [06.10.2009 18:06]: followed as described in: http://wiki.openmoko.org/wiki/USB_Networking - Ubuntu 9.04 - the Jaunty Jackalope -- udev One can see /etc/udev/rules.d that a device plugged in on USB will be called eth1. Go to system-Administration-Network and add the parameters for eth1 static ip, address 192.168.0.200 mask 255.255.255.192 add your default gateway. Thats is all. Tested with Qi bootloader aka official MAC address of the Freerunner : on Android Koolu beta 7 Carig Philippines --frank 14:11, 17 June 2009 (UTC) -- and eth1 gets assigned the proper IP address. I can connect to Neo but from there I don't have any connection to the 'outside'. Please notice that resolv.conf has the correct Opendns IPs! Actually I should face the same problem as described in: http://lists.openmoko.org/nabble.html#nabble-td3119750 but the postings there weren't of any help :( Thanks Tony I used the config you can find in [0] and it works. [0] http://wiki.openmoko.org/wiki/USB_Networking#Debian.2C_Ubuntu_and_others ___ but this one 'ties' it in usb0 although it connects as eth1! How can this work? I also used the following entries in /etc/network/interfaces: #freerunner3 allow-hotplug eth1 iface eth1 inet static address 192.168.0.200 netmask 255.255.255.0 network 192.168.0.0 up iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24 up echo 1 /proc/sys/net/ipv4/ip_forward up iptables -P FORWARD ACCEPT down iptables -D POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24 and didn't work! Openmoko wasn't able to get an IP address at all! Thanks Tony ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: USB networking with Ubuntu 9.04
Tony Berth schrieb: On Tue, Oct 6, 2009 at 10:00 PM, Frederik Sdun frederik.s...@googlemail.com mailto:frederik.s...@googlemail.com wrote: * Tony Berth tonybe...@googlemail.com mailto:tonybe...@googlemail.com [06.10.2009 18:06]: followed as described in: http://wiki.openmoko.org/wiki/USB_Networking - Ubuntu 9.04 - the Jaunty Jackalope -- udev One can see /etc/udev/rules.d that a device plugged in on USB will be called eth1. Go to system-Administration-Network and add the parameters for eth1 static ip, address 192.168.0.200 mask 255.255.255.192 add your default gateway. Thats is all. Tested with Qi bootloader aka official MAC address of the Freerunner : on Android Koolu beta 7 Carig Philippines --frank 14:11, 17 June 2009 (UTC) -- and eth1 gets assigned the proper IP address. I can connect to Neo but from there I don't have any connection to the 'outside'. Please notice that resolv.conf has the correct Opendns IPs! Actually I should face the same problem as described in: http://lists.openmoko.org/nabble.html#nabble-td3119750 but the postings there weren't of any help :( Thanks Tony I used the config you can find in [0] and it works. [0] http://wiki.openmoko.org/wiki/USB_Networking#Debian.2C_Ubuntu_and_others ___ but this one 'ties' it in usb0 although it connects as eth1! How can this work? I also used the following entries in /etc/network/interfaces: #freerunner3 allow-hotplug eth1 iface eth1 inet static address 192.168.0.200 netmask 255.255.255.0 network 192.168.0.0 up iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24 http://192.168.0.0/24 up echo 1 /proc/sys/net/ipv4/ip_forward up iptables -P FORWARD ACCEPT down iptables -D POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24 http://192.168.0.0/24 and didn't work! Openmoko wasn't able to get an IP address at all! get ip adress ? dont understand this. but i had to add this two lines to my /etc/ufw/ufw.conf ufw allow from 192.168.0.202 ufw allow to 192.168.0.202 another trial with iptables needs to load some modules too: #!/bin/sh MOKO=192.168.0.202 echo 1 /proc/sys/net/ipv4/ip_forward modprobe ipt_MASQUERADE iptables -I FORWARD -j ACCEPT -d ${MOKO}/32 iptables -I FORWARD -j ACCEPT -s ${MOKO}/32 iptables -I POSTROUTING -t nat -j MASQUERADE -s ${MOKO}/32 -- Mit freundlichen Grüssen Matthias Huber Kohlstattstr. 14 86459 Wollishausen Tel: 08238-7998 LPI000181125 ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: USB networking with Ubuntu 9.04
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. 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. Note: The script is configured for SHR so it uses the eth1 interface not the usb0 [1] http://www.mediafire.com/download.php?zm0gtz2tyjq /*** * Don't Worry...Be Linux * Cristian Gómez Alvarez * Ingeniero en Sistemas y Computación * Universidad de Caldas * Comunidad de Software Libre Manizales * IEEE/WIE Student Member * Linux User #463617 * Mi Blog: http://cristianpark.sehablalinux.com/ / 2009/10/6 Matthias Huber matthias.hu...@wollishausen.de Tony Berth schrieb: On Tue, Oct 6, 2009 at 10:00 PM, Frederik Sdun frederik.s...@googlemail.com wrote: * Tony Berth tonybe...@googlemail.com [06.10.2009 18:06]: followed as described in: http://wiki.openmoko.org/wiki/USB_Networking - Ubuntu 9.04 - the Jaunty Jackalope -- udev One can see /etc/udev/rules.d that a device plugged in on USB will be called eth1. Go to system-Administration-Network and add the parameters for eth1 static ip, address 192.168.0.200 mask 255.255.255.192 add your default gateway. Thats is all. Tested with Qi bootloader aka official MAC address of the Freerunner : on Android Koolu beta 7 Carig Philippines --frank 14:11, 17 June 2009 (UTC) -- and eth1 gets assigned the proper IP address. I can connect to Neo but from there I don't have any connection to the 'outside'. Please notice that resolv.conf has the correct Opendns IPs! Actually I should face the same problem as described in: http://lists.openmoko.org/nabble.html#nabble-td3119750 but the postings there weren't of any help :( Thanks Tony I used the config you can find in [0] and it works. [0] http://wiki.openmoko.org/wiki/USB_Networking#Debian.2C_Ubuntu_and_others ___ but this one 'ties' it in usb0 although it connects as eth1! How can this work? I also used the following entries in /etc/network/interfaces: #freerunner3 allow-hotplug eth1 iface eth1 inet static address 192.168.0.200 netmask 255.255.255.0 network 192.168.0.0 up iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24 up echo 1 /proc/sys/net/ipv4/ip_forward up iptables -P FORWARD ACCEPT down iptables -D POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24 and didn't work! Openmoko wasn't able to get an IP address at all! get ip adress ? dont understand this. but i had to add this two lines to my /etc/ufw/ufw.conf ufw allow from 192.168.0.202 ufw allow to 192.168.0.202 another trial with iptables needs to load some modules too: #!/bin/sh MOKO=192.168.0.202 echo 1 /proc/sys/net/ipv4/ip_forward modprobe ipt_MASQUERADE iptables -I FORWARD -j ACCEPT -d ${MOKO}/32 iptables -I FORWARD -j ACCEPT -s ${MOKO}/32 iptables -I POSTROUTING -t nat -j MASQUERADE -s ${MOKO}/32 -- Mit freundlichen Grüssen Matthias Huber Kohlstattstr. 14 86459 Wollishausen Tel: 08238-7998 LPI000181125 ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community