2008-09-16 16:50:54

by Shane Volpe

[permalink] [raw]
Subject: [Bluez-users] Help with setting up NAP

I'm trying to understand the best way to set up a device as a NAP.
The old way I performed this was by using pand with the following
options:
PAND_OPTIONS=" --secure --listen --master --role NAP
--devup=/etc/bluetooth/pan/dev-up"

Moving forward I want to use dbus commands and configure the NAP the
*right* way.

Here is my current understanding from the wiki you can completely set
up everything via dbus or you can configure the basic settings using
.service files (/etc/bluetooth) and the network.conf file.

Here is what I think I should do:
1.) Set up a service file:
[Bluetooth Service]
Identifier=network
Name=Network service
Description=Bluetooth Personal Area Network service
Autostart=true

2.) It looks like the network.conf default setting are good for what I
want to do.

3.) Issue dbus commands to start NAP. This is were I'm confused and
NEED HELP, I'm not sure what all needs to be done here to allow a PANU
device to connect to my NAP device.
Once I have the connection (bnepX) I know what to do, just set up a
bridge (pan0) and set up any forwarding/NAT/firewall rules using
standard iptables/masq commands against the pan0.

I believe the example on the wiki
(http://wiki.bluez.org/wiki/HOWTO/NetworkConnections) details how to
have a PANU device connect to a pre-existing NAP but I do not believe
it details how to set up the NAP which is really what I want to
accomplish.
Regards,
Shane

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users


2008-11-24 17:58:11

by Shane Volpe

[permalink] [raw]
Subject: Re: [Bluez-users] Help with setting up NAP

I did not get a reply back to this so I'm re-posting it, is there additional
information I need to provide?
Regards,
Shane

On Tue, Sep 16, 2008 at 11:50 AM, Shane Volpe <[email protected]> wrote:

> I'm trying to understand the best way to set up a device as a NAP.
> The old way I performed this was by using pand with the following
> options:
> PAND_OPTIONS=" --secure --listen --master --role NAP
> --devup=/etc/bluetooth/pan/dev-up"
>
> Moving forward I want to use dbus commands and configure the NAP the
> *right* way.
>
> Here is my current understanding from the wiki you can completely set
> up everything via dbus or you can configure the basic settings using
> .service files (/etc/bluetooth) and the network.conf file.
>
> Here is what I think I should do:
> 1.) Set up a service file:
> [Bluetooth Service]
> Identifier=network
> Name=Network service
> Description=Bluetooth Personal Area Network service
> Autostart=true
>
> 2.) It looks like the network.conf default setting are good for what I
> want to do.
>
> 3.) Issue dbus commands to start NAP. This is were I'm confused and
> NEED HELP, I'm not sure what all needs to be done here to allow a PANU
> device to connect to my NAP device.
> Once I have the connection (bnepX) I know what to do, just set up a
> bridge (pan0) and set up any forwarding/NAT/firewall rules using
> standard iptables/masq commands against the pan0.
>
> I believe the example on the wiki
> (http://wiki.bluez.org/wiki/HOWTO/NetworkConnections) details how to
> have a PANU device connect to a pre-existing NAP but I do not believe
> it details how to set up the NAP which is really what I want to
> accomplish.
> Regards,
> Shane
>


Attachments:
(No filename) (1.64 kB)
(No filename) (2.14 kB)
(No filename) (363.00 B)
(No filename) (164.00 B)
Download all attachments