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

Exclude encrypted/wan interfaces in OWM info #39

Merged
merged 2 commits into from Feb 1, 2015
Merged

Exclude encrypted/wan interfaces in OWM info #39

merged 2 commits into from Feb 1, 2015

Conversation

sarumpaet
Copy link
Contributor

See freifunk-berlin/firmware#206 .

This patch is intended to prevent owm.lua from pushing information about a) private encrypted wifi networks and b) the local WAN port configuration to the public.

Ultimatively, I think there should be a user-configurable whitelist instead of a blacklist, and some "show me what information gets published beforehand" functionality, but this is way too much effort with libremap coming.

@@ -344,6 +351,10 @@ function get()
if 'lo' == vif.ifname then
return
end
if 'br-wan' == vif.ifname then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think vif.name should be checked against wan and wan6 here.

@andrenarchy
Copy link
Member

Thanks for the PR! The encryption check looks good. Can you update the PR with an adapted wan check?

wan contains info about the node owner's private network
or possibly even info about the ISP (for direct connections
to a cable/DSL modem).
@sarumpaet
Copy link
Contributor Author

Thanks. There. :)

@andrenarchy
Copy link
Member

Works nicely on my router.

andrenarchy added a commit that referenced this pull request Feb 1, 2015
Exclude encrypted/wan interfaces in OWM info
@andrenarchy andrenarchy merged commit e78d410 into freifunk-berlin:master Feb 1, 2015
@andrenarchy
Copy link
Member

Thx for your contribution!

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