Package: bluetooth
Version: 3.36-3
Severity: normal


-- System Information:
Debian Release: 5.0
 APT prefers testing
 APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=pl_PL.UTF-8, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages bluetooth depends on:
ii  bluez-utils                   3.36-3     Bluetooth tools and daemons

bluetooth recommends no packages.

bluetooth suggests no packages.

-- debconf-show failed

I attempt to build a simple PAN with two computers (a desktop and a notebook). I have three different USB Bluetooth dongles, one of them is Pentagram Fang Compact, second one is a no-name and the third one
a Billionton dongle.

The devices discover each other and can pair as well. I run pand on the desktop system, using:
pand --listen --role=NAP --devup=/etc/bluetooth/dev-up
where my desktop dev-up script is:
#!/bin/sh
echo 1 > /proc/sys/net/ipv4/ip_forward
ifconfig bnep0 192.168.0.1 netmask 255.255.255.248 up
iptables -t nat -A POSTROUTING -s 192.168.0.0/29 -j MASQUERADE

On the notebook system I run pand with:
pand --role=PANU --connect 00:11:67:cf:a1:f7 --devup=/etc/bluetooth/pan/dev-up
where my notebook dev-up script is:
#!/bin/sh
ifconfig bnep0 192.168.0.2 netmask 255.255.255.248 up
route add default gw 192.168.0.1

Both of the devices create & configure bnep0 interface and connect properly. From my notebook I can access the desktop (ping 192.168.0.1) as well as internet (ping google.pl). I can even use a browser. But only a limited set of webpages works properly (i.e. google.pl, wikipedia.pl). They can be browsed on and on for a long time. Other pages (i.e. onet.pl, wp.pl, gazeta.pl) immediately cause the connection to hang. Internet becomes unaccessible, the computers can no longer ping each other, furthermore the services on the desktop computer become undiscoverable. Only unplugging & replugging the desktop dongle and restarting bluetooth service helps. It is not a browser
issue, I tried several browsers with no effect.

What is more, a simple apt-get update also causes the connection to hang. Even with Windows 2000 with Bluesoleil driver running on the notebook I get exactly the same issue: connection starts, some pages
load properly and then everything freezes.

What I also tried was connecting to the internet with a ssh tunnel using local socks proxy for the browser. Unfortunately, this only prolonges the connection lifetime a little. It hangs at some point
nevertheless.

Interestingly, I noticed, that leaving the connection open without sending any considerable data doesn't freeze the connection. For example, from my notebook I can ping any internet domain as long as I wish to.

Hcidump on both computers doesn't report any errors. The packets simply flow correctly until at some point the transmission stops. No error messages in /var/log/syslog or in dmesg. Not a single one.
Running pand with --nodetach option also gives no clue.

Of course I tried several howtos from the internet, tried to play with bluetooth config on both computers (hcid.conf from desktop attached), to switch dongles, to manually set-up the bnep interfaces, to modify iptables config on
my desktop. No effect.

Best regards
Marcin

#
# HCI daemon configuration file.
#

# HCId options
options {
        # Automatically initialize new devices
        autoinit yes;

        # Security Manager mode
        #   none - Security manager disabled
        #   auto - Use local PIN for incoming connections
        #   user - Always ask user for a PIN
        #
        security auto;

        # Pairing mode
        #   none  - Pairing disabled
        #   multi - Allow pairing with already paired devices
        #   once  - Pair once and deny successive attempts
        pairing multi;

        # Default PIN code for incoming connections
        passkey "1234";
}

# Default settings for HCI devices
device {
        # Local device name
        #   %d - device id
        #   %h - host name
        name "Moriel Desktop";

        # Local device class
        class 0x080104;

        # Default packet type
        #pkt_type DH1,DM1,HV1;

        # Inquiry and Page scan
        iscan enable; 
        pscan enable;

        # Default link mode
        #   none   - no specific policy 
        #   accept - always accept incoming connections
        #   master - become master on incoming connections,
        #            deny role switch on outgoing connections
        lm accept, master;

        # Default link policy
        #   none    - no specific policy
        #   rswitch - allow role switch
        #   hold    - allow hold mode
        #   sniff   - allow sniff mode
        #   park    - allow park mode
        lp rswitch,hold,sniff,park;
}

Reply via email to