[8125, K-JAM, P4300, MDA Vario ROM Development] famewolf:
To those that might not know one of the major changes to windows mobile 6 from windows mobile 5 was the removal of bluetooth DUN (dial up networking) which has worked quite well under linux forever and the addition of a new tool called "Internet Sharing" which uses bluetooth pan. Linux has a tool called PAND which is supposed to allow us to use bluetooth pan but previously I had not had success in making it work. Recently I read the following page and used it as a guide and was able to get it working on Suse. http://klamstwo.org/evad/archives/40

Steps:

0) Run the kde bluetooth server (system, desktop applet, kbluetoothd) because when you run the pand command the first time the phone is going to prompt you for the "access code" you assigned on the pc and then the pc is going to ask you for the SAME access code to pair them. In yast under hardware, bluetooth you can set the access code it will expect. Make sure bluetooth is on and phone can be found by other devices.

1) Go into Yast, Network cards and create a Bluetooth network card..this should be "bnep0" when all is said and done..this has to be setup ahead of time because it won't exist until pand is called. My /etc/sysconfig/network/ifcfg-bnep0 looks like this:

-----

BOOTPROTO='dhcp'

BROADCAST=''

ETHTOOL_OPTIONS=''

IPADDR=''

MTU=''

NAME=''

NETMASK=''

NETWORK=''

REMOTE_IPADDR=''

STARTMODE='hotplug'

USERCONTROL='no'

_nm_name='static-0'

--------

2)On the command line type "sdptool search NAP" and write down the device address which is in the format xx:xx:xx:xx:xx:xx

Example output:

--------

Inquiring ...

Searching for NAP on XX:12:D1:2A:XX:XX ...

Service Name: Network Access Point

Service Description: Bluetooth NAP Service

Service RecHandle: 0x10000

Service Class ID List:

UUID 128: 00001116-0000-1000-8000-00805f9b34fb

Protocol Descriptor List:

"L2CAP" (0x0100)

PSM: 15

"BNEP" (0x000f)

Version: 0x0100

SEQ8: 0 6 dd

Language Base Attr List:

code_ISO639: 0x656e

encoding: 0x6a

base_offset: 0x100

Profile Descriptor List:

"Network Access Point" (0x00001116-0000-1000-8000-00805f9b34fb)

Version: 0x0100

--------

3)On the command line type "pand --role PANU --connect xx:xx:xx:xx:xx:xx" replacing the XX's with your actual device address. (In my example that would be XX:12:D1:2A:XX:XX) Pair the device when prompted. You will only have to pair it once..after that connects will be automatic.

4) On the command line type "route add default gw 192.168.0.1" and hit enter.

If you run ifconfig you should see the bnep0 device..on mine it gave me IP 192.168.0.85 and the phone is 192.168.0.1.

You should now have a bnep0 interface..and it should be the default route for internet....if you are running a firewall make sure it is the external zone..

Example ifconfig:

------

bnep0 Link encap:Ethernet HWaddr XX:11:F6:05:XX:XX

inet addr:192.168.0.85 Bcast:192.168.0.255 Mask:255.255.255.0

inet6 addr: 2002:48fa:6048:8:211:f6ff:fe05:7e97/64 Scope:Global

inet6 addr: fec0::8:211:f6ff:fe05:7e97/64 Scope:Site

inet6 addr: fe80::211:f6ff:fe05:7e97/64 Scope:Link

UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1

RX packets:427958 errors:0 dropped:0 overruns:0 frame:0

TX packets:354277 errors:0 dropped:0 overruns:0 carrier:0

-------

Advantages of Internet sharing over bluetooth dun...one big one...bluetooth dun would drop connection about every 20 minutes and have to be manually reconnected..or it would hang and have to be manually dropped and reconnected....Internet sharing creates an "always on" device and I've been connected for the last 6 hours without a hitch.

I hope this helps someone else and if it does please let me know

...and for further "tinkering" your phone now has an actual IP address... 192.168.0.1 so theoretically you can run software such as ssh server's and proxies on the phone and access it from the pc...an example would be running the compressing proxy toonel from toonel.net. The phone version acts as both a http proxy and a socks proxy and compresses text to speed up surfing. The linux/windows versions only acts as a http proxy.