Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'I could not get it to work but...' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
I could not get it to work but...
Authored by: rjv on Nov 11, '02 08:12:00AM

I was unable to get a connection with the method listed above. I did get a connection using this post (from the Apple Bluetooth discussion board, sorry - don't have the poster's name to credit) but still could not access the internet with it (so I am still looking for help!)

Bob

From the Apple Bluetooth Board:

Yes!!! I don't know (yet :) how to enable the LAN profile, but I just figured out how to enable ppp-over-serial in the serial profile. MEANING, you CANNOT use this internet-sharing solution at the same time that your computer has hotsync enabled for the Bluetooth-PDA-Sync port... to the best of my knowledge. Still, it's better than nothing.

This tip comes to you thanks to the following page:
http://www.pilot-link.org/howto/ppp/

In the terminal window, enter the following, all as one big line. They explain it on that page, but I'll explain a few of the terms...

sudo /usr/sbin/pppd /dev/cu.Bluetooth-PDA-Sync 115200 10.1.1.4:10.1.1.43 local ms-dns 209.137.160.2 netmask 255.255.255.0 persist passive noauth debug -detach asyncmap 0

the number before the colon is your mac's address. The one after it is the address the palm will get. yo.ur.dn.ss is the ip of your dns server.

The 'persist' portion of the command seems to have given me some grief; the process zombied on me when I tried to kill it, even -9. So use at your own risk!

The 10.0.1.* stuff will work if you are running a network behind a NAT box (like those linksys firewall hubs for cable modems), but your computer address will obviously not be .1, the NAT box will be.

In my example, I have my mac set up to gateway my one 'real' cable modem IP to a fake network, 10.0.1.1/24. I got this tip from someone named 'johnt' from one of the OS X hints sites.

# in /Library/StartupItems I have a folder called natd. Inside of it are two scripts:

StartupParameters.plist

{
Description = "natd service";
Provides = ("NAT_Service");
Requires = ("Resolver");
OrderPreference = "None";
Messages =
{
start = "Starting NAT Service";
stop = "Stopping NAT Service";
};
}

natd

#!/bin/sh
# Start up natd.
. /etc/rc.common
if [ "${IPFORWARDING:=-YES-}" = "-YES-" ]; then
ConsoleMessage "Configuring NAT service"
ifconfig en0 10.0.1.1 alias
natd -interface en0
ipfw add 100 divert natd all from any to any via en0
fi

(the natd file I have chmod 755, so it's executable.)

If you had to remove the pppd connection, you could try hitting control+C, which worked for the first few times I tried (before the zombie processes. Feh, reboot.)

If you have to remove the natd setup, move the scripts out of the startup folder and reboot, or just temporarily, the opposite lines will work, e.g.

ifconfig en0 10.0.1.1 -alias
sysctl -w net.inet.ip.forwarding=0
ps auwx | grep "natd" | grep -v "grep" | cut -f 5 -d ' ' | kill -9
ipfw delete 100

Yes, I know the ps -> grep -> kill line is ugly, but hey, it works. :)

Oh, I'm also messing around with coldsync, an open source method of syncing, and hoping that it will let me do a network sync. Then I could leave pppd running and just connect the Visor when I want internet or network hotsync, and they'd both work using the same connection method. We'll see if I get anywhere with that.



[ Reply to This | # ]