This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# DESCRIPTION: | |
# | |
# This script is meant to be run as a root cronjob. You can run it however frequently | |
# you desire - I run it every minute. It determines the number of streams, and cross | |
# references the usernames. If there are duplicate usernames, it checks if the IP | |
# addresses are different. If so, it generates IPTables rules that will drop packets | |
# from both IP addresses. | |
# |