From: David Sainty <David.Sainty@dtsp.co.nz>
To: linux bluetooth mailinglist <linux-bluetooth@vger.kernel.org>,
madduck@madduck.net
Subject: Re: How to replace DUN with bluez 4?
Date: Mon, 20 Jul 2009 18:45:14 +1200 [thread overview]
Message-ID: <4A64127A.5070901@dtsp.co.nz> (raw)
In-Reply-To: <20090720052314.GA10357@piper.oerlikon.madduck.net>
martin f krafft wrote:
> also sprach Luiz Augusto von Dentz <luiz.dentz@gmail.com> [2009.07.19.2020 +0200]:
>
>> Have you tried this:
>> https://help.ubuntu.com/community/BluetoothDialup#Configuring%20PPP
>>
>
> It's the wrong way around: I don't want to connect my computer via
> the phone, I want to give my Palm access to the Net via my computer.
>
I use this (Palm T3). It's a bit of a hack, and relies on proxyarp,
which means it doesn't work if your computer is using a second PPP link
itself for networking (or OpenVPN). NAT would be cleaner. It also
(enormous hack) guesses an IP address for the Palm by XORing the
machine's own IP by 0.0.0.64.
#!/bin/sh
: ${rfdevice:=rfcomm0}
iface=`netstat -rn|sed -n -e 's/^0\.0\.0\.0 .*
\([a-z][a-z]*[0-9][0-9]*\)$/\1/p'`
set -- x `ifconfig $iface | sed -n -e 's/^ *inet
addr:\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)\.\([0-9][0-9]*\) .*$/\1
\2/p'`
localIP="${2}.${3}"
bluetoothIP="${2}.$((${3}^64))"
dns=`sed -n -e 's/^nameserver *\([0-9][0-9.]*\)[^0-9]*$/ms-dns \1/p' <
/etc/resolv.conf`
sysctl -w net.ipv4.ip_forward=1
sdptool add --channel=1 SP
rfcomm --encrypt watch "$rfdevice" 1 pppd '{}'
"${localIP}:${bluetoothIP}" local nodetach noauth proxyarp $dns
> Right, but they are Linux Desktop. dund worked on non-desktops.
>
> It's scary to see this desktop trend. It's like Windows NT 4.0, and
> the Windows-typical need to log in to be able to start a firewall or
> fileserver.
>
>
It does seem like an omission.
next prev parent reply other threads:[~2009-07-20 6:45 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-18 5:54 How to replace DUN with bluez 4? martin f krafft
2009-07-19 17:36 ` Luiz Augusto von Dentz
2009-07-19 17:57 ` martin f krafft
2009-07-19 18:20 ` Luiz Augusto von Dentz
2009-07-20 5:23 ` martin f krafft
2009-07-20 6:17 ` Hibiki Kanzaki
2009-07-20 6:45 ` David Sainty [this message]
2009-07-20 11:19 ` Luiz Augusto von Dentz
2009-07-20 11:33 ` martin f krafft
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=4A64127A.5070901@dtsp.co.nz \
--to=david.sainty@dtsp.co.nz \
--cc=linux-bluetooth@vger.kernel.org \
--cc=madduck@madduck.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