Scrape the MAC table from HP ProCurve switch and alert if a untrusted MAC is found.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Hendrik Schutter 62445b426a
fix systemd service file work dir
4 weeks ago
scripts fix systemd service file work dir 4 weeks ago
.gitignore Initial commit 4 weeks ago
LICENSE Initial commit 4 weeks ago
README.md first working version 4 weeks ago
config.py first working version 4 weeks ago
mac_watcher.py first working version 4 weeks ago

README.md

mac_watcher

Scrape the MAC table from HP ProCurve switch and altert if a untrusted MAC is found.

Overview

Scrape all known MAC addresses via snmp from a HP ProCurve switch. If a reported MAC is not i a white list, a alert is sent via email.

Install

  • pip install mac-vendor-lookup
  • cd /opt/
  • git clone https://git.mosad.xyz/localhorst/mac_watcher.git
  • cd /opt/mac_watcher/
  • Set the constants in config.py
  • chmod +x /opt/mac_watcher/mac_watcher.py
  • cp scripts/mac-watcher.service /etc/systemd/system/mac-watcher.service
  • systemctl daemon-reload && systemctl enable --now mac-watcher.service

Du besuchst diese Seite mit einem veralteten IPv4-Internetzugang. Möglicherweise treten in Zukunft Probleme mit der Erreichbarkeit und Performance auf. Bitte frage deinen Internetanbieter oder Netzwerkadministrator nach IPv6-Unterstützung.
You are visiting this site with an outdated IPv4 internet access. You may experience problems with accessibility and performance in the future. Please ask your ISP or network administrator for IPv6 support.
Weitere Infos | More Information
Klicke zum schließen | Click to close