PDA

View Full Version : "TCP/IP over PPP between a PalmOS PDA and Linux"


rcxAsh
09-12-2003, 11:47 PM
Hmm, I found this site:
http://atulchitnis.net/writings/palm-ppp.php

If I'm thinking correctly, this should give me an internet connection on my Clie through my Linux box? (I have Gentoo GNU/Linux (http://www.gentoo.org) with the gentoo-sources 2.4.20-r6)

However, I can't get it to work. It seems as if something is wrong with my iptables, but I don't know what those are, or how to set them up.
lostech ashley # ./palm-ppp
modprobe: Can't locate module ip_tables
modprobe: Can't locate module ip_conntrack_ftp
modprobe: Can't locate module ip_conntrack_irc
./palm-ppp: line 57: /sbin/iptables: No such file or directory
./palm-ppp: line 71: /usr/sbin/pppd: No such file or directory
Link failed

Firstly, where can I find the modules ip_tables, ip_conntrack_ftp, and ip_contrack_irc in the kernel configuration?

Secondly, what are iptables and how do I set them up?

Has anyone successfully got their Clie an internet connection via a USB cable and Linux? I've heard a lot that you can only give a PalmOS device an internet connection via a serial cable, but the website above speaks otherwise.

Perhaps I should ask this question in a Linux forum, but I thought that I'd ask here first. BTW, I have never used my Clie under Linux before, except as a card reader.

Cyker
09-15-2003, 04:30 PM
It looks like you don't have iptables support on your system :/

Since you're using Gentoo, it should be a fairly easy process to recompile the kernel to add iptables support (if needed) and install the iptables support packages.

Finding out how is that hard part ;)

IIRC the iptables kernel support is in Networking->IP: Net Filter Configuration
You should be able to get the iptables support packages from Gentoo

I must say it's a DAMNED lot easier connecting a Palm to anything via the serial port (I miss being able to reconfigure routers with a Palm... btw if anyone knows how to jury-rig a serial cable for a Clie T665 then PLEASE TELL ME!!!!!!!!! :))

However, doing it via USB is possible. I've managed to get the two to talk to each other and was VNCing my server using it for fun :D (But damn was it slow!)
Alas I can't really see the use of something like this for me, but it is a nifty trick :)

ResMan
09-15-2003, 05:23 PM
Once you get your ip-table set up (don't forget to enable port-forwarding) you can run pppd like this to a PPP connection going to your palm:

pppd -d [serial port] proxyarp persist login ms-dns [dns server ip addr] [PC IP addr for ppp]:[Palm IP addr for ppp]

I even used an IR connection with an acti-sys dongle. Use ircomm0 for your serial device in that case, or ttyS0 for a serial cable connection to port 0. You need to find a dns server address to insert (look in /etc/resolv.conf) and some dummy ip addresses for the two ends of to PtoP connection (I just use two unused addresses in my local net range). As for the serial cable, I use a Belkin USB/serial sync cable. It also powers my Clie 665. That way I can mount the memory stick using the USB interface and use the serial port for ppp. Now if I could find a decent hires browser.

Dave...