A simple python script that scans and adds selected devices in your network to the Vianet (raisecom variant) router's mac blocklist.
Python libraries: BeautifulSoup, requests
Other programs: arp-scan
To install the python libraries, use:
pip3 install bs4 requestsIf arp-scan is not installed, use:
Ubuntu/Debian:
sudo apt-get install arp-scanArchlinux:
sudo pacman -S arp-scanJust run the python script macblock.py.
If you haven't changed the router management page login credentials, the script will use the default login credentials.
If you have changed the login credentials change the username and psd in line 9 to match yours.
TODO: Add code to unblock blocked mac addresses