Daemon News Ezine BSD News BSD Mall BSD Support Forum BSD Advocacy BSD Updates

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

LAN



Hi, 
I tried to use PPP LAN connection over bluetooth. FreeBSD server for gateway and laptop with windows for client.

This are my configs.

hcsecd.conf
device {
        bdaddr  00:20:E0:27:8C:0C;
        name    "URKO";
        key     nokey;
        pin     "1234";
}

ppp.conf
rfcomm-server:
 set timeout 0
 set lqrperiod 10
 set ifaddr 192.168.1.10 192.168.1.11-192.168.1.20 255.255.255.0
 enable lqr
 accept lqr
 disable pap
 deny pap
 disable chap
 deny chap


/etc/rc.bluetooth start ubt0
/usr/sbin/hcsecd
/usr/sbin/sdpd
/usr/sbin/rfcomm_pppd -s -C 7 -l rfcomm-server

thats how i start rfcomm_server and others.


Pairing of devices works fine. I can also connect both computers.

Ethernet adapter Bluetooth Network:
        Media State . . . . . . . . . . . : Media disc
        Media State . . . . . . . . . . . : Media disconnected
        Description . . . . . . . . . . . : Bluetooth LAN Access Server Driver
        Physical Address. . . . . . . . . : 00-20-E0-27-8C-0C
PPP adapter BluetoothNullConnection:
        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : WAN (PPP/SLIP) Interface
        Physical Address. . . . . . . . . : 00-53-45-00-00-00
        Dhcp Enabled. . . . . . . . . . . : No
        IP Address. . . . . . . . . . . . : 192.168.1.20
        Subnet Mask . . . . . . . . . . . : 255.255.255.255
        Default Gateway . . . . . . . . . : 192.168.1.20



But when i try to open lets say www.google.com connection always drop down.


Thats * from logs
Dec  3 01:27:46 office sdpd[934]: Client on L2CAP socket has disconnected
Dec  3 01:27:47 office hcsecd[932]: Got Link_Key_Request event from 'ubt0hci', remote bdaddr 00:20:e0:27:8c:0c
Dec  3 01:27:47 office hcsecd[932]: Found matching entry, remote bdaddr 00:20:e0:27:8c:0c, name 'URKO', link key exists
Dec  3 01:27:47 office hcsecd[932]: Sending Link_Key_Reply to 'ubt0hci' for remote bdaddr 00:20:e0:27:8c:0c
Dec  3 01:27:47 office ppp[1618]: Phase: Using interface: tun1
Dec  3 01:27:47 office ppp[1618]: Phase: deflink: Created in closed state
Dec  3 01:27:47 office ppp[1618]: Phase: PPP Started (direct mode).
Dec  3 01:27:47 office ppp[1618]: Phase: bundle: Establish
Dec  3 01:27:47 office ppp[1618]: Phase: deflink: closed -> opening
Dec  3 01:27:47 office ppp[1618]: Phase: deflink: Connected!
Dec  3 01:27:47 office ppp[1618]: Phase: deflink: opening -> carrier
Dec  3 01:27:47 office ppp[1618]: Phase: deflink: carrier -> lcp
Dec  3 01:27:54 office ppp[1618]: Phase: deflink: lcp -> open
Dec  3 01:27:54 office ppp[1618]: Phase: bundle: Network
Dec  3 01:27:54 office ppp[1618]: Phase: deflink: IPV6CP protocol reject closes IPV6CP !
Dec  3 01:27:54 office ppp[1618]: Phase: deflink: IPV6CP protocol reject closes IPV6CP !
Dec  3 01:27:54 office ppp[1618]: Warning: ff02:6::/32: Change route failed: errno: Network is unreachable
Dec  3 01:27:57 office ppp[1618]: Phase: deflink: IPV6CP protocol reject closes IPV6CP !
Dec  3 01:27:59 office kernel: ng_btsocket_rfcomm_session_send: Could not send data to L2CAP socket, error=40
Dec  3 01:27:59 office ppp[1618]: Phase: deflink: read (0): Connection reset by peer
Dec  3 01:27:59 office ppp[1618]: Phase: deflink: open -> lcp
Dec  3 01:27:59 office ppp[1618]: Warning: ff02:6::/32: Change route failed: errno: Network is unreachable
Dec  3 01:27:59 office ppp[1618]: Phase: bundle: Terminate
Dec  3 01:27:59 office ppp[1618]: Phase: deflink: Disconnected!
Dec  3 01:27:59 office ppp[1618]: Phase: deflink: Connect time: 12 secs: 15749 octets in, 4416 octets out
Dec  3 01:27:59 office ppp[1618]: Phase: deflink: 81 packets in, 61 packets out
Dec  3 01:27:59 office kernel: ng_l2cap_l2ca_receive: ubt0l2cap - unexpected L2CAP data packet. Invalid channel state, cid=70, state=5
Dec  3 01:27:59 office ppp[1618]: Phase:  total 1680 bytes/sec, peak 2707 bytes/sec on Sat Dec  3 01:27:58 2005
Dec  3 01:27:59 office ppp[1618]: Phase: deflink: lcp -> closed
Dec  3 01:27:59 office ppp[1618]: Phase: bundle: Dead
Dec  3 01:27:59 office ppp[1618]: Phase: PPP Terminated (normal).



thanks,
brane