Help - Search - Members - Calendar
Full Version: Help - Zaurus Gateway
OESF Forums > General Forums > General Support and Discussion > Security and Networking
cherubina
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
QUOTE(cherubina @ May 22 2005, 09:19 AM)
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.
*


did you change /proc/sys/net/ipv4/ip_forward to 1?
cherubina
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.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2015 Invision Power Services, Inc.