Donnerstag, 16. Juli 2009

HowTo iPhone Tethering Ubuntu 9.04 over Bluetooth

What you need:
  • iPhone with OS 3.0 and Tethering enabled
  • Laptop
  • Bluetooth Adapter

Be sure that your iPhone and your PC are paired.
sudo echo "deb jaunty main" >> /etc/apt/sources.list
sudo aptitude install bluez blueman bluez-compat      #you need bluez from 4.32 to 4.39

sudo echo "PAND_ENABLED=1" >> /etc/default/bluetooth
sudo echo 'PAND_OPTIONS
="--role=PANU"' >> /etc/default/bluetooth
sudo /etc/init.d/bluetooth restart
echo "iface bnep0 inet dhcp" >> /etc/network/interfaces

put the following in /etc/dhcp3/dhclient.conf
lease {
interface "bnep0";
option domain-name-servers,;

get your iPhone Mac Adress:
hcitool scan

connect your iPhone with this commands
sudo pand --connect 00:aa:bb:cc:dd:ee -n
sudo dhclient bnep0

to disconnect your phone throw this in the command line:
sudo ifdown bnep0
sudo pand -K

Your should now be able to Tether over your iPhone.

Thanks to the helpful tutorials at and Google. :)