Here is a PHP script that tracks IPs in log files and executes shell commands per each IP. It was created as a sort of reverse fail2ban or cheap VPN-firewall: a machine with a closed firewall can be told, by a foreign machine, to accept connections from a specific IP.
log2command is a PHP script that tracks IPs in log files and executes shell commands per each IP.
log2command was created as a sort of reverse fail2ban or cheap VPN-firewall: a machine with a closed firewall can be told, by a foreign machine, to accept connections from a specific IP.
log2command then keeps track of the webserver log file and watches for inactivity from the user's IP. After an amount of time another command is executed that can remove the user's IP from the firewall, closing down the machine again.
The PHP script is a command-line program that can be run in the background.
- MD5 |
8e19ae8abd2570913871373fe04844fa
Thanks...
0 comments:
Post a Comment