working SIM install, network problems

Christopher J. White chris at grierwhite.com
Thu Dec 4 16:33:46 CET 2008


On Thu, 2008-12-04 at 07:19 -0800, Rodney Myers wrote:
> On Dec 4, 2008, at 3:57 AM, clare johnstone wrote:
> 
> > When I want to comunicate from my PC to the Neo via the USB, I join
> > them with the USB cable
> > and on the PC run this little script ( as root)
> >
> > #!/bin/sh
> > /sbin/ifconfig usb0 192.168.0.200 netmask 255.255.255.0
> > /sbin/route add -host 192.168.0.202/32 dev usb0
> >
> >
> > Then I run this one
> > #!/bin/sh
> > /bin/echo 1 > /proc/sys/net/ipv4/ip_forward
> > iptables -F
> > iptables -A INPUT -s 192.168.0.202 -i usb0  -d 192.168.0.200   -j  
> > ACCEPT
> > iptables -A INPUT  -s 192.168.0.200  -i eth+  -d 192.168.0.202  -j  
> > ACCEPT
> > iptables -A INPUT  -s 192.168.2.0/24  -i eth+  -d 192.168.0.202  -j  
> > ACCEPT
> > iptables -A INPUT  -s 192.168.2.0/24  -i eth+  -d 192.168.2.0/24  -j  
> > ACCEPT
> >
> > iptables -A FORWARD -s 192.168.0.202 -i usb0 -d 192.168.2.0/24 -o eth+
> >  -j ACCEPT
> > iptables -A FORWARD -s 192.168.2.0/24 -i eth+ -d 192.168.0.202 -o usb0
> > -j ACCEPT
> >
> > iptables -A OUTPUT -d 192.168.2.0/24 -o eth+   -j ACCEPT
> > iptables -A OUTPUT -d 192.168.0.202 -o usb0  -j ACCEPT
> > iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.0.0/24
> >

I few comments from my own experience.  I used to be able to configure
usb0 on the PC manually like above, but after either a FR software
change or possibly my upgrade on PC to Fedora 9, that no longer worked.
Instead, I followed the wiki directions to set it up via the UI and I
can now do "ifup usb0" after connecting the FR to PC.

Also, note that all the iptables commands are necessary only to
communicate to the internet from FR via the PC.  I'd skip those steps
until you can successfully ping from PC to FR.

...cj






More information about the community mailing list