Tutorial [HOW-TO] Have a homemade Streetpass Relay

What method you are using?

  • Linux

    Votes: 93 7.9%
  • Android

    Votes: 133 11.4%
  • Router

    Votes: 226 19.3%
  • Windows

    Votes: 426 36.4%
  • A pony with a wifi antenna O.o?

    Votes: 292 25.0%

  • Total voters
    1,170
Status
Not open for further replies.

retrogradesnowcone

Member
Newcomer
Joined
Aug 12, 2013
Messages
22
Trophies
0
Age
99
XP
42
Country
United States
i had to do a reset on my modem, and now i'm no longer getting passes. it's not detecting a nintendozone, though i can connect to the wifi (attwifi) manually without a problem

i can ssh in and it can dns stuff fine; /tmp/nzone.macs is filled, etc

any suggestions?
 

xanthux

Active Member
Newcomer
Joined
Sep 3, 2012
Messages
31
Trophies
0
XP
56
Country
United States
Will this work in a WRT54G2 v.1 with the latest stock firmware? Or do I really have to flash DD-WRT? The stock firmware has MAC cloning; I tried but didn't work.
 

Koldur

Virtual Boy Ambassador
Member
Joined
Feb 2, 2008
Messages
294
Trophies
1
XP
1,539
Country
Netherlands
Yeah, I don't want to mess around with it because it's not mine. I was hoping I could still use it with stock.


I understand that, but that doesn't change the fact that you need to install DD-WRT to get it working. 99 out of 100 times when you can clone MAC in stock firmware it means you can clone it on the WAN port only which is no use for StreetPass Relay. You need DD-WRT, no doubt about it.
 

dicamarques

Definitely not Bruce Wayne.
OP
Member
Joined
Jun 25, 2010
Messages
1,096
Trophies
1
Location
Your computer's Recycle Bin
Website
www.google.com
XP
1,934
Country
Portugal
home_zone is already executable (look the output of the ls -la | grep home_zone) and the sudo command is the one i give. with wlan1 since that's the name of the interface of the dongle.
I think I MIGHT know why its happening this but it's not plausible, can you tell the model of your wifi card?
 

duke_srg

Well-Known Member
Member
Joined
Mar 1, 2011
Messages
1,862
Trophies
0
Age
44
Location
Moscow
XP
807
Country
Serbia, Republic of
Can anyone please explain to me how to use this script? I used the code to put in administration commanes. However I don't understabd what to put in cron...

There was a mismatch in the manual, you should just paste script and push Run Commands, but NOT Save ... button.
 

Elnef

Member
Newcomer
Joined
Jul 30, 2010
Messages
21
Trophies
0
XP
69
Country
Once you have DD-WRT and your SSID set to "attwifi"; go to the Cron Job..I think it's under Administration and simply copy/paste this.

0-59/4 * * * * root ifconfig eth1 down && ifconfig eth1 hw ether 40:53:50:4F:4F:`/bin/cat /proc/interrupts | /usr/bin/md5sum | /usr/bin/cut -b 1``/bin/cat /proc/interrupts | /usr/bin/md5sum | /usr/bin/cut -b 1` && ifconfig eth1 up
2-59/4 * * * * root ifconfig eth1 down && ifconfig eth1 hw ether 4E:53:50:4F:4F:`/bin/cat /proc/interrupts | /usr/bin/md5sum | /usr/bin/cut -b 1``/bin/cat /proc/interrupts | /usr/bin/md5sum | /usr/bin/cut -b 1` && ifconfig eth1 up


With your code I have adapted it to OPENWRT. In web interface Luci, in System->Scheduled Tasks copy:
Code:
*/3 * * * * uci set wireless.@wifi-iface[0].macaddr='40:53:50:4f:4f:'`/bin/cat /proc/interrupts | /usr/bin/md5sum | /usr/bin/cut -b 1``/bin/cat /proc/interrupts | /usr/bin/md5sum | /usr/bin/cut -b 1` && uci commit && wifi

Press Submit.

After, in tab System->Startup press Restart in Cron service.

Then every 3 minutes it changes the mac and reset the wifi connection.
 
  • Like
Reactions: TheForce81

Koldur

