<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://maemo.octonezd.me/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=77.7.171.177</id>
	<title>Maemo Wiki Mirror - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://maemo.octonezd.me/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=77.7.171.177"/>
	<link rel="alternate" type="text/html" href="https://maemo.octonezd.me/index.php/Special:Contributions/77.7.171.177"/>
	<updated>2026-04-21T22:00:14Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://maemo.octonezd.me/index.php?title=Bluetooth_PAN&amp;diff=1664</id>
		<title>Bluetooth PAN</title>
		<link rel="alternate" type="text/html" href="https://maemo.octonezd.me/index.php?title=Bluetooth_PAN&amp;diff=1664"/>
		<updated>2017-02-13T01:23:24Z</updated>

		<summary type="html">&lt;p&gt;77.7.171.177: /* Using PAN on older maemo5 pr3 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This allows you to use your Maemo device to use [[Bluetooth]] PAN to connect via another device to another network such as the Internet.&lt;br /&gt;
&lt;br /&gt;
The Connection manager is used for this purpose, exactly the same way as you connect to a WLAN network or to a cell phone dial-up connection ([[Bluetooth DUN]]). Most Windows Smartphones use this method of connection when used as a modem via Bluetooth.&lt;br /&gt;
&lt;br /&gt;
If you have [[Nokia N900]] you may instead use it as PAN server to allow an other device such as a Nokia N8x0 to utilize Bluetooth PAN.&lt;br /&gt;
&lt;br /&gt;
== Installing ==&lt;br /&gt;
&lt;br /&gt;
For the [[Nokia N900]] pan is disabled by default.&lt;br /&gt;
To enable it, edit /etc/bluetooth/main.conf and remove &#039;&#039;network&#039;&#039; from the disabled plugins&lt;br /&gt;
 [General]&lt;br /&gt;
 # List of plugins that should not be loaded on bluetoothd startup&lt;br /&gt;
 DisablePlugins = &amp;lt;s&amp;gt;network&amp;lt;/s&amp;gt;,input,hal&lt;br /&gt;
&#039;&#039;libicd-network-null&#039;&#039; is also recommended for using internet over bluetooth&lt;br /&gt;
 apt-get install libicd-network-null&lt;br /&gt;
&lt;br /&gt;
For other devices you need to install maemo-pan through the Application manager. You may need to restart your tablet after installation in order to force a dependency on maemo-pan (libicd-network-dummy package) being loaded.&lt;br /&gt;
&lt;br /&gt;
Tap on the Connectivity icon in your status bar and either &amp;quot;Select a connection&amp;quot; or &amp;quot;Change connection&amp;quot; to see a list of available network access points. You should see one called &amp;quot;Dummy Network&amp;quot; (this name will likely change in future versions of maemo-pan, see [https://bugs.maemo.org/show_bug.cgi?id=3306 bug #3306] for details).&lt;br /&gt;
&lt;br /&gt;
To connect to the Internet through this connection you must make sure the &amp;quot;Internet Connection Sharing&amp;quot; application is running on your phone and has a connection. Select the &amp;quot;Dummy Network&amp;quot; from the tablet network list and enjoy anywhere Internet!&lt;br /&gt;
&lt;br /&gt;
==Sharing your connection over bluetooth [n900]==&lt;br /&gt;
&lt;br /&gt;
Using [http://maemo.org/packages/view/genwall genwall] for internet connection sharing over bluetooth, follow:([http://talk.maemo.org/showpost.php?p=1454885&amp;amp;postcount=62 Linux]/[http://talk.maemo.org/showpost.php?p=1454885&amp;amp;postcount=63 Windows]).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Using udev to automatically setup internet connection sharing over bluetooth comes now.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A kernel with iptables support is needed,&lt;br /&gt;
&lt;br /&gt;
[[Kernel Power]] is the recommended way to achieve this. see [[Kernel Power]] for installation details.&lt;br /&gt;
&lt;br /&gt;
The default kernel with [[Community_SSU/Thumb|CSSU-thumb]] is also suitable.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Install the &#039;&#039;iptables&#039;&#039; package:&lt;br /&gt;
 apt-get install iptables&lt;br /&gt;
&lt;br /&gt;
create the following 2 files:&lt;br /&gt;
&lt;br /&gt;
/etc/udev/rules.d/98-bnep0.rules:&lt;br /&gt;
 ACTION==&amp;quot;add&amp;quot;, SUBSYSTEM==&amp;quot;net&amp;quot;,  KERNEL==&amp;quot;bnep0&amp;quot;, RUN+=&amp;quot;/etc/udev/bluenet.sh&amp;quot;&lt;br /&gt;
 ACTION==&amp;quot;remove&amp;quot;, SUBSYSTEM==&amp;quot;net&amp;quot;,  KERNEL==&amp;quot;bnep0&amp;quot;, RUN+=&amp;quot;/etc/udev/bluenet.sh&amp;quot;&lt;br /&gt;
&lt;br /&gt;
/etc/udev/bluenet.sh:&lt;br /&gt;
 #! /bin/sh&lt;br /&gt;
 if [ $ACTION = &amp;quot;add&amp;quot; ]; then &lt;br /&gt;
 	echo 1 &amp;gt; /proc/sys/net/ipv4/ip_forward&lt;br /&gt;
 	iptables -t nat -A POSTROUTING ! -o lo -j MASQUERADE&lt;br /&gt;
 	ifconfig bnep0 192.168.3.1&lt;br /&gt;
 	ifconfig bnep0 up&lt;br /&gt;
 	/usr/sbin/dnsmasq -I lo -z -a 192.168.3.1 -F 192.168.3.64,192.168.3.127 -x /var/run/dnsmasq.pid.bnep0&lt;br /&gt;
 else&lt;br /&gt;
 	iptables -t nat -D POSTROUTING ! -o lo -j MASQUERADE&lt;br /&gt;
 	if [ -f /var/run/dnsmasq.pid.bnep0 ]; then&lt;br /&gt;
 		DNSMASQ_PID=`cat /var/run/dnsmasq.pid.bnep0`&lt;br /&gt;
 		rm -f /var/run/dnsmasq.pid.bnep0&lt;br /&gt;
 		kill $DNSMASQ_PID&lt;br /&gt;
        fi&lt;br /&gt;
 fi&lt;br /&gt;
then set &#039;&#039;/etc/udev/bluenet.sh&#039;&#039; as executible:&lt;br /&gt;
 chmod +x /etc/udev/bluenet.sh&lt;br /&gt;
&lt;br /&gt;
now whenever an authorised remote device makes a bluetooth pan (nap) connection iptables and dnsmasq are setup to allow that device access to the phones network.&lt;br /&gt;
TODO: when no internet connection is active ask to set it up&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Using PAN on older maemo5 pr3 ===&lt;br /&gt;
In terminal cd /etc/udev/ then write vi bluenet.sh&lt;br /&gt;
it will open &lt;br /&gt;
/etc/udev/bluenet.sh press R and paste that code:&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 if [ $ACTION = &amp;quot;add&amp;quot; ]; then &lt;br /&gt;
 # by 9000 @ talk.maemo.org&lt;br /&gt;
 # Prompt you to select the Internet connection. You may choose gprs or wifi&lt;br /&gt;
 run-standalone.sh dbus-send --system --type=method_call --dest=com.nokia.icd_ui /com/nokia/icd_ui com.nokia.icd_u&lt;br /&gt;
 # Selecting and establishing connection takes time&lt;br /&gt;
 sleep 2&lt;br /&gt;
 # Verbose mode. You can remove it when you&#039;re using widget to activate this script&lt;br /&gt;
 set -x&lt;br /&gt;
 IP_ADDR=&amp;quot;192.168.3.1&amp;quot;&lt;br /&gt;
 NETMASK=&amp;quot;255.255.255.0&amp;quot;&lt;br /&gt;
 DHCP_RANGE=&amp;quot;192.168.3.60,192.168.3.70&amp;quot;&lt;br /&gt;
 RUNFILE=&amp;quot;/var/run/btpan_tethering.pid&amp;quot;&lt;br /&gt;
 DNSMASQ=&amp;quot;/usr/sbin/dnsmasq&amp;quot;&lt;br /&gt;
 # Load modules&lt;br /&gt;
 modprobe ipt_MASQUERADE&lt;br /&gt;
 # flush old rules&lt;br /&gt;
 iptables -F&lt;br /&gt;
 iptables -t nat -F&lt;br /&gt;
 iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE&lt;br /&gt;
 # forward IPs&lt;br /&gt;
 echo 1 &amp;gt; /proc/sys/net/ipv4/ip_forward&lt;br /&gt;
 # Setup bnep0&lt;br /&gt;
 ifconfig bnep0 down&lt;br /&gt;
 ifconfig bnep0 up&lt;br /&gt;
 ifconfig bnep0 $IP_ADDR netmask $NETMASK up&lt;br /&gt;
 # Setup DNS and DHCP&lt;br /&gt;
 start-stop-daemon -S -p $RUNFILE -m -b -x $DNSMASQ -- -k -I lo -z -a $IP_ADDR -F $DHCP_RANGE -b&lt;br /&gt;
 run-standalone.sh dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:&#039;Bluetooth PAN Activated&#039;&lt;br /&gt;
 fi&lt;br /&gt;
&lt;br /&gt;
press esc, then :w to save file and :q to quit&lt;br /&gt;
&lt;br /&gt;
set &#039;&#039;/etc/udev/bluenet.sh&#039;&#039; as executible:&lt;br /&gt;
 chmod +x /etc/udev/bluenet.sh&lt;br /&gt;
&lt;br /&gt;
cd /etc/udev/rules.d/ &lt;br /&gt;
command vi 98-bnep0.rules and press R&lt;br /&gt;
&lt;br /&gt;
/etc/udev/rules.d/98-bnep0.rules copy that txt and paste it, esc and Save it with command :w quit vi editor :q :&lt;br /&gt;
 ACTION==&amp;quot;add&amp;quot;, SUBSYSTEM==&amp;quot;net&amp;quot;,  KERNEL==&amp;quot;bnep0&amp;quot;, RUN+=&amp;quot;/etc/udev/bluenet.sh&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It is possible to use PAN to share Internet connections via PAN between two Nokia devices. However, on older devices it is recommended to use [[Bluetooth DUN]] (dial-up networking), since this is the normal method which smartphones use to share Internet access over Bluetooth.&lt;br /&gt;
&lt;br /&gt;
[[Category:Bluetooth]]&lt;br /&gt;
[[Category:Connectivity]]&lt;br /&gt;
[[Category:Power users]]&lt;/div&gt;</summary>
		<author><name>77.7.171.177</name></author>
	</entry>
	<entry>
		<id>https://maemo.octonezd.me/index.php?title=Bluetooth_PAN&amp;diff=1665</id>
		<title>Bluetooth PAN</title>
		<link rel="alternate" type="text/html" href="https://maemo.octonezd.me/index.php?title=Bluetooth_PAN&amp;diff=1665"/>
		<updated>2017-02-13T01:19:16Z</updated>

		<summary type="html">&lt;p&gt;77.7.171.177: /* Using PAN on older maemo5 pr3 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This allows you to use your Maemo device to use [[Bluetooth]] PAN to connect via another device to another network such as the Internet.&lt;br /&gt;
&lt;br /&gt;
The Connection manager is used for this purpose, exactly the same way as you connect to a WLAN network or to a cell phone dial-up connection ([[Bluetooth DUN]]). Most Windows Smartphones use this method of connection when used as a modem via Bluetooth.&lt;br /&gt;
&lt;br /&gt;
If you have [[Nokia N900]] you may instead use it as PAN server to allow an other device such as a Nokia N8x0 to utilize Bluetooth PAN.&lt;br /&gt;
&lt;br /&gt;
== Installing ==&lt;br /&gt;
&lt;br /&gt;
For the [[Nokia N900]] pan is disabled by default.&lt;br /&gt;
To enable it, edit /etc/bluetooth/main.conf and remove &#039;&#039;network&#039;&#039; from the disabled plugins&lt;br /&gt;
 [General]&lt;br /&gt;
 # List of plugins that should not be loaded on bluetoothd startup&lt;br /&gt;
 DisablePlugins = &amp;lt;s&amp;gt;network&amp;lt;/s&amp;gt;,input,hal&lt;br /&gt;
&#039;&#039;libicd-network-null&#039;&#039; is also recommended for using internet over bluetooth&lt;br /&gt;
 apt-get install libicd-network-null&lt;br /&gt;
&lt;br /&gt;
For other devices you need to install maemo-pan through the Application manager. You may need to restart your tablet after installation in order to force a dependency on maemo-pan (libicd-network-dummy package) being loaded.&lt;br /&gt;
&lt;br /&gt;
Tap on the Connectivity icon in your status bar and either &amp;quot;Select a connection&amp;quot; or &amp;quot;Change connection&amp;quot; to see a list of available network access points. You should see one called &amp;quot;Dummy Network&amp;quot; (this name will likely change in future versions of maemo-pan, see [https://bugs.maemo.org/show_bug.cgi?id=3306 bug #3306] for details).&lt;br /&gt;
&lt;br /&gt;
To connect to the Internet through this connection you must make sure the &amp;quot;Internet Connection Sharing&amp;quot; application is running on your phone and has a connection. Select the &amp;quot;Dummy Network&amp;quot; from the tablet network list and enjoy anywhere Internet!&lt;br /&gt;
&lt;br /&gt;
==Sharing your connection over bluetooth [n900]==&lt;br /&gt;
&lt;br /&gt;
Using [http://maemo.org/packages/view/genwall genwall] for internet connection sharing over bluetooth, follow:([http://talk.maemo.org/showpost.php?p=1454885&amp;amp;postcount=62 Linux]/[http://talk.maemo.org/showpost.php?p=1454885&amp;amp;postcount=63 Windows]).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Using udev to automatically setup internet connection sharing over bluetooth comes now.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A kernel with iptables support is needed,&lt;br /&gt;
&lt;br /&gt;
[[Kernel Power]] is the recommended way to achieve this. see [[Kernel Power]] for installation details.&lt;br /&gt;
&lt;br /&gt;
The default kernel with [[Community_SSU/Thumb|CSSU-thumb]] is also suitable.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Install the &#039;&#039;iptables&#039;&#039; package:&lt;br /&gt;
 apt-get install iptables&lt;br /&gt;
&lt;br /&gt;
create the following 2 files:&lt;br /&gt;
&lt;br /&gt;
/etc/udev/rules.d/98-bnep0.rules:&lt;br /&gt;
 ACTION==&amp;quot;add&amp;quot;, SUBSYSTEM==&amp;quot;net&amp;quot;,  KERNEL==&amp;quot;bnep0&amp;quot;, RUN+=&amp;quot;/etc/udev/bluenet.sh&amp;quot;&lt;br /&gt;
 ACTION==&amp;quot;remove&amp;quot;, SUBSYSTEM==&amp;quot;net&amp;quot;,  KERNEL==&amp;quot;bnep0&amp;quot;, RUN+=&amp;quot;/etc/udev/bluenet.sh&amp;quot;&lt;br /&gt;
&lt;br /&gt;
/etc/udev/bluenet.sh:&lt;br /&gt;
 #! /bin/sh&lt;br /&gt;
 if [ $ACTION = &amp;quot;add&amp;quot; ]; then &lt;br /&gt;
 	echo 1 &amp;gt; /proc/sys/net/ipv4/ip_forward&lt;br /&gt;
 	iptables -t nat -A POSTROUTING ! -o lo -j MASQUERADE&lt;br /&gt;
 	ifconfig bnep0 192.168.3.1&lt;br /&gt;
 	ifconfig bnep0 up&lt;br /&gt;
 	/usr/sbin/dnsmasq -I lo -z -a 192.168.3.1 -F 192.168.3.64,192.168.3.127 -x /var/run/dnsmasq.pid.bnep0&lt;br /&gt;
 else&lt;br /&gt;
 	iptables -t nat -D POSTROUTING ! -o lo -j MASQUERADE&lt;br /&gt;
 	if [ -f /var/run/dnsmasq.pid.bnep0 ]; then&lt;br /&gt;
 		DNSMASQ_PID=`cat /var/run/dnsmasq.pid.bnep0`&lt;br /&gt;
 		rm -f /var/run/dnsmasq.pid.bnep0&lt;br /&gt;
 		kill $DNSMASQ_PID&lt;br /&gt;
        fi&lt;br /&gt;
 fi&lt;br /&gt;
then set &#039;&#039;/etc/udev/bluenet.sh&#039;&#039; as executible:&lt;br /&gt;
 chmod +x /etc/udev/bluenet.sh&lt;br /&gt;
&lt;br /&gt;
now whenever an authorised remote device makes a bluetooth pan (nap) connection iptables and dnsmasq are setup to allow that device access to the phones network.&lt;br /&gt;
TODO: when no internet connection is active ask to set it up&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Using PAN on older maemo5 pr3 ===&lt;br /&gt;
In terminal cd /etc/udev/ then write vi bluenet.sh&lt;br /&gt;
it will open &lt;br /&gt;
/etc/udev/bluenet.sh press R and paste that code:&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 if [ $ACTION = &amp;quot;add&amp;quot; ]; then &lt;br /&gt;
 # by 9000 @ talk.maemo.org&lt;br /&gt;
 # Prompt you to select the Internet connection. You may choose gprs or wifi&lt;br /&gt;
 run-standalone.sh dbus-send --system --type=method_call --dest=com.nokia.icd_ui /com/nokia/icd_ui com.nokia.icd_u&lt;br /&gt;
 # Selecting and establishing connection takes time&lt;br /&gt;
 sleep 2&lt;br /&gt;
 # Verbose mode. You can remove it when you&#039;re using widget to activate this script&lt;br /&gt;
 set -x&lt;br /&gt;
 IP_ADDR=&amp;quot;192.168.3.1&amp;quot;&lt;br /&gt;
 NETMASK=&amp;quot;255.255.255.0&amp;quot;&lt;br /&gt;
 DHCP_RANGE=&amp;quot;192.168.3.60,192.168.3.70&amp;quot;&lt;br /&gt;
 RUNFILE=&amp;quot;/var/run/btpan_tethering.pid&amp;quot;&lt;br /&gt;
 DNSMASQ=&amp;quot;/usr/sbin/dnsmasq&amp;quot;&lt;br /&gt;
 # Load modules&lt;br /&gt;
 modprobe ipt_MASQUERADE&lt;br /&gt;
 # flush old rules&lt;br /&gt;
 iptables -F&lt;br /&gt;
 iptables -t nat -F&lt;br /&gt;
 iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE&lt;br /&gt;
 # forward IPs&lt;br /&gt;
 echo 1 &amp;gt; /proc/sys/net/ipv4/ip_forward&lt;br /&gt;
 # Setup bnep0&lt;br /&gt;
 ifconfig bnep0 down&lt;br /&gt;
 ifconfig bnep0 up&lt;br /&gt;
 ifconfig bnep0 $IP_ADDR netmask $NETMASK up&lt;br /&gt;
 # Setup DNS and DHCP&lt;br /&gt;
 start-stop-daemon -S -p $RUNFILE -m -b -x $DNSMASQ -- -k -I lo -z -a $IP_ADDR -F $DHCP_RANGE -b&lt;br /&gt;
 run-standalone.sh dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:&#039;Bluetooth PAN Activated&#039;&lt;br /&gt;
 fi&lt;br /&gt;
&lt;br /&gt;
Press :w to save file and :q to quit&lt;br /&gt;
&lt;br /&gt;
then set &#039;&#039;/etc/udev/bluenet.sh&#039;&#039; as executible:&lt;br /&gt;
 chmod +x /etc/udev/bluenet.sh&lt;br /&gt;
&lt;br /&gt;
cd /etc/udev/rules.d/ &lt;br /&gt;
command vi 98-bnep0.rules and press R&lt;br /&gt;
&lt;br /&gt;
/etc/udev/rules.d/98-bnep0.rules copy that txt and paste it Save :W quit vi editor :q :&lt;br /&gt;
 ACTION==&amp;quot;add&amp;quot;, SUBSYSTEM==&amp;quot;net&amp;quot;,  KERNEL==&amp;quot;bnep0&amp;quot;, RUN+=&amp;quot;/etc/udev/bluenet.sh&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It is possible to use PAN to share Internet connections via PAN between two Nokia devices. However, on older devices it is recommended to use [[Bluetooth DUN]] (dial-up networking), since this is the normal method which smartphones use to share Internet access over Bluetooth.&lt;br /&gt;
&lt;br /&gt;
[[Category:Bluetooth]]&lt;br /&gt;
[[Category:Connectivity]]&lt;br /&gt;
[[Category:Power users]]&lt;/div&gt;</summary>
		<author><name>77.7.171.177</name></author>
	</entry>
	<entry>
		<id>https://maemo.octonezd.me/index.php?title=Bluetooth_PAN&amp;diff=1666</id>
		<title>Bluetooth PAN</title>
		<link rel="alternate" type="text/html" href="https://maemo.octonezd.me/index.php?title=Bluetooth_PAN&amp;diff=1666"/>
		<updated>2017-02-13T01:15:18Z</updated>

		<summary type="html">&lt;p&gt;77.7.171.177: /* Using PAN on older maemo5 pr3 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This allows you to use your Maemo device to use [[Bluetooth]] PAN to connect via another device to another network such as the Internet.&lt;br /&gt;
&lt;br /&gt;
The Connection manager is used for this purpose, exactly the same way as you connect to a WLAN network or to a cell phone dial-up connection ([[Bluetooth DUN]]). Most Windows Smartphones use this method of connection when used as a modem via Bluetooth.&lt;br /&gt;
&lt;br /&gt;
If you have [[Nokia N900]] you may instead use it as PAN server to allow an other device such as a Nokia N8x0 to utilize Bluetooth PAN.&lt;br /&gt;
&lt;br /&gt;
== Installing ==&lt;br /&gt;
&lt;br /&gt;
For the [[Nokia N900]] pan is disabled by default.&lt;br /&gt;
To enable it, edit /etc/bluetooth/main.conf and remove &#039;&#039;network&#039;&#039; from the disabled plugins&lt;br /&gt;
 [General]&lt;br /&gt;
 # List of plugins that should not be loaded on bluetoothd startup&lt;br /&gt;
 DisablePlugins = &amp;lt;s&amp;gt;network&amp;lt;/s&amp;gt;,input,hal&lt;br /&gt;
&#039;&#039;libicd-network-null&#039;&#039; is also recommended for using internet over bluetooth&lt;br /&gt;
 apt-get install libicd-network-null&lt;br /&gt;
&lt;br /&gt;
For other devices you need to install maemo-pan through the Application manager. You may need to restart your tablet after installation in order to force a dependency on maemo-pan (libicd-network-dummy package) being loaded.&lt;br /&gt;
&lt;br /&gt;
Tap on the Connectivity icon in your status bar and either &amp;quot;Select a connection&amp;quot; or &amp;quot;Change connection&amp;quot; to see a list of available network access points. You should see one called &amp;quot;Dummy Network&amp;quot; (this name will likely change in future versions of maemo-pan, see [https://bugs.maemo.org/show_bug.cgi?id=3306 bug #3306] for details).&lt;br /&gt;
&lt;br /&gt;
To connect to the Internet through this connection you must make sure the &amp;quot;Internet Connection Sharing&amp;quot; application is running on your phone and has a connection. Select the &amp;quot;Dummy Network&amp;quot; from the tablet network list and enjoy anywhere Internet!&lt;br /&gt;
&lt;br /&gt;
==Sharing your connection over bluetooth [n900]==&lt;br /&gt;
&lt;br /&gt;
Using [http://maemo.org/packages/view/genwall genwall] for internet connection sharing over bluetooth, follow:([http://talk.maemo.org/showpost.php?p=1454885&amp;amp;postcount=62 Linux]/[http://talk.maemo.org/showpost.php?p=1454885&amp;amp;postcount=63 Windows]).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Using udev to automatically setup internet connection sharing over bluetooth comes now.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A kernel with iptables support is needed,&lt;br /&gt;
&lt;br /&gt;
[[Kernel Power]] is the recommended way to achieve this. see [[Kernel Power]] for installation details.&lt;br /&gt;
&lt;br /&gt;
The default kernel with [[Community_SSU/Thumb|CSSU-thumb]] is also suitable.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Install the &#039;&#039;iptables&#039;&#039; package:&lt;br /&gt;
 apt-get install iptables&lt;br /&gt;
&lt;br /&gt;
create the following 2 files:&lt;br /&gt;
&lt;br /&gt;
/etc/udev/rules.d/98-bnep0.rules:&lt;br /&gt;
 ACTION==&amp;quot;add&amp;quot;, SUBSYSTEM==&amp;quot;net&amp;quot;,  KERNEL==&amp;quot;bnep0&amp;quot;, RUN+=&amp;quot;/etc/udev/bluenet.sh&amp;quot;&lt;br /&gt;
 ACTION==&amp;quot;remove&amp;quot;, SUBSYSTEM==&amp;quot;net&amp;quot;,  KERNEL==&amp;quot;bnep0&amp;quot;, RUN+=&amp;quot;/etc/udev/bluenet.sh&amp;quot;&lt;br /&gt;
&lt;br /&gt;
/etc/udev/bluenet.sh:&lt;br /&gt;
 #! /bin/sh&lt;br /&gt;
 if [ $ACTION = &amp;quot;add&amp;quot; ]; then &lt;br /&gt;
 	echo 1 &amp;gt; /proc/sys/net/ipv4/ip_forward&lt;br /&gt;
 	iptables -t nat -A POSTROUTING ! -o lo -j MASQUERADE&lt;br /&gt;
 	ifconfig bnep0 192.168.3.1&lt;br /&gt;
 	ifconfig bnep0 up&lt;br /&gt;
 	/usr/sbin/dnsmasq -I lo -z -a 192.168.3.1 -F 192.168.3.64,192.168.3.127 -x /var/run/dnsmasq.pid.bnep0&lt;br /&gt;
 else&lt;br /&gt;
 	iptables -t nat -D POSTROUTING ! -o lo -j MASQUERADE&lt;br /&gt;
 	if [ -f /var/run/dnsmasq.pid.bnep0 ]; then&lt;br /&gt;
 		DNSMASQ_PID=`cat /var/run/dnsmasq.pid.bnep0`&lt;br /&gt;
 		rm -f /var/run/dnsmasq.pid.bnep0&lt;br /&gt;
 		kill $DNSMASQ_PID&lt;br /&gt;
        fi&lt;br /&gt;
 fi&lt;br /&gt;
then set &#039;&#039;/etc/udev/bluenet.sh&#039;&#039; as executible:&lt;br /&gt;
 chmod +x /etc/udev/bluenet.sh&lt;br /&gt;
&lt;br /&gt;
now whenever an authorised remote device makes a bluetooth pan (nap) connection iptables and dnsmasq are setup to allow that device access to the phones network.&lt;br /&gt;
TODO: when no internet connection is active ask to set it up&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Using PAN on older maemo5 pr3 ===&lt;br /&gt;
In terminal cd /etc/udev/ then write vi bluenet.sh&lt;br /&gt;
it will open &lt;br /&gt;
/etc/udev/bluenet.sh press R and paste that code:&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 if [ $ACTION = &amp;quot;add&amp;quot; ]; then &lt;br /&gt;
 # by 9000 @ talk.maemo.org&lt;br /&gt;
 # Prompt you to select the Internet connection. You may choose gprs or wifi&lt;br /&gt;
 run-standalone.sh dbus-send --system --type=method_call --dest=com.nokia.icd_ui /com/nokia/icd_ui com.nokia.icd_u&lt;br /&gt;
 # Selecting and establishing connection takes time&lt;br /&gt;
sleep 2&lt;br /&gt;
 # Verbose mode. You can remove it when you&#039;re using widget to activate this script&lt;br /&gt;
&lt;br /&gt;
 set -x&lt;br /&gt;
&lt;br /&gt;
 IP_ADDR=&amp;quot;192.168.3.1&amp;quot;&lt;br /&gt;
 NETMASK=&amp;quot;255.255.255.0&amp;quot;&lt;br /&gt;
 DHCP_RANGE=&amp;quot;192.168.3.60,192.168.3.70&amp;quot;&lt;br /&gt;
 RUNFILE=&amp;quot;/var/run/btpan_tethering.pid&amp;quot;&lt;br /&gt;
 DNSMASQ=&amp;quot;/usr/sbin/dnsmasq&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 # Load modules&lt;br /&gt;
 modprobe ipt_MASQUERADE&lt;br /&gt;
&lt;br /&gt;
 # flush old rules&lt;br /&gt;
 iptables -F&lt;br /&gt;
 iptables -t nat -F&lt;br /&gt;
&lt;br /&gt;
 iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE&lt;br /&gt;
&lt;br /&gt;
 # forward IPs&lt;br /&gt;
 echo 1 &amp;gt; /proc/sys/net/ipv4/ip_forward&lt;br /&gt;
&lt;br /&gt;
 # Setup bnep0&lt;br /&gt;
 ifconfig bnep0 down&lt;br /&gt;
 ifconfig bnep0 up&lt;br /&gt;
 ifconfig bnep0 $IP_ADDR netmask $NETMASK up&lt;br /&gt;
&lt;br /&gt;
 # Setup DNS and DHCP&lt;br /&gt;
 start-stop-daemon -S -p $RUNFILE -m -b -x $DNSMASQ -- -k -I lo -z -a $IP_ADDR -F $DHCP_RANGE -b&lt;br /&gt;
&lt;br /&gt;
 run-standalone.sh dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:&#039;Bluetooth PAN Activated&#039;&lt;br /&gt;
 fi&lt;br /&gt;
&lt;br /&gt;
Press :w to save file and :q to quit&lt;br /&gt;
&lt;br /&gt;
then set &#039;&#039;/etc/udev/bluenet.sh&#039;&#039; as executible:&lt;br /&gt;
 chmod +x /etc/udev/bluenet.sh&lt;br /&gt;
&lt;br /&gt;
then cd /etc/udev/rules.d/ &lt;br /&gt;
command vi 98-bnep0.rules and press R&lt;br /&gt;
&lt;br /&gt;
/etc/udev/rules.d/98-bnep0.rules copy that txt and paste it Save :W quit vi editor :q :&lt;br /&gt;
 ACTION==&amp;quot;add&amp;quot;, SUBSYSTEM==&amp;quot;net&amp;quot;,  KERNEL==&amp;quot;bnep0&amp;quot;, RUN+=&amp;quot;/etc/udev/bluenet.sh&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It is possible to use PAN to share Internet connections via PAN between two Nokia devices. However, on older devices it is recommended to use [[Bluetooth DUN]] (dial-up networking), since this is the normal method which smartphones use to share Internet access over Bluetooth.&lt;br /&gt;
&lt;br /&gt;
[[Category:Bluetooth]]&lt;br /&gt;
[[Category:Connectivity]]&lt;br /&gt;
[[Category:Power users]]&lt;/div&gt;</summary>
		<author><name>77.7.171.177</name></author>
	</entry>
	<entry>
		<id>https://maemo.octonezd.me/index.php?title=Bluetooth_PAN&amp;diff=1667</id>
		<title>Bluetooth PAN</title>
		<link rel="alternate" type="text/html" href="https://maemo.octonezd.me/index.php?title=Bluetooth_PAN&amp;diff=1667"/>
		<updated>2017-02-13T01:11:45Z</updated>

		<summary type="html">&lt;p&gt;77.7.171.177: /* Using PAN on older maemo5 pr3 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This allows you to use your Maemo device to use [[Bluetooth]] PAN to connect via another device to another network such as the Internet.&lt;br /&gt;
&lt;br /&gt;
The Connection manager is used for this purpose, exactly the same way as you connect to a WLAN network or to a cell phone dial-up connection ([[Bluetooth DUN]]). Most Windows Smartphones use this method of connection when used as a modem via Bluetooth.&lt;br /&gt;
&lt;br /&gt;
If you have [[Nokia N900]] you may instead use it as PAN server to allow an other device such as a Nokia N8x0 to utilize Bluetooth PAN.&lt;br /&gt;
&lt;br /&gt;
== Installing ==&lt;br /&gt;
&lt;br /&gt;
For the [[Nokia N900]] pan is disabled by default.&lt;br /&gt;
To enable it, edit /etc/bluetooth/main.conf and remove &#039;&#039;network&#039;&#039; from the disabled plugins&lt;br /&gt;
 [General]&lt;br /&gt;
 # List of plugins that should not be loaded on bluetoothd startup&lt;br /&gt;
 DisablePlugins = &amp;lt;s&amp;gt;network&amp;lt;/s&amp;gt;,input,hal&lt;br /&gt;
&#039;&#039;libicd-network-null&#039;&#039; is also recommended for using internet over bluetooth&lt;br /&gt;
 apt-get install libicd-network-null&lt;br /&gt;
&lt;br /&gt;
For other devices you need to install maemo-pan through the Application manager. You may need to restart your tablet after installation in order to force a dependency on maemo-pan (libicd-network-dummy package) being loaded.&lt;br /&gt;
&lt;br /&gt;
Tap on the Connectivity icon in your status bar and either &amp;quot;Select a connection&amp;quot; or &amp;quot;Change connection&amp;quot; to see a list of available network access points. You should see one called &amp;quot;Dummy Network&amp;quot; (this name will likely change in future versions of maemo-pan, see [https://bugs.maemo.org/show_bug.cgi?id=3306 bug #3306] for details).&lt;br /&gt;
&lt;br /&gt;
To connect to the Internet through this connection you must make sure the &amp;quot;Internet Connection Sharing&amp;quot; application is running on your phone and has a connection. Select the &amp;quot;Dummy Network&amp;quot; from the tablet network list and enjoy anywhere Internet!&lt;br /&gt;
&lt;br /&gt;
==Sharing your connection over bluetooth [n900]==&lt;br /&gt;
&lt;br /&gt;
Using [http://maemo.org/packages/view/genwall genwall] for internet connection sharing over bluetooth, follow:([http://talk.maemo.org/showpost.php?p=1454885&amp;amp;postcount=62 Linux]/[http://talk.maemo.org/showpost.php?p=1454885&amp;amp;postcount=63 Windows]).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Using udev to automatically setup internet connection sharing over bluetooth comes now.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A kernel with iptables support is needed,&lt;br /&gt;
&lt;br /&gt;
[[Kernel Power]] is the recommended way to achieve this. see [[Kernel Power]] for installation details.&lt;br /&gt;
&lt;br /&gt;
The default kernel with [[Community_SSU/Thumb|CSSU-thumb]] is also suitable.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Install the &#039;&#039;iptables&#039;&#039; package:&lt;br /&gt;
 apt-get install iptables&lt;br /&gt;
&lt;br /&gt;
create the following 2 files:&lt;br /&gt;
&lt;br /&gt;
/etc/udev/rules.d/98-bnep0.rules:&lt;br /&gt;
 ACTION==&amp;quot;add&amp;quot;, SUBSYSTEM==&amp;quot;net&amp;quot;,  KERNEL==&amp;quot;bnep0&amp;quot;, RUN+=&amp;quot;/etc/udev/bluenet.sh&amp;quot;&lt;br /&gt;
 ACTION==&amp;quot;remove&amp;quot;, SUBSYSTEM==&amp;quot;net&amp;quot;,  KERNEL==&amp;quot;bnep0&amp;quot;, RUN+=&amp;quot;/etc/udev/bluenet.sh&amp;quot;&lt;br /&gt;
&lt;br /&gt;
/etc/udev/bluenet.sh:&lt;br /&gt;
 #! /bin/sh&lt;br /&gt;
 if [ $ACTION = &amp;quot;add&amp;quot; ]; then &lt;br /&gt;
 	echo 1 &amp;gt; /proc/sys/net/ipv4/ip_forward&lt;br /&gt;
 	iptables -t nat -A POSTROUTING ! -o lo -j MASQUERADE&lt;br /&gt;
 	ifconfig bnep0 192.168.3.1&lt;br /&gt;
 	ifconfig bnep0 up&lt;br /&gt;
 	/usr/sbin/dnsmasq -I lo -z -a 192.168.3.1 -F 192.168.3.64,192.168.3.127 -x /var/run/dnsmasq.pid.bnep0&lt;br /&gt;
 else&lt;br /&gt;
 	iptables -t nat -D POSTROUTING ! -o lo -j MASQUERADE&lt;br /&gt;
 	if [ -f /var/run/dnsmasq.pid.bnep0 ]; then&lt;br /&gt;
 		DNSMASQ_PID=`cat /var/run/dnsmasq.pid.bnep0`&lt;br /&gt;
 		rm -f /var/run/dnsmasq.pid.bnep0&lt;br /&gt;
 		kill $DNSMASQ_PID&lt;br /&gt;
        fi&lt;br /&gt;
 fi&lt;br /&gt;
then set &#039;&#039;/etc/udev/bluenet.sh&#039;&#039; as executible:&lt;br /&gt;
 chmod +x /etc/udev/bluenet.sh&lt;br /&gt;
&lt;br /&gt;
now whenever an authorised remote device makes a bluetooth pan (nap) connection iptables and dnsmasq are setup to allow that device access to the phones network.&lt;br /&gt;
TODO: when no internet connection is active ask to set it up&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Using PAN on older maemo5 pr3 ===&lt;br /&gt;
In terminal cd /etc/udev/ then write vi bluenet.sh&lt;br /&gt;
it will open &lt;br /&gt;
/etc/udev/bluenet.sh press R and paste that code:&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
if [ $ACTION = &amp;quot;add&amp;quot; ]; then &lt;br /&gt;
# by 9000 @ talk.maemo.org&lt;br /&gt;
# Prompt you to select the Internet connection. You may choose gprs or wifi&lt;br /&gt;
run-standalone.sh dbus-send --system --type=method_call --dest=com.nokia.icd_ui /com/nokia/icd_ui com.nokia.icd_u&lt;br /&gt;
# Selecting and establishing connection takes time&lt;br /&gt;
sleep 2&lt;br /&gt;
# Verbose mode. You can remove it when you&#039;re using widget to activate this script&lt;br /&gt;
&lt;br /&gt;
set -x&lt;br /&gt;
&lt;br /&gt;
IP_ADDR=&amp;quot;192.168.3.1&amp;quot;&lt;br /&gt;
NETMASK=&amp;quot;255.255.255.0&amp;quot;&lt;br /&gt;
DHCP_RANGE=&amp;quot;192.168.3.60,192.168.3.70&amp;quot;&lt;br /&gt;
RUNFILE=&amp;quot;/var/run/btpan_tethering.pid&amp;quot;&lt;br /&gt;
DNSMASQ=&amp;quot;/usr/sbin/dnsmasq&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Load modules&lt;br /&gt;
modprobe ipt_MASQUERADE&lt;br /&gt;
&lt;br /&gt;
# flush old rules&lt;br /&gt;
iptables -F&lt;br /&gt;
iptables -t nat -F&lt;br /&gt;
&lt;br /&gt;
iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE&lt;br /&gt;
&lt;br /&gt;
# forward IPs&lt;br /&gt;
echo 1 &amp;gt; /proc/sys/net/ipv4/ip_forward&lt;br /&gt;
&lt;br /&gt;
# Setup bnep0&lt;br /&gt;
ifconfig bnep0 down&lt;br /&gt;
ifconfig bnep0 up&lt;br /&gt;
ifconfig bnep0 $IP_ADDR netmask $NETMASK up&lt;br /&gt;
&lt;br /&gt;
# Setup DNS and DHCP&lt;br /&gt;
start-stop-daemon -S -p $RUNFILE -m -b -x $DNSMASQ -- -k -I lo -z -a $IP_ADDR -F $DHCP_RANGE -b&lt;br /&gt;
&lt;br /&gt;
run-standalone.sh dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:&#039;Bluetooth PAN Activated&#039;&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
Press :w to save file and :q to quit&lt;br /&gt;
&lt;br /&gt;
then set &#039;&#039;/etc/udev/bluenet.sh&#039;&#039; as executible:&lt;br /&gt;
 chmod +x /etc/udev/bluenet.sh&lt;br /&gt;
&lt;br /&gt;
then cd /etc/udev/rules.d/ &lt;br /&gt;
command vi 98-bnep0.rules and press R&lt;br /&gt;
&lt;br /&gt;
/etc/udev/rules.d/98-bnep0.rules copy that txt and paste it Save :W quit vi editor :q :&lt;br /&gt;
 ACTION==&amp;quot;add&amp;quot;, SUBSYSTEM==&amp;quot;net&amp;quot;,  KERNEL==&amp;quot;bnep0&amp;quot;, RUN+=&amp;quot;/etc/udev/bluenet.sh&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It is possible to use PAN to share Internet connections via PAN between two Nokia devices. However, on older devices it is recommended to use [[Bluetooth DUN]] (dial-up networking), since this is the normal method which smartphones use to share Internet access over Bluetooth.&lt;br /&gt;
&lt;br /&gt;
[[Category:Bluetooth]]&lt;br /&gt;
[[Category:Connectivity]]&lt;br /&gt;
[[Category:Power users]]&lt;/div&gt;</summary>
		<author><name>77.7.171.177</name></author>
	</entry>
	<entry>
		<id>https://maemo.octonezd.me/index.php?title=Bluetooth_PAN&amp;diff=1668</id>
		<title>Bluetooth PAN</title>
		<link rel="alternate" type="text/html" href="https://maemo.octonezd.me/index.php?title=Bluetooth_PAN&amp;diff=1668"/>
		<updated>2017-02-13T01:10:37Z</updated>

		<summary type="html">&lt;p&gt;77.7.171.177: /* Using PAN on older maemo5 pr3 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This allows you to use your Maemo device to use [[Bluetooth]] PAN to connect via another device to another network such as the Internet.&lt;br /&gt;
&lt;br /&gt;
The Connection manager is used for this purpose, exactly the same way as you connect to a WLAN network or to a cell phone dial-up connection ([[Bluetooth DUN]]). Most Windows Smartphones use this method of connection when used as a modem via Bluetooth.&lt;br /&gt;
&lt;br /&gt;
If you have [[Nokia N900]] you may instead use it as PAN server to allow an other device such as a Nokia N8x0 to utilize Bluetooth PAN.&lt;br /&gt;
&lt;br /&gt;
== Installing ==&lt;br /&gt;
&lt;br /&gt;
For the [[Nokia N900]] pan is disabled by default.&lt;br /&gt;
To enable it, edit /etc/bluetooth/main.conf and remove &#039;&#039;network&#039;&#039; from the disabled plugins&lt;br /&gt;
 [General]&lt;br /&gt;
 # List of plugins that should not be loaded on bluetoothd startup&lt;br /&gt;
 DisablePlugins = &amp;lt;s&amp;gt;network&amp;lt;/s&amp;gt;,input,hal&lt;br /&gt;
&#039;&#039;libicd-network-null&#039;&#039; is also recommended for using internet over bluetooth&lt;br /&gt;
 apt-get install libicd-network-null&lt;br /&gt;
&lt;br /&gt;
For other devices you need to install maemo-pan through the Application manager. You may need to restart your tablet after installation in order to force a dependency on maemo-pan (libicd-network-dummy package) being loaded.&lt;br /&gt;
&lt;br /&gt;
Tap on the Connectivity icon in your status bar and either &amp;quot;Select a connection&amp;quot; or &amp;quot;Change connection&amp;quot; to see a list of available network access points. You should see one called &amp;quot;Dummy Network&amp;quot; (this name will likely change in future versions of maemo-pan, see [https://bugs.maemo.org/show_bug.cgi?id=3306 bug #3306] for details).&lt;br /&gt;
&lt;br /&gt;
To connect to the Internet through this connection you must make sure the &amp;quot;Internet Connection Sharing&amp;quot; application is running on your phone and has a connection. Select the &amp;quot;Dummy Network&amp;quot; from the tablet network list and enjoy anywhere Internet!&lt;br /&gt;
&lt;br /&gt;
==Sharing your connection over bluetooth [n900]==&lt;br /&gt;
&lt;br /&gt;
Using [http://maemo.org/packages/view/genwall genwall] for internet connection sharing over bluetooth, follow:([http://talk.maemo.org/showpost.php?p=1454885&amp;amp;postcount=62 Linux]/[http://talk.maemo.org/showpost.php?p=1454885&amp;amp;postcount=63 Windows]).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Using udev to automatically setup internet connection sharing over bluetooth comes now.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A kernel with iptables support is needed,&lt;br /&gt;
&lt;br /&gt;
[[Kernel Power]] is the recommended way to achieve this. see [[Kernel Power]] for installation details.&lt;br /&gt;
&lt;br /&gt;
The default kernel with [[Community_SSU/Thumb|CSSU-thumb]] is also suitable.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Install the &#039;&#039;iptables&#039;&#039; package:&lt;br /&gt;
 apt-get install iptables&lt;br /&gt;
&lt;br /&gt;
create the following 2 files:&lt;br /&gt;
&lt;br /&gt;
/etc/udev/rules.d/98-bnep0.rules:&lt;br /&gt;
 ACTION==&amp;quot;add&amp;quot;, SUBSYSTEM==&amp;quot;net&amp;quot;,  KERNEL==&amp;quot;bnep0&amp;quot;, RUN+=&amp;quot;/etc/udev/bluenet.sh&amp;quot;&lt;br /&gt;
 ACTION==&amp;quot;remove&amp;quot;, SUBSYSTEM==&amp;quot;net&amp;quot;,  KERNEL==&amp;quot;bnep0&amp;quot;, RUN+=&amp;quot;/etc/udev/bluenet.sh&amp;quot;&lt;br /&gt;
&lt;br /&gt;
/etc/udev/bluenet.sh:&lt;br /&gt;
 #! /bin/sh&lt;br /&gt;
 if [ $ACTION = &amp;quot;add&amp;quot; ]; then &lt;br /&gt;
 	echo 1 &amp;gt; /proc/sys/net/ipv4/ip_forward&lt;br /&gt;
 	iptables -t nat -A POSTROUTING ! -o lo -j MASQUERADE&lt;br /&gt;
 	ifconfig bnep0 192.168.3.1&lt;br /&gt;
 	ifconfig bnep0 up&lt;br /&gt;
 	/usr/sbin/dnsmasq -I lo -z -a 192.168.3.1 -F 192.168.3.64,192.168.3.127 -x /var/run/dnsmasq.pid.bnep0&lt;br /&gt;
 else&lt;br /&gt;
 	iptables -t nat -D POSTROUTING ! -o lo -j MASQUERADE&lt;br /&gt;
 	if [ -f /var/run/dnsmasq.pid.bnep0 ]; then&lt;br /&gt;
 		DNSMASQ_PID=`cat /var/run/dnsmasq.pid.bnep0`&lt;br /&gt;
 		rm -f /var/run/dnsmasq.pid.bnep0&lt;br /&gt;
 		kill $DNSMASQ_PID&lt;br /&gt;
        fi&lt;br /&gt;
 fi&lt;br /&gt;
then set &#039;&#039;/etc/udev/bluenet.sh&#039;&#039; as executible:&lt;br /&gt;
 chmod +x /etc/udev/bluenet.sh&lt;br /&gt;
&lt;br /&gt;
now whenever an authorised remote device makes a bluetooth pan (nap) connection iptables and dnsmasq are setup to allow that device access to the phones network.&lt;br /&gt;
TODO: when no internet connection is active ask to set it up&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Using PAN on older maemo5 pr3 ===&lt;br /&gt;
In terminal cd /etc/udev/ then write vi bluenet.sh&lt;br /&gt;
it will open &lt;br /&gt;
/etc/udev/bluenet.sh press R and paste that code:&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
if [ $ACTION = &amp;quot;add&amp;quot; ]; then &lt;br /&gt;
# by 9000 @ talk.maemo.org&lt;br /&gt;
# Prompt you to select the Internet connection. You may choose gprs or wifi&lt;br /&gt;
run-standalone.sh dbus-send --system --type=method_call --dest=com.nokia.icd_ui /com/nokia/icd_ui com.nokia.icd_u&lt;br /&gt;
# Selecting and establishing connection takes time&lt;br /&gt;
sleep 2&lt;br /&gt;
# Verbose mode. You can remove it when you&#039;re using widget to activate this script&lt;br /&gt;
&lt;br /&gt;
set -x&lt;br /&gt;
&lt;br /&gt;
IP_ADDR=&amp;quot;192.168.3.1&amp;quot;&lt;br /&gt;
NETMASK=&amp;quot;255.255.255.0&amp;quot;&lt;br /&gt;
DHCP_RANGE=&amp;quot;192.168.3.60,192.168.3.70&amp;quot;&lt;br /&gt;
RUNFILE=&amp;quot;/var/run/btpan_tethering.pid&amp;quot;&lt;br /&gt;
DNSMASQ=&amp;quot;/usr/sbin/dnsmasq&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Load modules&lt;br /&gt;
modprobe ipt_MASQUERADE&lt;br /&gt;
&lt;br /&gt;
# flush old rules&lt;br /&gt;
iptables -F&lt;br /&gt;
iptables -t nat -F&lt;br /&gt;
&lt;br /&gt;
iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE&lt;br /&gt;
&lt;br /&gt;
# forward IPs&lt;br /&gt;
echo 1 &amp;gt; /proc/sys/net/ipv4/ip_forward&lt;br /&gt;
&lt;br /&gt;
# Setup bnep0&lt;br /&gt;
ifconfig bnep0 down&lt;br /&gt;
ifconfig bnep0 up&lt;br /&gt;
ifconfig bnep0 $IP_ADDR netmask $NETMASK up&lt;br /&gt;
&lt;br /&gt;
# Setup DNS and DHCP&lt;br /&gt;
start-stop-daemon -S -p $RUNFILE -m -b -x $DNSMASQ -- -k -I lo -z -a $IP_ADDR -F $DHCP_RANGE -b&lt;br /&gt;
&lt;br /&gt;
run-standalone.sh dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:&#039;Bluetooth PAN Activated&#039;&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
Press :w to save file and :q to quit&lt;br /&gt;
&lt;br /&gt;
then set &#039;&#039;/etc/udev/bluenet.sh&#039;&#039; as executible:&lt;br /&gt;
 chmod +x /etc/udev/bluenet.sh&lt;br /&gt;
&lt;br /&gt;
then cd /etc/udev/rules.d/ &lt;br /&gt;
command vi 98-bnep0.rules and press R&lt;br /&gt;
&lt;br /&gt;
/etc/udev/rules.d/98-bnep0.rules copy that txt and paste it Save :W quit vi editor :q :&lt;br /&gt;
 ACTION==&amp;quot;add&amp;quot;, SUBSYSTEM==&amp;quot;net&amp;quot;,  KERNEL==&amp;quot;bnep0&amp;quot;, RUN+=&amp;quot;/etc/udev/bluenet.sh&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It is possible to use PAN to share Internet connections via PAN between two Nokia devices. However, on older devices it is recommended to use [[Bluetooth DUN]] (dial-up networking), since this is the normal method which smartphones use to share Internet access over Bluetooth.&lt;br /&gt;
&lt;br /&gt;
[[Category:Bluetooth]]&lt;br /&gt;
[[Category:Connectivity]]&lt;br /&gt;
[[Category:Power users]]&lt;/div&gt;</summary>
		<author><name>77.7.171.177</name></author>
	</entry>
	<entry>
		<id>https://maemo.octonezd.me/index.php?title=Bluetooth_PAN&amp;diff=1669</id>
		<title>Bluetooth PAN</title>
		<link rel="alternate" type="text/html" href="https://maemo.octonezd.me/index.php?title=Bluetooth_PAN&amp;diff=1669"/>
		<updated>2017-02-13T01:06:30Z</updated>

		<summary type="html">&lt;p&gt;77.7.171.177: /* Sharing your connection over bluetooth [n900] */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This allows you to use your Maemo device to use [[Bluetooth]] PAN to connect via another device to another network such as the Internet.&lt;br /&gt;
