From: Philip Barnes <phil@trig222.f9.co.uk>
To: BlueZ Mailing List <bluez-users@lists.sourceforge.net>
Subject: [Bluez-users] Securing my bluetooth connection
Date: Sun, 16 Jan 2005 18:22:01 +0000 [thread overview]
Message-ID: <1105899721.5669.12.camel@localhost.localdomain> (raw)
Hi
I have set up my bluetooth connection on Fedora core 3 so that I can
connect my Palm Pilot. I just needed to add the sdpd line to rc.local
after moving from core 2.
My configuration is below.
A couple of questions
How do I configure it so that only my palm pilot can connect, I have
tried putting my mac address into rfcomm.conf, but I can still connect
when I set it wrong.
How do I make the PC not discoverable, I know the chances of being
scanned by someone standing on the pavement outside is not as likely as
being bluejacked in Tescos or the pub, but it could happen.
Thanks Phil
rc.local --
#
# Start configuration of Bluetooth network
/usr/sbin/hciconfig hci0 up
/usr/sbin/hcid
/usr/sbin/sdpd
/sbin/modprobe rfcomm
dund --listen --msdun 10.2.0.1:10.2.0.10
echo '1' > /proc/sys/net/ipv4/ip_forward
/sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
/sbin/iptables -A FORWARD -i ppp0 -j ACCEPT
/sbin/iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
rfcomm.conf --
rfcomm0 {
# Automatically bind the device at startup
bind no;
# Bluetooth address of the device
device 00:07:E0:xx:xx:xx;
# RFCOMM channel for the connection
channel 1;
# Description of the connection
comment "Slartibartfast";
}
hcid.conf --
# Default settings for HCI devices
device {
# Local device name
# %d - device id
# %h - host name
name "fordprefect";
# Local device class
class 0x120104;
# Default packet type
#pkt_type DH1,DM1,HV1;
# Inquiry and Page scan
iscan enable; pscan enable;
# Default link mode
# none - no specific policy
# accept - always accept incoming connections
# master - become master on incoming connections,
# deny role switch on outgoing connections
#
#lm accept,master;
#
lm accept;
# Default link policy
# none - no specific policy
# rswitch - allow role switch
# hold - allow hold mode
# sniff - allow sniff mode
# park - allow park mode
#
#lp hold,sniff;
#
lp rswitch,hold,sniff,park;
# Authentication and Encryption
#auth enable;
#encrypt enable;
}
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
next reply other threads:[~2005-01-16 18:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-16 18:22 Philip Barnes [this message]
2005-01-16 18:49 ` [Bluez-users] Securing my bluetooth connection Marcel Holtmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1105899721.5669.12.camel@localhost.localdomain \
--to=phil@trig222.f9.co.uk \
--cc=bluez-users@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox