USB Networking troubles

michael cole mjcole137 at gmail.com
Thu Aug 7 23:30:38 CEST 2008


This is not a Freerunner issue -- I am able to ssh into FR using UBS
networking but I simply cannot get the Freerunner to ping anything
other than the desktop it is connected to. The issue almost certainly
has something to do with the iptables/nat  setup on the desktop
computer.

I've followed the 'Getting started' instructions for USB networking
(esp Debian) and looked at various website on setting up iptables and
NAT. The desktop is a debian AMD64 system (2.6.19.1 64 bit kernel).

This is posted with the hope someone can look at the current state of
my Freerunner connection to the desktop and just see something that is
not right. I am sure the answer is simple and am reluctant to ask the
community for non-FR help but perhaps others are struggling with
similar network issues in getting their FR hooked up to the Internet.

My basic setup:
router - 192.168.1.1
desktop - 192.168.1.200
freerunner - 192.168.1.202

Situation:
FR can ping desktop but no other machines on the local network or the router.
Desktop can ping and connect to the FR. No other machines on the
network can ping the FR.


routing table at Freerunner

root at om-gta02:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     *               255.255.255.0   U     0      0        0 usb0
default         192.168.1.200 0.0.0.0         UG    0      0        0 usb0

routing table at desktop:
# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.192   0.0.0.0         255.255.255.192 U     0      0        0 usb0
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 eth0


iptables (desktop)
# iptables -L -t filter -v -n
Chain INPUT (policy ACCEPT 58611 packets, 13M bytes)
 pkts bytes target     prot opt in     out     source
destination

Chain FORWARD (policy ACCEPT 4 packets, 350 bytes)
 pkts bytes target     prot opt in     out     source
destination

Chain OUTPUT (policy ACCEPT 40536 packets, 4874K bytes)
 pkts bytes target     prot opt in     out     source
destination

# iptables -L -t nat -v -n
Chain PREROUTING (policy ACCEPT 6170 packets, 2295K bytes)
 pkts bytes target     prot opt in     out     source
destination

Chain POSTROUTING (policy ACCEPT 215 packets, 9862 bytes)
 pkts bytes target     prot opt in     out     source
destination
 1308 88572 MASQUERADE  all  --  *      *       192.168.1.0/24
0.0.0.0/0
    0     0 MASQUERADE  all  --  *      *       192.168.1.192/26
0.0.0.0/0

Chain OUTPUT (policy ACCEPT 1519 packets, 97814 bytes)
 pkts bytes target     prot opt in     out     source               destination

The program netstat-nat (running on desktop) shows:
# netstat-nat
Proto NATed Address                  Foreign Address                State
tcp   moko:57602                     moko:ssh                       ESTABLISHED

Again, sorry for such a mundane question. Any help is much appreciated.
-- 
Michael Cole
mjcole137 at gmail.com




More information about the support mailing list