Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 05-19-2007, 05:54 AM   #1
LQ Newbie
Registered: May 2007
Posts: 2

Rep: Reputation: 0
can't share internet connection via bluetooth

I am trying to connect my iPAQ PDA (running Familiar linux) to internet through a laptop (Ubuntu Feisty). The connection via USB works fine (usb0 interfaces), but I am stuck on bluetooth, where the laptop won't forward IP packets from bnep0 interface through eth0 to the outside world.
Here is some info and what I did:
laptop: eth0 - (connected to router which is
bnep0 -
PDA: bnep0 -

I set the connection using pand:
laptop: pand --listen --role NAP --master -autozap
PDA : pand --connect 11:11:11:11:11:11 --service NAP --autozap
I tried various options for pand, none works.
I brought both interfaces up using these settings in /etc/network/interfaces:
laptop: iface bnep0 inet static
PDA: iface bnep0 inet static
I have enabled IP forwarding and masquerade:
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -s -j MASQUERADE

I can ping both devices with each other, but PDA's pinging won't get outside the laptop (in fact, I can ping [laptop's eth0] but not [router]).

I don't think that problem is in routing table, since the exact same setting works when pda connected through USB (usb0 interface).

It behaves like the laptop is not able to "convert" HCI packets to ethernet packets. But since I don't know anything about this topic I ask on this forum. Any help is appreciated. Thank you, kind regards Kuni
Old 05-19-2007, 06:03 PM   #2
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,575

Rep: Reputation: 181Reputation: 181
The iptables line is probably one of the longer iptables script you have. You may be dropping the packets comming from bnep0. Check if you have rules that base on the interface name, not source address. They may cause the problem you have.
Old 05-21-2007, 08:36 AM   #3
LQ Newbie
Registered: May 2007
Posts: 2

Original Poster
Rep: Reputation: 0
There are no other rules in the iptables; the default policy should be "allow all" so I it obviously isn't a problem of iptables. Thank you for your reply anyway!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
GPRS Internet Connection Via Bluetooth CrownAmbassador Linux - Hardware 3 01-18-2007 06:50 PM
Help on setting Internet Connection (Gprs via Bluetooth) ashfaq.s Linspire/Freespire 2 10-09-2006 09:31 AM
Installation of Bluetooth Dongle to enable GPRS internet connection leo_2005 Linux - Hardware 2 09-22-2006 08:34 AM
network/internet share over bluetooth 0pal_t0ad Linux - Wireless Networking 0 12-21-2004 07:29 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:40 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration