# cat /etc/udev/rules.d/96-bnep0.rules ACTION=="add", SUBSYSTEM=="net", KERNEL=="bnep0", PROGRAM="/root/bnep0" # cat /root/bnep0 #!/bin/sh run-standalone.sh dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:'Setting up...' ifconfig bnep0 >/dev/null || exit 1 modprobe ipt_MASQUERADE iptables -F iptables -t nat -F iptables -t nat -A POSTROUTING -o gprs0 -j MASQUERADE echo 1 > /proc/sys/net/ipv4/ip_forward ifconfig bnep0 192.168.1.1/24 up run-standalone.sh dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:'Bluetooth PAN NATting set up - Enjoy!'