PDA

View Full Version : [Solved]\ Networking problem - bluetooth PAN & MobileHotspot


karatestarfish
03-14-2011, 02:51 AM
Hi all,

I tried to use tethering recently, through both MobileHotspot and bluetooth PAN, but I'm having some issues with the networking settings. Previously it worked fine, but I haven't tried since PR1.1 and I'm now using PR1.3, so there's been a fair few software/OS updates since I last tried.

Basically, I can connect a network between PC and phone through either ad-hoc WLAN or bluetooth PAN, but as soon as I connect my GPRS connection as well, the phone becomes unreachable from the PC.

It goes something like this:

I connect the PC-phone network (either bluetooth or start MobileHotspot) with manual IP assigned at both ends, and PC gateway/DNS set to phone
PC & phone are connected, GPRS is not yet connected
I can ping and ssh from phone to PC, and from PC to phone
I then connect to GPRS connection
Phone can ping PC, but PC cannot ping phone.


I've tried echo 1 > /proc/sys/net/ip_forward, but it makes no difference. Are there any other network settings that might have this effect?

I'm using power-kernel 2.6.28-maemo46.

9000
03-14-2011, 03:57 AM
I cannot help you with the mobilehotspot as I use a customized script to establish WiFi hotspot.

Regarding PAN, what script/package do you use to establish the connection? Can you show me if you're using a script?

karatestarfish
03-14-2011, 05:19 AM
I cannot help you with the mobilehotspot as I use a customized script to establish WiFi hotspot.

Regarding PAN, what script/package do you use to establish the connection? Can you show me if you're using a script?
Ah, damn. I knew I should have waited another day before posting. Bluetooth networking is properly working now, which is enough for me for today.

When I connect to GPRS, it runs /etc/network/if-up.d/00_disable_icmp_echo_reply, which I assume accounts for the lack of ping response from the phone.

The remaining problems were a misconfiguration in the networking on the PC side of the connection, and a misconfiguration in the polipo proxy I was using on the phone. I'm sure there's a way to tether with my current setup without using a phone-side proxy - I'll keep looking into it.

Thanks for your offer to help =)