&lt;br /&gt;
The Connection manager is used for this purpose, exactly the same way as you connect to a WLAN network or to a cell phone dial-up connection ([[Bluetooth DUN]]). Most Windows Smartphones use this method of connection when used as a modem via Bluetooth.&lt;br /&gt;
&lt;br /&gt;
If you have [[Nokia N900]] you may instead use it as PAN server to allow an other device such as a Nokia N8x0 to utilize Bluetooth PAN.&lt;br /&gt;
&lt;br /&gt;
== Installing ==&lt;br /&gt;
&lt;br /&gt;
For the [[Nokia N900]] pan is disabled by default.&lt;br /&gt;
To enable it, edit /etc/bluetooth/main.conf and remove &#039;&#039;network&#039;&#039; from the disabled plugins&lt;br /&gt;
 [General]&lt;br /&gt;
 # List of plugins that should not be loaded on bluetoothd startup&lt;br /&gt;
 DisablePlugins = &amp;lt;s&amp;gt;network&amp;lt;/s&amp;gt;,input,hal&lt;br /&gt;
&#039;&#039;libicd-network-null&#039;&#039; is also recommended for using internet over bluetooth&lt;br /&gt;
 apt-get install libicd-network-null&lt;br /&gt;
&lt;br /&gt;
For other devices you need to install maemo-pan through the Application manager. You may need to restart your tablet after installation in order to force a dependency on maemo-pan (libicd-network-dummy package) being loaded.&lt;br /&gt;
&lt;br /&gt;
Tap on the Connectivity icon in your status bar and either &amp;quot;Select a connection&amp;quot; or &amp;quot;Change connection&amp;quot; to see a list of available network access points. You should see one called &amp;quot;Dummy Network&amp;quot; (this name will likely change in future versions of maemo-pan, see [https://bugs.maemo.org/show_bug.cgi?id=3306 bug #3306] for details).&lt;br /&gt;
&lt;br /&gt;
To connect to the Internet through this connection you must make sure the &amp;quot;Internet Connection Sharing&amp;quot; application is running on your phone and has a connection. Select the &amp;quot;Dummy Network&amp;quot; from the tablet network list and enjoy anywhere Internet!&lt;br /&gt;
&lt;br /&gt;
==Sharing your connection over bluetooth [n900]==&lt;br /&gt;
&lt;br /&gt;
Using [http://maemo.org/packages/view/genwall genwall] for internet connection sharing over bluetooth, follow:([http://talk.maemo.org/showpost.php?p=1454885&amp;amp;postcount=62 Linux]/[http://talk.maemo.org/showpost.php?p=1454885&amp;amp;postcount=63 Windows]).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Using udev to automatically setup internet connection sharing over bluetooth comes now.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A kernel with iptables support is needed,&lt;br /&gt;
&lt;br /&gt;
[[Kernel Power]] is the recommended way to achieve this. see [[Kernel Power]] for installation details.&lt;br /&gt;
&lt;br /&gt;
The default kernel with [[Community_SSU/Thumb|CSSU-thumb]] is also suitable.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Install the &#039;&#039;iptables&#039;&#039; package:&lt;br /&gt;
 apt-get install iptables&lt;br /&gt;
&lt;br /&gt;
create the following 2 files:&lt;br /&gt;
&lt;br /&gt;
/etc/udev/rules.d/98-bnep0.rules:&lt;br /&gt;
 ACTION==&amp;quot;add&amp;quot;, SUBSYSTEM==&amp;quot;net&amp;quot;,  KERNEL==&amp;quot;bnep0&amp;quot;, RUN+=&amp;quot;/etc/udev/bluenet.sh&amp;quot;&lt;br /&gt;
 ACTION==&amp;quot;remove&amp;quot;, SUBSYSTEM==&amp;quot;net&amp;quot;,  KERNEL==&amp;quot;bnep0&amp;quot;, RUN+=&amp;quot;/etc/udev/bluenet.sh&amp;quot;&lt;br /&gt;
&lt;br /&gt;
/etc/udev/bluenet.sh:&lt;br /&gt;
 #! /bin/sh&lt;br /&gt;
 if [ $ACTION = &amp;quot;add&amp;quot; ]; then &lt;br /&gt;
 	echo 1 &amp;gt; /proc/sys/net/ipv4/ip_forward&lt;br /&gt;
 	iptables -t nat -A POSTROUTING ! -o lo -j MASQUERADE&lt;br /&gt;
 	ifconfig bnep0 192.168.3.1&lt;br /&gt;
 	ifconfig bnep0 up&lt;br /&gt;
 	/usr/sbin/dnsmasq -I lo -z -a 192.168.3.1 -F 192.168.3.64,192.168.3.127 -x /var/run/dnsmasq.pid.bnep0&lt;br /&gt;
 else&lt;br /&gt;
 	iptables -t nat -D POSTROUTING ! -o lo -j MASQUERADE&lt;br /&gt;
 	if [ -f /var/run/dnsmasq.pid.bnep0 ]; then&lt;br /&gt;
 		DNSMASQ_PID=`cat /var/run/dnsmasq.pid.bnep0`&lt;br /&gt;
 		rm -f /var/run/dnsmasq.pid.bnep0&lt;br /&gt;
 		kill $DNSMASQ_PID&lt;br /&gt;
        fi&lt;br /&gt;
 fi&lt;br /&gt;
then set &#039;&#039;/etc/udev/bluenet.sh&#039;&#039; as executible:&lt;br /&gt;
 chmod +x /etc/udev/bluenet.sh&lt;br /&gt;
&lt;br /&gt;
now whenever an authorised remote device makes a bluetooth pan (nap) connection iptables and dnsmasq are setup to allow that device access to the phones network.&lt;br /&gt;
TODO: when no internet connection is active ask to set it up&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Using PAN on older maemo5 pr3 ===&lt;br /&gt;
In terminal cd /etc/udev/ then write vi bluenet.sh&lt;br /&gt;
it will open &lt;br /&gt;
/etc/udev/bluenet.sh press R and paste that code:&lt;br /&gt;
&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
if [ $ACTION = &amp;quot;add&amp;quot; ]; then &lt;br /&gt;
# by 9000 @ talk.maemo.org&lt;br /&gt;
&lt;br /&gt;
# Prompt you to select the Internet connection. You may choose gprs or wifi&lt;br /&gt;
run-standalone.sh dbus-send --system --type=method_call --dest=com.nokia.icd_ui /com/nokia/icd_ui com.nokia.icd_u&lt;br /&gt;
&lt;br /&gt;
# Selecting and establishing connection takes time&lt;br /&gt;
sleep 2&lt;br /&gt;
&lt;br /&gt;
# Verbose mode. You can remove it when you&#039;re using widget to activate this script&lt;br /&gt;
&lt;br /&gt;
set -x&lt;br /&gt;
&lt;br /&gt;
IP_ADDR=&amp;quot;192.168.3.1&amp;quot;&lt;br /&gt;
NETMASK=&amp;quot;255.255.255.0&amp;quot;&lt;br /&gt;
DHCP_RANGE=&amp;quot;192.168.3.60,192.168.3.70&amp;quot;&lt;br /&gt;
RUNFILE=&amp;quot;/var/run/btpan_tethering.pid&amp;quot;&lt;br /&gt;
DNSMASQ=&amp;quot;/usr/sbin/dnsmasq&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Load modules&lt;br /&gt;
modprobe ipt_MASQUERADE&lt;br /&gt;
&lt;br /&gt;
# flush old rules&lt;br /&gt;
iptables -F&lt;br /&gt;
iptables -t nat -F&lt;br /&gt;
&lt;br /&gt;
iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE&lt;br /&gt;
&lt;br /&gt;
# forward IPs&lt;br /&gt;
echo 1 &amp;gt; /proc/sys/net/ipv4/ip_forward&lt;br /&gt;
&lt;br /&gt;
# Setup bnep0&lt;br /&gt;
ifconfig bnep0 down&lt;br /&gt;
ifconfig bnep0 up&lt;br /&gt;
ifconfig bnep0 $IP_ADDR netmask $NETMASK up&lt;br /&gt;
&lt;br /&gt;
# Setup DNS and DHCP&lt;br /&gt;
start-stop-daemon -S -p $RUNFILE -m -b -x $DNSMASQ -- -k -I lo -z -a $IP_ADDR -F $DHCP_RANGE -b&lt;br /&gt;
&lt;br /&gt;
run-standalone.sh dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:&#039;Bluetooth PAN Activated&#039;&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
Press :W to savefile and :q to quit&lt;br /&gt;
&lt;br /&gt;
then set &#039;&#039;/etc/udev/bluenet.sh&#039;&#039; as executible:&lt;br /&gt;
 chmod +x /etc/udev/bluenet.sh&lt;br /&gt;
&lt;br /&gt;
then cd /etc/udev/rules.d/ &lt;br /&gt;
command vi 98-bnep0.rules and press R&lt;br /&gt;
&lt;br /&gt;
/etc/udev/rules.d/98-bnep0.rules copy that txt and paste it Save :W quit vi editor :q :&lt;br /&gt;
 ACTION==&amp;quot;add&amp;quot;, SUBSYSTEM==&amp;quot;net&amp;quot;,  KERNEL==&amp;quot;bnep0&amp;quot;, RUN+=&amp;quot;/etc/udev/bluenet.sh&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It is possible to use PAN to share Internet connections via PAN between two Nokia devices. However, on older devices it is recommended to use [[Bluetooth DUN]] (dial-up networking), since this is the normal method which smartphones use to share Internet access over Bluetooth.&lt;br /&gt;
&lt;br /&gt;
[[Category:Bluetooth]]&lt;br /&gt;
[[Category:Connectivity]]&lt;br /&gt;
[[Category:Power users]]&lt;/div&gt;</summary>
		<author><name>77.7.171.177</name></author>
	</entry>
</feed>