grml-btnets - program to setup a bluetooth network access point (NAP)
grml-btnets [OPTIONS] <ACTION>
grml-btnets is a program that provides an easy wrapper around all the programms to create a ready to run network access point for bluetooth and additionally setup internet forwarding. If no pin is given for the bluetooth network, a random pin will be choosen.
Start the network access point
Stop the network access point
Show the help message.
Show summary of options.
Show what is going on (more v => more out).
-s [subnet] (default=192.168.10.0/24)
The subnet for the bluetooth clients. There should be at least 8 IPs in this subnet (/28).
-i [interface] (default=eth0)
Enable IP-Forwarding for this interface, so that the bluetooth-network could, for example, connect to the internet. The nameservers come from your /etc/resolv.conf, so be aware to configure this before you run grml-btnets. Grml-btnets does not touch the ip_forward and iptables config without this option! Do not use this option if you already have a working internet gateway on your box. Grml-btnets assumes that the chain policy of forward is on accept. If this is not the case please let packages from interface grmlbtnet pass.
The bluetooth pin. If no or an empty pin is given, a random one will be choosen and printed to stdout.
grml-btnets -p 1234 start
This creates a simple bluetooth access point (NAP) with default values. The subnet for the bluetooth network is 192.168.10.0/24. There will be no masquerading.
Stops the NAP created with the command above.
grml-btnets -s 192.168.1.0 -i ppp0 start
This creates a NAP and the bluetooth clients get IPs within 192.168.1.0/24. This also creates masquerading out of ppp0 to let bluetooth clients onto the internet.
grml-btnets -i ppp0 stop
This command stops the NAP created with the commando above.