Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wifi MAC white list #192

Open
misisnik opened this issue Nov 10, 2017 · 3 comments
Open

Wifi MAC white list #192

misisnik opened this issue Nov 10, 2017 · 3 comments

Comments

@misisnik
Copy link

misisnik commented Nov 10, 2017

Is possible to define white list of Wifi APs which has to be included into the learning??
Because many of our APs in off the office are just some mobiles etc.. which are not alive all the time so we need to eliminate this MAC addresses.

I can eddit *.rf.json file (delete mac which are not stable) is it OK ?
Thanks Mike

@schollz
Copy link
Owner

schollz commented Nov 13, 2017

Yes, you can do that. Make a JSON of the mac to filter, like

{
"ab:cd:ef":true,
"ab:cd:eg":true
}

and then run the FIND server with the -filter whitelist.json.

@misisnik
Copy link
Author

misisnik commented Nov 15, 2017

Thank you, but how can I know that is working fine. When I have clicked on "Update" button in administration, it will generate me the group file (grid_4.rf.json), which contains all MAC address as before. Also the same in new group.

I using Docker and i put the white list into the /tmp forlder just for shure.
Also I have changed supervisord.conf where i put -filter into the command

command=/usr/local/work/src/github.com/schollz/find/find -rf 5009 -mqtt localhost:1883 -mqttadmin admin -mqttadminpass 123 -mosquitto pgrep mosquitto -data /data -filter /tmp/whitelist.json

my whitelist.json
{
"e4:8d:8c":true,
"d4:ca:6d":true,
"cc:2d:e0":true,
"6c:3b:6b":true,
"64:d1:54":true,
"4c:5e:0c":true,
"00:0c:42":true
}

@misisnik
Copy link
Author

misisnik commented Nov 24, 2017

So fingerprint.go => func filterFingerprint why is there
newFingerprint[curNum].Mac = newFingerprint[curNum].Mac[0:len(newFingerprint[curNum].Mac)-1] + "0"

I need to filter mac "e4:8d:8c:f1:fa:76" but this line makes it to "e4:8d:8c:f1:fa:70". So I have removed this line and filtration working fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants