LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-19-2014, 06:25 PM   #1
joenew
Member
 
Registered: Mar 2010
Distribution: slackware 15.0 64bit
Posts: 206

Rep: Reputation: 24
Bluetooth Network Access Point


I've Slackware 14.0 on my PC. It's connected to internet througth a ppp0 interface (dial-up mobile "3g" usb-key). I've also a bluetooth usb-dongle which was/is used to transfer files between cellular phones and PC.

Now I've also an android smartphone with bluetooth supported.

I'd like to share the PC internet connection with this phone.
I mean a network phone-PC and access to internet with the phone through the PC internet connection.

In this configuration my PC will be the "access point" that provides internet connection and my phone the "client".

I hope, I've been clear (my bad english doesn't help... sorry).
To be more clear:

Code:
phone ))) bluetooth network ((( PC ----> internet
Search for a solution I've read that I need to cnfigure bluetooth to work as NAP (network access point).

My smartphone is paired and trusted on the PC bluetooth. I can connect it for file transfert etc...

Now NAP config would seem quite easy to set up using blueman-applet in KDE:
Right click on blueman-applet
-Local services
-Network
-select network access point (NAP)

But when i click "Apply". It returned an error poup-up:
Quote:
Network settings application failed

OSError: [Errno 2] No such file or directory
Uhmmm... I don't know if it's a bug or if I had to do something more before...

I've also searched for a more raw solution, with some manual config, but I didn't found a clear solution.

So I've decided to ask there.
Hope somebody could help.
Thanks in advance!

Last edited by joenew; 05-22-2014 at 07:24 AM. Reason: Better topic title
 
Old 05-27-2014, 06:47 PM   #2
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Quote:
I'd like to share the PC internet connection with this phone.
How much time are you willing to invest in this project?
All you have to do is configure SAMBA as a domain controllers and have the phone logon to the domain. That will work.
The question I have to ask, though, is are you willing to invest the time to learn how to do that?
The first step is reading the SAMBA manual, let us know it you have any questions.
 
Old 05-30-2014, 01:05 PM   #3
joenew
Member
 
Registered: Mar 2010
Distribution: slackware 15.0 64bit
Posts: 206

Original Poster
Rep: Reputation: 24
I solved in part with bluez "test-tools".
Slackware doesn't include them, but you can get them from the source tarball of bluez-4.99, under subdir "test".

I've used simple-agent and test-device to for phone pairing and trusting on slackware system.
Then I've launched "test-nap".

Then on the phone I can select the bluetooth option "use this for internet access".
Before test-nap launched, there was that option but I can't select it.

At this point on the system appears a new interface called "bnep0".
We have to assign to it an address IP.
Then we have to let the system give the phone an IP too, I chose dnsmaq for that.

Finally we have to add a rule to nat table for address masquerading on POSTROUTING chain throught our internet interface (ppp0 in my case).
If we usually have other restrictive rules in iptables, we have to add also some others rules to let INPUT packet from bnep0 interface and unlock FORWARD packed between bnep0 and "ppp0" (or wathever is your internet-side interface, eth0 eth1 and so on...).

The big matter is that "test-nap" is not a server, but just a testing tool.
Now I'd would like to understand how to configure "bluetoothd" through its "/etc/bluetooth/*" files.
It seems theese infos are hidden somewhere in bluez developers minds. Also "man bluetoothd" refers to a misterious "man /etc/bluetooth/main.conf"... but I've not found it yet!

PS.
Isn't SAMBA for mixed win/unix networks...???
What does it deal with bluetooh PAN? I didn't understand your suggestion...

Thanks anyway.
See you
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem linking feature phone via bluetooth blueman lxde debian noalternative Linux - Hardware 1 05-08-2014 04:52 PM
Bluetooth DUN (Dial Up Network) + Bluedevil & Blueman. cwizardone Slackware 25 10-30-2011 08:22 AM
Bluetooth Pairing Fails ThePowerTool Red Hat 1 09-29-2011 02:35 PM
13.37, fluxbox, bluetooth and blueman scam Slackware 5 07-01-2011 10:46 AM
bluetooth NAP, Problems with connectivity via the NAP (network access point) orlov Slackware 1 10-04-2009 01:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration