Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

NetworkManager and bluetooth tethering

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
KShots
l33t
l33t
User avatar
Posts: 615
Joined: Thu Oct 09, 2003 1:29 pm
Location: Florida
Contact:
Contact KShots
Website

NetworkManager and bluetooth tethering

  • Quote

Post by KShots » Fri Aug 01, 2014 2:08 pm

Ok, at this point, I have things _almost_ working. I can manually get my bluetooth tether up and running, but networkmanager cannot see it.

I found instructions from ArchLinux on using dbus-send to trigger a 'nap' request to generate a bnep interface, which works. In my case, I did:

Code: Select all

/usr/bin/dbus-send --system --type=method_call --dest=org.bluez /org/bluez/hci0/dev_CC_FA_00_12_6F_ED org.bluez.Network1.Connect string:'nap'
You can see the interface from ifconfig:

Code: Select all

bnep0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.44.20  netmask 255.255.255.0  broadcast 192.168.44.255
        inet6 fe80::fef8:aeff:fe9f:b4c3  prefixlen 64  scopeid 0x20<link>
        ether fc:f8:ae:9f:b4:c3  txqueuelen 1000  (Ethernet)
        RX packets 1975  bytes 671866 (656.1 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 2086  bytes 429518 (419.4 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
Bear in mind, even though it has an IP address in the above, you do not get an IP address at this point - I captured that after I managed to get DHCP running on it, which brings me to the next step... running dhcp. In my case, I chose to use systemd-networkd, which should theoretically run DHCP whenever it sees a matching device... so I created /etc/systemd/network/btnet.network:

Code: Select all

[Match]
Name=bnep0

[Network]
DHCP=yes
, enabled the systemd-networkd service, and started it. Next thing I knew, I had an IP address... but my /etc/resolv.conf was empty. At the moment, I don't know how to resolve that manually other than to simply append one of the google DNS servers in there:

Code: Select all

nameserver 8.8.8.8
That brings me to where I am now... I can post this message over my existing connection at this point.

Back to my point: How can I automate all of this? Can I use networkmanager like I do with my other interfaces? How can I convince NM that my interface even exists?

As far back as March of 2014, I was able to successfully (and even easily) use networkmanager to configure my bnep interfaces, but that functionality disappeared around april-may of 2014. I don't know what version of networkmanager (or the plasma applet for KDE in my case) I was running at the time. What I'm running now is networkmanager-0.9.8.8 and plasma-nm-0.9.3.3. Even at this point, where the network is fully operational, networkmanager cannot see my connection.

EDIT: Now it's even more important... apparently, if networkmanager doesn't think I'm connected, it won't offer any of my VPN connections - so I'm cut off from my VPN :(
Life without passion is death in disguise
Top
eccerr0r
Watchman
Watchman
Posts: 10239
Joined: Thu Jul 01, 2004 6:51 pm
Location: almost Mile High in the USA
Contact:
Contact eccerr0r
Website

  • Quote

Post by eccerr0r » Fri Aug 01, 2014 9:58 pm

I heard it was a DUN problem with bluez5 ...

https://bugzilla.redhat.com/show_bug.cgi?id=1055628

Doesn't work for me yet AFAIK...

I wonder if it's possible to hack the ebuild to use bluez4 which had been working...
Top
KShots
l33t
l33t
User avatar
Posts: 615
Joined: Thu Oct 09, 2003 1:29 pm
Location: Florida
Contact:
Contact KShots
Website

  • Quote

Post by KShots » Mon Aug 04, 2014 1:38 pm

That's odd... not all bluetooth connections have anything to do with DUN (mine included). I wonder if they simply disabled it across the board just because it didn't work with the folks using DUN?
Life without passion is death in disguise
Top
eccerr0r
Watchman
Watchman
Posts: 10239
Joined: Thu Jul 01, 2004 6:51 pm
Location: almost Mile High in the USA
Contact:
Contact eccerr0r
Website

  • Quote

Post by eccerr0r » Tue Aug 05, 2014 2:36 am

Hmm... I've never tried PAN which is the other possible route. DUN used to work fine for me.

https://bugs.launchpad.net/ubuntu/+sour ... ug/1229256 seems to be a bug related to it, unsure what the outcome is...
Intel Core i7 2700K/Radeon Firepro W2100/24GB DDR3/800GB SSD
What am I supposed watching?
Top
Post Reply

4 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic