Active Topics

 



Notices


Reply
Thread Tools
laasonen's Avatar
Posts: 565 | Thanked: 618 times | Joined on Jun 2010 @ Finland
#141
Originally Posted by Estel View Post
It would be great, cause this way static DHCP service (i.e. port forwarding, etc) can work as it should. Other way, You must re-define open ports (for torrent client on N900, as example from top of my head) every time You disable/enable Your wifi on N900.

Anyway, if i set IP address manually, I'm connected without any problems using selector applet. With DHCP, it doesn't work. I'm most confused...
I'll try with dynamic IP. I usually use just static addresses, except of course on public networks.
__________________
Couple of my applications:
ConnLock - Advanced phone lock
Sanakirja.org - A Sanakirja.org dictionary client
Wlan Driver Selector Applet - Switch easily between stock and bleeding edge drivers
 
AgogData's Avatar
Posts: 870 | Thanked: 133 times | Joined on Aug 2010
#142
I just updated, and i think whats need to be added is to cancel the opening of the available networks, is there any need to open a wireless connection when the driver is loaded ?
 
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#143
First, initial connection after reboot i done automatically using my regular N900 mac, so static DHCP give correct IP to known MAC. I'm starting to wonder if even maemo, after disabling and enabling auto through DHCP, uses other mac? May it be that saving MAc and keeping it constant will fix this hilarious problems?

// Edit

Checked - maemo keep MAC after switching IP obtaining method, but IF selector applet changed MAC before, only static IP will work, and router deny to give new IP through DHCP. Now I'm restarting router (to clear DHCP lease table) - if after that everything works again, we've solved problem.

@ AgogData

Because people asked for that feature - most of us want to connect to network when enable WiFi. for that rare cases, where you don't You can just cancel - much easier that opening connection window every other time. This is also way wifi-switcher worked.
 
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#144
[Solved]!!!

After router reboot, DHCP leases we're cleared and everything work like charm again. I bet my left shoe, that this is exact same case as with pierrem - because MAC change every time we load/unload WiFi drivers via selector applet, router DHCP lease table get filled with useless leased IPs. When lease table reach set max, no other IP is leased until oldest entry lease time expire - that's why negotiating IP via DHCP fail.