Virtual Boy Ambassador
Member
Joined
Feb 2, 2008
Messages
294
Trophies
1
XP
1,539
Country
Netherlands
With your code I have adapted it to OPENWRT. In web interface Luci, in System->Scheduled Tasks copy:
Code:
*/3 * * * * uci set wireless.@wifi-iface[0].macaddr='40:53:50:4f:4f:'`/bin/cat /proc/interrupts | /usr/bin/md5sum | /usr/bin/cut -b 1``/bin/cat /proc/interrupts | /usr/bin/md5sum | /usr/bin/cut -b 1` && uci commit && wifi

Press Submit.

After, in tab System->Startup press Restart in Cron service.

Then every 3 minutes it changes the mac and reset the wifi connection.


Works like a charm! Thanks for the script, I used it like this though:

Code:
0-59/6 * * * * uci set wireless.@wifi-iface[2].macaddr='40:53:50:4f:4f:'`/bin/cat /proc/interrupts | /usr/bin/md5sum | /usr/bin/cut -b 1``/bin/cat /proc/interrupts | /usr/bin/md5sum | /usr/bin/cut -b 1` && uci commit && wifi
3-59/6 * * * * uci set wireless.@wifi-iface[2].macaddr='4E:53:50:4f:4f:'`/bin/cat /proc/interrupts | /usr/bin/md5sum | /usr/bin/cut -b 1``/bin/cat /proc/interrupts | /usr/bin/md5sum | /usr/bin/cut -b 1` && uci commit && wifi

My attwifi SSID is my third network, hence the [2] if your attwifi network is the first, use [0] if it is the second [1] and so forth. This way we get more StreetPasses on OpenWRT. I will go back using my alternative router though, don't really want my complete wifi to restart every 3 minutes. With my alternative router in action my main wifi works without interruptions and I still get my SPs. Better that way for me, but it is great to know we can use it with OpenWRT as well, very nice and so easy!
 

KamikiriTW

Member
Newcomer
Joined
Aug 16, 2013
Messages
10
Trophies
0
XP
81
Country
Taiwan
Please update your script, maybe you're using a bugged version with the increasing time between MAC changes.

After update to V3.3 script,
still doesn't get a lot of street pass,
only got 4 pass in last 24 hour,
but mac change is working fine,
maybe some mac number can't do street pass now?
 

duke_srg

Well-Known Member
Member
Joined
Mar 1, 2011
Messages
1,862
Trophies
0
Age
44
Location
Moscow
XP
807
Country
Serbia, Republic of
After update to V3.3 script,
still doesn't get a lot of street pass,
only got 4 pass in last 24 hour,
but mac change is working fine,
maybe some mac number can't do street pass now?
49,gbatemp,base 16 lists are enough to get full mii plaza streetpasses in one night for me. If you're using base256, maybe this is the problem. Just give it a time, you're not the only onw who are using this script, as soon it changes macs it should be fine now ;)
 

BerserkLeon

Not-so-new member
Member
Joined
Mar 22, 2010
Messages
460
Trophies
1
Age
34
Location
Pennsylvania
XP
538
Country
United States
it's a tp-link tl-wn823n

whilst getting a softap working with your card is possible, under linux you can't change the mac address due to the driver screwup with rtlwifi, and the 8192cu driver doesn't allow you to either.. although that at least allows you to use the net with it.
If you don't want to use windows you'll need another card. It looks like TP-Link has been going with realtek for most of their newer cards, so if you definitely want a working card, I'd get the TL-WN722N.. as it hasn't had any revisions since its first one. Ath9k does support mac changing and works under linux for hostapd.
I'd recommend the 822N, but even it's been changed to an rtl8192cu in its most recent revision.
(and the 723N is an rtl8188eu in its newest revision, which is why I'd go with the 722N.)

Also to be clear, I don't think you can receive intnernet with it while you're using it for hostapd, you'll need an ethernet cable plugged in, and either bridged or manually connected to your wlan interface (i.e.: follow http://learn.adafruit.com/setting-up-a-raspberry-pi-as-a-wifi-access-point/install-software or find one that mentions making a bridge between eth0 and wlan0... and ignore the part about replacing hostapd)
 

keyra

Spoderman self proclamed fan
Member
Joined
Dec 23, 2008
Messages
820
Trophies
0
XP
635
Country
France
49,gbatemp,base 16 lists are enough to get full mii plaza streetpasses in one night for me. If you're using base256, maybe this is the problem. Just give it a time, you're not the only onw who are using this script, as soon it changes macs it should be fine now ;)

i got something like 200 streetpass today, completed almost all puzzles
 
Status
Not open for further replies.

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    DinohScene @ DinohScene: ahh nothing beats a coffee disaronno at work