LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

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

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


Hello,
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 - 192.168.0.164 (connected to router which is 192.168.0.1)
bnep0 - 192.168.1.1
PDA: bnep0 - 192.168.1.2.

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
address 192.168.1.1
netmask 255.255.255.0
network 192.168.1.0
PDA: iface bnep0 inet static
address 192.168.1.2
netmask 255.255.255.0
network 192.168.1.0
gateway 192.168.1.1
I have enabled IP forwarding and masquerade:
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -s 192.168.1.2 -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 192.168.0.164 [laptop's eth0] but not 192.168.0.1 [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
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,539

Rep: Reputation: 149Reputation: 149
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
kuni
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!
 
  


Reply


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


All times are GMT -5. The time now is 08:15 AM.

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