Normally You can set DHCP pool in router settings - for regular users it is 100-200 numbers and lease time no longer than 24 hours, so not everyone is affected by this problem (ho ever, spamming with reloading drivers 100-200 times isn't so hard, and if IP lease time is like said 24 hours, You can accidentaly perform DHCP DoS attack on your own AP )

Some people, for security or other reasons (like me) set DHCP pool quite low - i use mostly static DHCP (for my N900, notebooks, etc - working port forwarding on my home, still having possibility to connect to open networks without changing settings) or static IP (for desktops), so i keep DHCP pool to be only 20 entries long, for guest and friends when they come to my place and connect. In such a case, switching MAC spam DHCP entry table quite fast.

I wonder if wifi-switcher saved MAC - that would explain why connecting via wifi-switcher worked for pierrem.

Anyway, keeping MAC constant will fix that issue, once for all... I think it's time to get some sleep, its 3:30 here
 

The Following 2 Users Say Thank You to Estel For This Useful Post:
laasonen's Avatar
Posts: 565 | Thanked: 618 times | Joined on Jun 2010 @ Finland
#145
Originally Posted by Estel View Post
[Solved]!!!

After router reboot, DHCP leases we're cleared and everything work like charm again. I bet my left shoe, that this is exact same case as with pierrem - because MAC change every time we load/unload WiFi drivers via selector applet, router DHCP lease table get filled with useless leased IPs. When lease table reach set max, no other IP is leased until oldest entry lease time expire - that's why negotiating IP via DHCP fail.

Normally You can set DHCP pool in router settings - for regular users it is 100-200 numbers and lease time no longer than 24 hours, so not everyone is affected by this problem (ho ever, spamming with reloading drivers 100-200 times isn't so hard, and if IP lease time is like said 24 hours, You can accidentaly perform DHCP DoS attack on your own AP )

Some people, for security or other reasons (like me) set DHCP pool quite low - i use mostly static DHCP (for my N900, notebooks, etc - working port forwarding on my home, still having possibility to connect to open networks without changing settings) or static IP (for desktops), so i keep DHCP pool to be only 20 entries long, for guest and friends when they come to my place and connect. In such a case, switching MAC spam DHCP entry table quite fast.

I wonder if wifi-switcher saved MAC - that would explain why connecting via wifi-switcher worked for pierrem.

Anyway, keeping MAC constant will fix that issue, once for all... I think it's time to get some sleep, its 3:30 here
Thanks for this

New scripts I made are in here. I'm probably going to upload them to extras tomorrow (today) after some extra testing, 05:29 here I'm going get some sleep also
__________________
Couple of my applications:
ConnLock - Advanced phone lock
Sanakirja.org - A Sanakirja.org dictionary client
Wlan Driver Selector Applet - Switch easily between stock and bleeding edge drivers
 

The Following 5 Users Say Thank You to laasonen For This Useful Post:
casketizer's Avatar
Posts: 566 | Thanked: 282 times | Joined on Sep 2010 @ Lower Saxony
#146
Laasonen, Thanks again for implementing my ideas. This is one reason why I love N900 and its community here!

Regarding the dhcp issue: frequent mac changes might also trigger intrusion detection on some routers. I use static IPs on my own networks anyway.
 

The Following 2 Users Say Thank You to casketizer For This Useful Post:
Posts: 107 | Thanked: 173 times | Joined on Feb 2011
#147
Originally Posted by laasonen View Post
Thanks for this

New scripts I made are in here. I'm probably going to upload them to extras tomorrow (today) after some extra testing, 05:29 here I'm going get some sleep also
@Estel: nice catch ! my dhcp server is also configured for very few slots

@laasonen: the test scripts work fine here.

Thank you both for your fast reaction to solve this issue
 

The Following 2 Users Say Thank You to pierrem For This Useful Post:
laasonen's Avatar
Posts: 565 | Thanked: 618 times | Joined on Jun 2010 @ Finland
#148
I was too busy yesterday to do anything for this, but I did today more testing and made couple more changes to the loading process. It now restarts the osso-wlan also. This causes that you can only switch drivers like 8 times in short time, because after that the start-stop-daemon tool starts whining about the daemon spawning too fast. I'm not absolute sure, if this is needed, I'll maybe remove this in next version, but it shouldn't cause trouble, if you are not testing.

New version is now on the autobuilder queue
__________________
Couple of my applications:
ConnLock - Advanced phone lock
Sanakirja.org - A Sanakirja.org dictionary client
Wlan Driver Selector Applet - Switch easily between stock and bleeding edge drivers

Last edited by laasonen; 2011-06-20 at 09:54.
 

The Following 3 Users Say Thank You to laasonen For This Useful Post:
Posts: 1,729 | Thanked: 388 times | Joined on Jan 2010 @ Canada
#149
is a custom wifi driver can be selected? im using aircrack to illegaly hack my home wifi

apologies if this was alredy mentioned and for my slothness for reading and searching >_<
__________________
if i did help you, just click "Thanks" on the lower right of my post. thanks!

"The best way to break a Spell is to prevent it from being cast in the first place"

N900: 1000/1150mhz; sampling_rate 15; up_threshold 150000;
 
Posts: 1,729 | Thanked: 388 times | Joined on Jan 2010 @ Canada
#150
Originally Posted by gabby131 View Post
is a custom wifi driver can be selected? im using aircrack to illegaly hack my home wifi

apologies if this was alredy mentioned and for my slothness for reading and searching >_<
i am such a noob.......thanks, i found my answer!
__________________
if i did help you, just click "Thanks" on the lower right of my post. thanks!

"The best way to break a Spell is to prevent it from being cast in the first place"

N900: 1000/1150mhz; sampling_rate 15; up_threshold 150000;
 

The Following User Says Thank You to gabby131 For This Useful Post:
Reply

Tags
announce, applet, bleeding edge, driver, monitor, not4noobs


 
Forum Jump


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