Share Wi-Fi Internet access via Bluetooth on Raspberry Pi

2

I have tried multiple ways I got on Google, without luck.

BlueMan based apporaches will NOT work because my Pi does NOT have X running. I would like to solve this just using BlueZ and some simple scripts if necessary.

My Raspberry Pi runs Raspbian. My BlueZ is version 4.99. hcid.conf is NOT found in /etc/bluetooth. pand has been installed but I cannot see any new interface related to Bluetooth added to ifconfig results.

My idea is that, I should be able to create a virtual interface into ifconfig results, and manage it with a static IP address defined in /etc/network/interfaces. Then I can run normal IP forwarding etc. I am not sure if this is the correct way of doing this, but so far I cannot find anything new in results of ifconfig.

A lot of articles I found use bridge. I'd prefer NAT if possible. Because I don't think bridges work for Wi-Fi interfaces. I already have a Wi-Fi to Wi-Fi forwarding NAT configured on this Pi, therefore, once I can connect a device to a virtual interface on Pi, the rest should be trivial, I think.

bfrgzju

Posted 2015-06-16T22:17:51.907

Reputation: 219

This belongs in the Raspi Beta page. – BiTinerary – 2015-06-16T22:39:39.720

I'd have to question why you want to do it this way? Bluetooth configuration outside the simple connections is hard and unreliable in my experience. – Julian Knight – 2015-06-16T23:11:32.667

@BiTinerary I am afraid if I do that, they will tell me this question is not Raspberry Pi specific. I think the same question applies to any Debian based Linux distribution. – bfrgzju – 2015-06-17T00:29:27.827

@JulianKnight What do you mean by "simple connections"? – bfrgzju – 2015-06-17T00:30:05.627

@JulianKnight I want to do this because I know I can achieve the same functionality on Ubuntu using BlueMan. However I cannot find a terminal-only solution because as far as I know, BlueMan is graphic. I am not sure what BlueMan has done to my Bluetooth configurations... – bfrgzju – 2015-06-17T00:31:48.657

What I meant was anything outside what the GUI tools give you. I've been trying to work with BTLE for example for an automation project and found the whole thing utterly impenetrable & connections that should work simply don't. – Julian Knight – 2015-06-17T06:04:33.640

No answers