<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Tony Berth schrieb:
<blockquote
cite="mid:3494db260910061240g171a11b3r5bd670741d6c3113@mail.gmail.com"
type="cite">On Tue, Oct 6, 2009 at 10:00 PM, Frederik Sdun <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:frederik.sdun@googlemail.com">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 moz-do-not-send="true"
href="mailto:tonyberth@googlemail.com">tonyberth@googlemail.com</a>>
[06.10.2009 18:06]:<br>
<div>
<div class="h5">> followed as described in:<br>
><br>
> <a moz-do-not-send="true"
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 moz-do-not-send="true"
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 moz-do-not-send="true"
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
moz-do-not-send="true" href="http://192.168.0.0/24">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
moz-do-not-send="true" href="http://192.168.0.0/24">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>
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<br>
<br>
echo 1 > /proc/sys/net/ipv4/ip_forward<br>
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 class="moz-signature" cols="72">--
Mit freundlichen Grüssen
Matthias Huber
Kohlstattstr. 14
86459 Wollishausen
Tel: 08238-7998
LPI000181125
</pre>
</body>
</html>