Author Topic: Help - Zaurus Gateway  (Read 3179 times)

cherubina

  • Newbie
  • *
  • Posts: 8
    • View Profile
Help - Zaurus Gateway
« on: May 21, 2005, 07:19:09 pm »
ive been trying to get my pc to connect to the internet through my zaurus.  My zaurus is connected to the internet via ppp0, and is connected to my pc via usbd0.  I have a connection up between my pc and zaurus.  I can ping my pc and vice versa.  However I am having trouble getting masquerading to work.
on my zaurus run..
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
iptables -A FORWARD -i usbd0 -j ACCEPT
im not interested in making it secure - i just want to figure out the bare bones of getting internet on my pc.  on my zaurus I am running cacko 1.22 and my pc is debian.
anyone have any ideas?  thanks.

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Help - Zaurus Gateway
« Reply #1 on: May 21, 2005, 10:44:23 pm »
Quote
ive been trying to get my pc to connect to the internet through my zaurus.  My zaurus is connected to the internet via ppp0, and is connected to my pc via usbd0.  I have a connection up between my pc and zaurus.  I can ping my pc and vice versa.  However I am having trouble getting masquerading to work.
on my zaurus run..
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
iptables -A FORWARD -i usbd0 -j ACCEPT
im not interested in making it secure - i just want to figure out the bare bones of getting internet on my pc.  on my zaurus I am running cacko 1.22 and my pc is debian.
anyone have any ideas?  thanks.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=80870\"][{POST_SNAPBACK}][/a][/div]

did you change /proc/sys/net/ipv4/ip_forward to 1?
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

cherubina

  • Newbie
  • *
  • Posts: 8
    • View Profile
Help - Zaurus Gateway
« Reply #2 on: May 22, 2005, 03:27:01 pm »
Quote
did you change /proc/sys/net/ipv4/ip_forward to 1?
Yes, it is set to 1.  Actually I've discovered my problem.  i had my iptables set up correctly, put in the nameservers from /etc/resolv.conf from my zaurus into my pc, set up my zaurus to be the default gw, but the one thing i didnt do was configure the dhcp server on my zaurus.  Therefore dhclient on my pc would rewrite my /etc/resolv.conf to have no nameservers every couple minutes.  I added /etc/dhcpd.conf to my zaurus, and now my internet works great.  i'm actualy posting from my pc right now.  :-)  thanks for the reply meanie (I have a habbit of posting questions right before i figure it out :-/), and if anyone else is having trouble with this, I'd be happy to post all of the steps.