PAN (usb-bluetooth <--> PocketPC)

Aben Siatris aben na webcom.sk
Středa Duben 7 13:57:50 CEST 2004


Dňa Wednesday 07 April 2004 10:53 Aben Siatris napísal:
> vlastnim PocketPC a na svojom linux desktope mam
> pripojeny usb-bluetooth dongle. spojenie funguje
> bez problemov, napriklad prenasam subory i pomocou
> kdebluetooth frameworku.
> 
> rad by som vsak pripojil PocketPC pomocou PAN
> na internet cez bluetooth.
> 
> po chvili snazenia sa mi podarilo rozbehnut pand
> dund inicializacnym scriptom /etc/init.d/bluetooth_pan
> 
> bash-2.05b# more /etc/init.d/bluetooth_pan
> #!/sbin/runscript
> # Distributed under the terms of the GNU General Public License, v2 or later
> 
> depend() {
>         need bluetooth
> }
> 
> start() {
>         local RETVAL
>         ebegin "Starting Bluetooth PAN"
>         [ -x /usr/bin/pand ] && \
>                 start-stop-daemon --start --quiet --exec /usr/bin/pand --\
>                 --listen --role NAP
>         RETVAL=$?
>         [ $RETVAL -a -x /usr/bin/dund ] && \
>                 start-stop-daemon --start --quiet --exec /usr/bin/dund --\
>                 --listen --msdun call dun
>         RETVAL=$?
>         eend ${RETVAL}
> }
> 
> stop() {
>         local RETVAL
>         ebegin "Shutting down Bluetooth PAN"
>         [ -x /usr/bin/pand ] && \
>           start-stop-daemon --stop --quiet --exec /usr/bin/pand
>         RETVAL=$?
>         [ -x /usr/bin/dund ] && \
>                 start-stop-daemon --stop --quiet --exec /usr/bin/dund
>         RETVAL=$?
>         eend ${RETVAL}
> }
> 
> 
> connect z PocketPC na PC sa mi dari, vsetko prebieha v poriadku az jednoducho
> na to ze pomocou ifconfig nevidim ziadne nove sietove zariadenie :-O
> Z pocketPC pristup na internet nemam, iba vo /var/log/messages je hlaska:
> 
> Apr  7 10:52:40 gentoo_aben pand[9762]: New connection from 08:00:28:84:C2:E4 bnep0
> 
> a to je vsetko. teraz skutocne neviem ako dalej, poradi niekto?

dostal som sa trosku dalej pokial som pouzil LAN access,
v messages je toto

Apr  7 13:52:47 gentoo_aben dund[22640]: New connection from 08:00:28:84:C2:E4
Apr  7 13:52:47 gentoo_aben pppd[22641]: pppd 2.4.1 started by root, uid 0
Apr  7 13:52:49 gentoo_aben pppd[22641]: Serial connection established.
Apr  7 13:52:49 gentoo_aben pppd[22641]: Using interface ppp0
Apr  7 13:52:49 gentoo_aben pppd[22641]: Connect: ppp0 <--> /dev/rfcomm0
(v tejto chvili ziada od clienta heslo, neviem odkial ho mam vziat?)
Apr  7 13:52:59 gentoo_aben pppd[22641]: Hangup (SIGHUP)
Apr  7 13:52:59 gentoo_aben pppd[22641]: Modem hangup
Apr  7 13:52:59 gentoo_aben pppd[22641]: Connection terminated.
Apr  7 13:52:59 gentoo_aben pppd[22641]: Exit.

pre pppd puzivam tento peer:

bash-2.05b# more /etc/ppp/peers/bnep
# You usually need this if there is no PAP authentication
noauth
# do not use modem control lines we aren't using a real serial line
local
# do not determinate local ip from hostname
noipdefault
# usefull ARP proxing
proxyarp
# Your own IP Address and the IP Address of the remote system
192.168.30.1:192.168.30.2
# And the netmask
netmask 255.255.255.0
# dns
ms-dns 147.88.1.201
# this is required for the non standard microsoft PPP negotiation
connect "sleep 2; echo -n CLIENTSERVER"


preco po mne chce heslo a ako mam vypnut autentifikaciu?


Další informace o konferenci Linux