working SIM install, network problems - update (2X)

Rodney Myers rdmyers at mtpalomar.net
Mon Dec 8 02:15:14 CET 2008


On Dec 7, 2008, at 2:06 PM, Rodney Myers wrote:

> Thanks. I will experiment a bit more.

This is what I got to work, many thanks


cat bin/OM-config
#!/bin/sh
sudo /sbin/ifconfig usb0 192.168.0.200 netmask 255.255.255.0
sudo /sbin/route add -host 192.168.0.202/32 dev usb0

rodney at riverside:~$ cat bin/om-network-test
#!/bin/sh
sudo /bin/echo 1 > /proc/sys/net/ipv4/ip_forward
sudo iptables -A INPUT -i usb0 -s 192.168.0.202 -j ACCEPT
sudo iptables -A FORWARD -i usb0 -s 192.168.0.202 -j ACCEPT
sudo iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
sudo iptables -A OUTPUT -o usb0 -j ACCEPT
sudo iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -j MASQUERADE

I was able to get the debian updated. Yeah.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part
Url : http://lists.openmoko.org/pipermail/community/attachments/20081207/ba486b3f/attachment.pgp 


More information about the community mailing list