Re: Help needed getting Clie connected to Internet through LInux
bruno raoult <[email protected]> 28 May 2003 21:22:50 +0900
| Newsgroups | gmane.comp.handhelds.clie.linux |
|---|---|
| Message-ID | <1054124574.29773.12.camel@tschai> |
--=-y/mLO1GT7c6z5vidWj0a Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Neil, Yes it works... At list on my Clie (different model). http://www.raoult.com/palm explains everything about my setup (I just added a few minutes ago the 2.4 kernel masquerading option, but I still did not test it - too lazy to compile today!), but at least pinging the linux box itself is fine (pinging the outside should be ok for 2.4 kernels with this last option). Could you check everything again, just to be sure? br. PS. I don't understand your sentence: "and the Clie can connect just fine". What does it mean for you, as the rest of your messages clearly states that you are not connected at all (you should at least ping your PPP peer)? On Thu, 2003-05-22 at 16:08, Neil Madden wrote: > I'm trying to get my Sony Clie (SJ30) connected to the Internet through=20 > Linux, and I'm not having much success at all, so I thought I'd post=20 > here and see if anyone can help me. The basic set-up is this: >=20 > 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=20 > another Ethernet card. >=20 > The gateway machine (192.168.0.1) is set-up to be a DHCP server, which=20 > my linux box gets an IP address from (this is always 192.168.0.2, as I'm=20 > the only other machine on the network). DNS lookups are also done via=20 > 192.168.0.1 (the win2k box). >=20 > I've setup the Clie to talk to the Linux machine through the=20 > Cradle/Cable connection, Unix service with a proper username and=20 > password set up, and no script specified (just "Done"). I've tried both=20 > manually setting up an IP address (192.168.0.3) and the DNS server=20 > (192.168.0.1), and also tried setting it up to get these from pppd, but=20 > neither seems to work. >=20 > On the Linux box, I've run pppd like: >=20 > pppd /dev/ttyUSB1 57600 local noauth 192.168.0.2:192.168.0.3 >=20 > and the Clie can connect just fine. However, when connected, I can't do=20 > anything - not even ping the Linux box. If I open the Options->View Log=20 > window from the Network preferences dialog, and then type "ping=20 > 192.168.0.2" it times out. If I try "ping sf.net" it fails to resolve=20 > the hostname, etc. So, clearly it has not actually connected. >=20 > My next effort was to try enabling forwarding on my system, using iptable= s: >=20 > iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE >=20 > (I also tried -o ppp0, but I think that is wrong) >=20 > and >=20 > echo 1 > /proc/sys/net/ipv4/ip_forward >=20 > and then adding "ms-dns 192.168.0.1" to the pppd line, but this has made=20 > no difference. I've also tried pretty much every single different option=20 > to pppd, and none of them seem to make a difference - silent, passive,=20 > proxyarp, netmask 255.255.255.0 (the correct netmask for the range of IP=20 > addresses I'm using), persist, nodetach, debug etc etc etc. >=20 > So, I'm now running out of options, and I've run out of new web-pages to=20 > read to try and solve this. Anyone have any ideas how to get this=20 > working? Can anyone confirm for me that this does work at all, and isn't=20 > some sort of cruel trick played on me by the whole of the Internet? >=20 > I'm thinking the problem is something to do with my iptables setup, as=20 > that is the bit I understand the least (and most of the examples on the=20 > net seem to use ipchains). >=20 > Cheers for any help, >=20 > Neil. >=20 >=20 > _______________________________________________ > clie-linux mailing list > [email protected] > http://kreucher.net/mailman/listinfo/clie-linux >=20 > Sony Cli=E9 and Linux Homepage: > http://kreucher.net/clie/ >=20 --=20 GPG Key: 653514E5 (http://www.raoult.com/gpg) -- 2 + 2 =3D 5, for very large values of 2. --=-y/mLO1GT7c6z5vidWj0a Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQA+1KoavesxSGU1FOURAihlAJ9+HhXyuFF0Ob9iSbKKCMihCUd46ACfSoWX O2YdzdAiTvwTV4yaDxfEx4c= =fzkH -----END PGP SIGNATURE----- --=-y/mLO1GT7c6z5vidWj0a-- _______________________________________________ clie-linux mailing list [email protected] http://kreucher.net/mailman/listinfo/clie-linux Sony CliƩ and Linux Homepage: http://kreucher.net/clie/