Bluetooth PAN network tethering

OK I think I have it working; lets test this and add it to PureOS… Mobian too!

sudo modprobe bnep
echo “bnep” | sudo tee /etc/modules-load.d/bnep.conf
sudo hciconfig hci0 up
bluetoothctl

(in the [bluetooth] dialog type)

power on

(then end [bluetooth] session type)

exit

Lets make a personal area network

sudo sdptool add NAP

sudo nmcli connection add type bluetooth con-name "PAN-Share" ifname bnep0

bluetooth.type nap ipv4.method shared

sudo nmcli connection up "PAN-Share"

Now to keep it all after reboot

sudo apt install iptables-persistent

sudo netfilter-persistent save

crossposted to BT PAN - we need iptables and BT hackers

3 Likes