<!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">&lt;<a moz-do-not-send="true"
 href="mailto:frederik.sdun@googlemail.com">frederik.sdun@googlemail.com</a>&gt;</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 &lt;<a moz-do-not-send="true"
 href="mailto:tonyberth@googlemail.com">tonyberth@googlemail.com</a>&gt;
[06.10.2009 18:06]:<br>
    <div>
    <div class="h5">&gt; &nbsp; &nbsp;followed as described in:<br>
&gt;<br>
&gt; &nbsp; &nbsp;<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>
&gt;<br>
&gt; &nbsp; &nbsp;-------------<br>
&gt;<br>
&gt; &nbsp; Ubuntu 9.04 - the Jaunty Jackalope -- udev<br>
&gt;<br>
&gt; &nbsp; &nbsp;One can see /etc/udev/rules.d that a device plugged in on USB
will be<br>
&gt; &nbsp; &nbsp;called eth1. Go to system-&gt;Administration-&gt;Network and
add the parameters<br>
&gt; &nbsp; &nbsp;for eth1 &lt; static ip, address 192.168.0.200 mask
255.255.255.192 add your<br>
&gt; &nbsp; &nbsp;default gateway&gt;. Thats is all.<br>
&gt;<br>
&gt; &nbsp; &nbsp;Tested with Qi bootloader aka official MAC address of the
Freerunner : on<br>
&gt; &nbsp; &nbsp;Android Koolu beta 7<br>
&gt;<br>
&gt; &nbsp; &nbsp;Carig Philippines --frank 14:11, 17 June 2009 (UTC)<br>
&gt;<br>
&gt; &nbsp; &nbsp;----------<br>
&gt;<br>
&gt; &nbsp; &nbsp;and eth1 gets assigned the proper IP address. I can connect to
Neo but<br>
&gt; &nbsp; &nbsp;from there I don't have any connection to the 'outside'. Please
notice<br>
&gt; &nbsp; &nbsp;that resolv.conf has the correct Opendns IPs!<br>
&gt;<br>
&gt; &nbsp; &nbsp;Actually I should face the same problem as described in:<br>
&gt;<br>
&gt; &nbsp; &nbsp;<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>
&gt;<br>
&gt; &nbsp; &nbsp;but the postings there weren't of any help :(<br>
&gt;<br>
&gt; &nbsp; &nbsp;Thanks<br>
&gt;<br>
&gt; &nbsp; &nbsp;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>
&gt; _______________________________________________<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>
&amp;<br>
up echo 1 &gt; /proc/sys/net/ipv4/ip_forward &amp;<br>
up iptables -P FORWARD ACCEPT &amp;<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>
&amp;<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 &gt; /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&uuml;ssen
Matthias Huber 
Kohlstattstr. 14
86459 Wollishausen
Tel: 08238-7998
LPI000181125
</pre>
</body>
</html>