Posted: Tue Oct 31, 2006 3:57 Post subject: How to scan for ANY OPEN WIFI? [SOLVED] - AutoAP
ORIGINAL GOAL:
To create a script that would have intelligence and run in a loop inside dd-wrt and continuously scan for open wifi connections, test them for validity, and connect to the strongest signal... If the connection is lost, the device will scan again and find the strongest valid signal again, maintaining a continuous connection to the internet in a mobile or portable environment... Certain mac addresses and ssid's need to be capable of being excluded.....
-----------------------------------------------------------------------------------------------------------------------------
THIS HAS BEEN ACCOMPLISHED!!! and it is actually very simple to implement for users on all levels...
If you are just finding this thread, you will be glad to hear that this has been accomplished by a custom firmware developed by JohnnyPrimus, which utilizes V23_SP2_NOKAID_GENERIC and has a script embedded in it that is a pure stroke of genius by JohnnyPrimus.....
The complete downloads of the custom firmware and the tutorial on how to make it work, along with a configuration file already set to drop in and plug and play, are on page 6 of this thread...
Last edited by Cool Dude on Thu Nov 16, 2006 2:07; edited 4 times in total
Posted: Tue Oct 31, 2006 17:31 Post subject: How to scan for any open Wi-Fi.
Spent a bit of time bug fixing tonight, the latest version should not only alleviate all bugs mentioned so far, but should also show you a lot more than you've been seeing. I tested this moving around my apt. complex and it worked quite well.
To run the script, just log in via ssh and type 'autoap'. It'll work a lot better than it has previous runs. The only output you'll see on the screen is the open networks found. To view the full log output, point your web browser at http://10.0.0.1/autoap.html (replacing 10.0.0.1 with your own routers IP...obviously). The log will auto refresh every five seconds.
The script will no longer disconnect or start a new scan if the current SSID is functioning well. This will save from frequent disconnects.
:arrow:To have this launch at boot and continue running, just add '/bin/autoap' to your rc_startup.
Joined: 06 Jun 2006 Posts: 7528 Location: Dresden, Germany
Posted: Wed Nov 01, 2006 3:12 Post subject: Re: How to scan for ANY OPEN WIFI?
Chuck D wrote:
Does anyone know how I can make dd-wrt scan for multiple ssid's, such as NETGEAR, linksys, ACTIONTEC, default, etc... and connect to the strongest signal? Or how do I make it scan for ANY "open" wifi and connect to it?
The WGA54G game adapter does this, and I am sure it can be done with a script in dd-wrt, but I have alot of reading to do to be able to pull that off... The WGA54G will switch access points on you and there is no way to disable that feature.. It can be problematic, but I can see positive uses for the feature also, BIG TIME!! The WGA54G is the weakest piece of junk I have ever tested though, and there is no external antenna connector.. But I do find the fact that it scans for open wifi and auto-connects very intruiging and I am on a quest to get the same function out of dd-wrt....
I was hoping one of you could point me in the right direction...
will let you do this (in client mode for sure) _________________ "So you tried to use the computer and it started smoking? Sounds like a Mac to me.." - Louis Rossmann https://www.youtube.com/watch?v=eL_5YDRWqGE&t=60s
I'd assume he meant leave the SSID blank, and it will auto connect to the nearest available, open, strong signal.
Chuck D: I certainly didn't mean any offense, forgive me for assuming the worst, I guess I've fielded too many questions regarding pirating internet. As such, I didn't even read your question carefully enough to give you the answer you sought. Sorry.
Last edited by JohnnyPrimus on Wed Nov 01, 2006 6:31; edited 1 time in total
that should display info, including rssi, for all non-wep open APs. It's currently a bit flakey (doesn't always return what's expected. occasionally it will return full scan results, even though we just scanned a single BSSID), I haven't yet figured out why this is happening. If I can get it to play nicely, and be stable, then it will be easy to return the ssid of the strongest open signal. After that its just a matter of associating with that AP via 'wl'.
Can anyone with experience scripting wl tell me why this isn't working as expected?
Ok Excuse my extreme noobness but this FASCINATES me
I want to make sure I understand this properly. What your wanting to do is REVERSE the wifi on the router. instead of the router feeding its wired internet to users over wifi you want to DERIVE that internet INBOUND from the wireless ?? like conecting one router to another ?
I assume if you also want local lan wifi this means 2 routers ? (do I have my ideas straight so far ?)
OK this fascinates me because we do a lot of camping. I want to BUY wifi access (yearly its not too bad) since it works at most of the campgrounds we use.
My idea is this. the wifi is restricted to one mac address I want that mac address to be a router. that router would be visible to the paid wifi service. I link that router to another router that is configured normally.
Now I can jack in as many machines as I want into the normal router as usually and get the the internet that the 1st router is connected to.
DO I have that right ? That would be awesome! I plan to build at least 2 computers into the camper and 2 sometimes 3 of us have laptops - I plan to network everything anyway for multiplayer and content streaming. being able to access the internet on any of the machines would be REALLY nice :-) I could even see mounting a tablet computer (old fijitsu 233mhz) by the door with live satellite radar and weather info etc.
chuck: do you have an sd card? or a writable jffs dir? if so i can definitely bang out a solution for you. been busy lately, ill look into scripting this for stock firmware as well. (jffs or mmc would enable you to grab microperl, which would make this a breeze)
i have pulled wholeflash,cfe,nvram and kernel off of the V2 and V3 of these and would like to make them available to download ... with out registering ... and would like to make a link to them in the Wiki under the WR850G debricking. _________________ WRT54G,GS v1.1, V2, V3 V4, V5
WR850G V2, V3
Fonera 2100
so can my WRT54GS V4 DD-WRT v23 SP2 see other WiFi AP or Client on the area?
I know WiFi PCI card client can does this.....but WiFi AP?
In the DD-WRT menu no options else for this......