Sniffing automatically happens on the interface with the default route
See original GitHub issue- amazon-dash version: 1.0.4
- Python version: 3.5.3
- Operating System: Debian Stretch 9.4
Description
Hi,
I just wanted to use amazon-dash and installed it on my homeserver, but during discovery I realised that something is not working as expected. The problem seems to be that sniffing happens on the interface with the default IPv4 route. Due to the fact that my homeserver is also my router, the interface with the default route is not the interface where my LAN is conencted. Therefore the sniff function does not see the Layer2 traffic from my LAN (and therefore not my Dash Button) but only all UDP Traffic from the VPN interface which contains my default route.
Due to the fact that it’s a Layer3 VPN amazon-dash discovery
shows IP Addresses instead of MAC addresses which proves my hypothesis.
When I delete my v4 default route and set the default gateway to something inside of my LAN, everything works as expected.
A possible solution could be to optionally set an interface name in the /etc/amazon-dash.yml
and pass this as an argument to scapy’s sniff() function? Haven’t read that much of scapy docu so I’m not sure if this is possible. But you will probably know scapy better.
Let my know if I can help you any more with debugging this problem.
Best regards, Felix
What I Did
$ pip3 install amazon-dash
$ python3 -m amazon_dash.install
$ amazon-dash discovery
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (4 by maintainers)
Interface is now available on develop branch:
Settings:
On discovery command:
Tell me if it works for you 😃
You’re welcome 😃