Help needed getting Clie connected to Internet through LInux
Neil Madden <[email protected]> Thu, 22 May 2003 07:08:00 +0000
| Newsgroups | gmane.comp.handhelds.clie.linux |
|---|---|
| Message-ID | <[email protected]> |
I'm trying to get my Sony Clie (SJ30) connected to the Internet through Linux, and I'm not having much success at all, so I thought I'd post here and see if anyone can help me. The basic set-up is this: Clie connected to Linux via USB (on /dev/ttyUSB1). Linux machine connected to LAN through Ethernet (eth0) LAN Gateway is a win2k machine connected to a cable modem through another Ethernet card. The gateway machine (192.168.0.1) is set-up to be a DHCP server, which my linux box gets an IP address from (this is always 192.168.0.2, as I'm the only other machine on the network). DNS lookups are also done via 192.168.0.1 (the win2k box). I've setup the Clie to talk to the Linux machine through the Cradle/Cable connection, Unix service with a proper username and password set up, and no script specified (just "Done"). I've tried both manually setting up an IP address (192.168.0.3) and the DNS server (192.168.0.1), and also tried setting it up to get these from pppd, but neither seems to work. On the Linux box, I've run pppd like: pppd /dev/ttyUSB1 57600 local noauth 192.168.0.2:192.168.0.3 and the Clie can connect just fine. However, when connected, I can't do anything - not even ping the Linux box. If I open the Options->View Log window from the Network preferences dialog, and then type "ping 192.168.0.2" it times out. If I try "ping sf.net" it fails to resolve the hostname, etc. So, clearly it has not actually connected. My next effort was to try enabling forwarding on my system, using iptables: iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE (I also tried -o ppp0, but I think that is wrong) and echo 1 > /proc/sys/net/ipv4/ip_forward and then adding "ms-dns 192.168.0.1" to the pppd line, but this has made no difference. I've also tried pretty much every single different option to pppd, and none of them seem to make a difference - silent, passive, proxyarp, netmask 255.255.255.0 (the correct netmask for the range of IP addresses I'm using), persist, nodetach, debug etc etc etc. So, I'm now running out of options, and I've run out of new web-pages to read to try and solve this. Anyone have any ideas how to get this working? Can anyone confirm for me that this does work at all, and isn't some sort of cruel trick played on me by the whole of the Internet? I'm thinking the problem is something to do with my iptables setup, as that is the bit I understand the least (and most of the examples on the net seem to use ipchains). Cheers for any help, Neil. _______________________________________________ clie-linux mailing list [email protected] http://kreucher.net/mailman/listinfo/clie-linux Sony CliƩ and Linux Homepage: http://kreucher.net/clie/