Nekmo / amazon-dash

Hack your Amazon Dash to run what you want.
MIT License
826 stars 69 forks source link

Restrict to single interface #110

Closed ekkesa closed 2 years ago

ekkesa commented 5 years ago

Put an x into all the boxes [ ] relevant to your issue (like this: [x])

What is the purpose of your issue?

Description

Is it possible to restrict sniffing to a single interface? - E.g. only sniff on wlan0.

I believe this will free up a lot of CPU.

When starting up with defaults I see it puts eth0, wlan0 and lo into promiscuous mode.

Nekmo commented 5 years ago

Yes, you can use the interface option. It is not documented but the option exists.

(amazon-dash) [nekmo@homura ~/Workspace/amazon-dash] (develop)$ amazon-dash discovery --help
Welcome to Amazon-dash v1.3.1 using Python 3.6.6
Usage: amazon-dash discovery [OPTIONS]

  Discover Amazon Dash device on network.

Options:
  --interface TEXT  Network interface.
  --help            Show this message and exit.

It should also be available in the configuration file:

# amazon-dash.yml
# ---------------
settings:
  delay: 10
  interface: wlan0
mcgurdan commented 5 years ago

I don’t get the interface option and the config fails if added for me. Running amazon-dash version 1.3.1 python 2.7.9

Nekmo commented 5 years ago

Please paste the error and your configuration file. Thanks.

Nekmo commented 2 years ago

Closed due to inactivity.