Active Topics

 


Reply
Thread Tools
Posts: 250 | Thanked: 300 times | Joined on Sep 2007
#1
Is there a script that will maintain an active ad-hoc connection while I initiate a bluetooth DUN link to my phone?

Gameplan-

a) create an ad-hoc connection for n800 and 770 (or laptop) with static IPs

ON N800:
b) connect bluetooth DUN from n800 to phone

c) echo 1 > /proc/sys/net/ipv4/ip_forward

d) route add default gw <nokia.n800.ip.address> dev <nokia.770.ip.address>

Goal-

Use my unlimited data plan with my n800 and then share it with my 770 through an ad-hoc wlan link.

Thanks!!!

Originally Posted by twaelti View Post
I was partially able to resolve my problems, however I never got it completely running (was on holiday there, didn't want to spend ALL my time with the gadgets...) on my N810. I'm posting my first steps to the solution, perhaps it might help someone else or a linux crack can chime in and explain:
The Hotel uses IACbox (rebranded as Siemens Internet for Guests), which is a Linux-based access control system. The IACbox support FAQ mentions that some Linux distros (evidently Maemo being one of them) are unable to "set a hostroute if multiple network cards are in use" (???). In then points out that to resolve this, one needs to act as "root" (gainroot, becomeroot, sudo whatever, I did ssh to localhost...) and then add an additional route/gw (172.30.3.254/32).
I took these instructions and "translated" them to Maemo, resulting in something like:
Code:
route add default wlan0
route add -net 172.30.3.254 netmask 255.255.255.255 wlan0
route add default gw 172.30.3.254
After this, I was able to finally access the login page of the system and authenticate myself (each Guest gets a user/pw that is valid for the duration of his stay).
Unfortunately, I was still only able to access the unprotected "free" sites, as something with the redirection didn't seem to work (I got some "out of memory / not enough memory for this operation to complete" errors from MicroB, perhaps a javascript issue).

My questions:
  • Why are many distros unable to do this? (Rant: Is Linux still not ready for the desktop and mobile environments? OSX and Windows do work properly...)
  • Shall I file this on the Maemo Bugzilla?
  • Anybody with an idea about the error in MicroB?
__________________

Last edited by dkwatts; 2009-09-21 at 17:54.
 
Posts: 250 | Thanked: 300 times | Joined on Sep 2007
#2
A script to connect to adhoc while maintaining BT DUN would work as well.
__________________
 
Posts: 250 | Thanked: 300 times | Joined on Sep 2007
#3
MISSION ACCOMPLISHED?

a1. Install wireless tools on the tablet <tablet #1> that will connect to the phone

a2. Configure an ad-hoc WiFi connection on <tablet #1> & <tablet #2>:

Settings -> Control Panel -> Connectivity -> Connections -> New
Click <Next>
Connection name: <youradhocname>
Connection type: WLAN
Click <Next>
Click <No> when prompted to scan for networks.
Network name: <yourssid>
Network is hidden: <disable>
Network mode: <Ad hoc>
Security method: <None>
Click <Next>
Click <Advanced>
Select the <IP Addresses> tab
Auto-retrieve IP address: <disable>
Leave other settings with their default values
Click <OK>
Click <Finish>
a3. On <tablet #1>, initiate WIFI connection to <youradhocname>

a4. Settings -> Connection manager -> Internet Connection -> IP Address. Note the <tablet#1ipaddress>
Click<OK>

b1. Initiate bluetooth DUN connection between <tablet #1> & phone

b2. Utilities -> Xterm. As root in xterm, type
ifconfig wlan0 down
ifconfig wlan0 <tablet#1ipaddress>
iwconfig wlan0 mode ad-hoc
iwconfig wlan0 essid <yourssid>
iwconfig wlan0 channel 1
ifconfig wlan0 up
b3. From tablet #2, initiate WiFi connection to <youradhocname>
__________________

Last edited by dkwatts; 2009-08-18 at 23:07.
 
Reply

Tags
ad-hoc, dun, share internet connection


 
Forum Jump


All times are GMT. The time now is 16:04.