OESF Portables Forum
Everything Else => General Support and Discussion => Zaurus General Forums => Archived Forums => Security and Networking => Topic started by: cherubina 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.
-
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?
-
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.