2009/1/8 Robin Paulson <span dir="ltr"><<a href="mailto:robin.paulson@gmail.com">robin.paulson@gmail.com</a>></span><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;">
2009/1/7 Joachim Ott <<a href="mailto:jo.omsl@googlemail.com">jo.omsl@googlemail.com</a>>:<br>
<div><div></div><div class="Wj3C7c">> Does "ssh -v root@neo 2>ssh.log" give you a hint, when the error occurs?<br>
<br>
</div></div>yeah, that hangs too, and writes nothing to the log file</blockquote><div><br>Can you watch the network traffic too? Maybe the route isn't set properly?<br> <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
the phone itself doesn't hang, and i can run any apps as normal, but<br>
they won't download data - i tested tangogps, and it wouldn't get<br>
tiles<br>
<br>
so, i tried<br>
<div class="Ih2E3d"><br>
sudo ifdown usb0<br>
sudo ifup usb0<br>
<br>
</div>and everything worked fine after that, so i figure it's the networking<br>
on the ubuntu side. any suggestions how to fix it?</blockquote><div><br>This is my setup on the Desktop (Knoppix-Debian):<br><br>/etc/network/interfaces:<br>...<br>allow-hotplug usb0<br>iface usb0 inet static<br> address 192.168.0.200<br>
netmask 255.255.255.0<br> up route add -host 192.168.0.202 usb0<br> up route del -net <a href="http://192.168.0.0/24">192.168.0.0/24</a><br> # up tcpdump -ni usb0 -w /tmp/usb0.log<br><br>allow-hotplug usb1<br>
iface usb1 inet static<br> address 192.168.0.201<br> netmask 255.255.255.0<br> up route add -host 192.168.0.203 usb1<br> up route del -net <a href="http://192.168.0.0/24">192.168.0.0/24</a><br>
<br></div></div>The iptables config, this is setup at boot time regardless whether a FR is connected or not:<br><br># Generated by iptables-save v1.3.6 on Tue Jul 22 16:31:52 2008<br>*filter<br>:INPUT ACCEPT [530942:703617921]<br>
:FORWARD ACCEPT [0:0]<br>:OUTPUT ACCEPT [337851:125732665]<br>-A FORWARD -i usb+ -o eth0 -j ACCEPT<br>-A FORWARD -i eth0 -o usb+ -m state --state RELATED,ESTABLISHED -j ACCEPT<br>COMMIT<br># Completed on Tue Jul 22 16:31:52 2008<br>
# Generated by iptables-save v1.3.6 on Tue Jul 22 16:31:52 2008<br>*mangle<br>:PREROUTING ACCEPT [531649:704109028]<br>:INPUT ACCEPT [530945:703618149]<br>:FORWARD ACCEPT [670:484698]<br>:OUTPUT ACCEPT [337854:125732893]<br>
:POSTROUTING ACCEPT [338524:126217591]<br>COMMIT<br># Completed on Tue Jul 22 16:31:52 2008<br># Generated by iptables-save v1.3.6 on Tue Jul 22 16:31:52 2008<br>*nat<br>:PREROUTING ACCEPT [216:25311]<br>:POSTROUTING ACCEPT [9:588]<br>
:OUTPUT ACCEPT [259:15994]<br>-A PREROUTING -i usb+ -p udp -m udp --dport 53 -j DNAT --to-destination 192.168.7.71<br>-A POSTROUTING -o eth0 -j MASQUERADE<br>COMMIT<br># Completed on Tue Jul 22 16:31:52 2008<br><br>And the /etc/network/interfaces on the first FR:<br>
...<br>auto eth0<br>iface eth0 inet dhcp<br> wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf<br><br>auto usb0<br>iface usb0 inet static<br> address 192.168.0.202<br> netmask 255.255.255.0<br> network 192.168.0.0<br>
gateway 192.168.0.200<br> up route del default dev usb0<br> # up echo "nameserver 192.168.0.200" >/etc/resolv.conf<br><br>Notice that I have the defaultroute to usb0 removed because I always use ssh over wlan (much faster). I only use ssh over usb when I've mashed up the wlan settings, and the login over usb it works without defaultroute too.<br>
I think you need to keep that defaultroute and do the nameserver-setting.<br><br>