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
package main | |
// Generate RSA signing files via shell (adjust as needed): | |
// | |
// $ openssl genrsa -out app.rsa 1024 | |
// $ openssl rsa -in app.rsa -pubout > app.rsa.pub | |
// | |
// Code borrowed and modified from the following sources: | |
// https://www.youtube.com/watch?v=dgJFeqeXVKw | |
// https://goo.gl/ofVjK4 |
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
#!/bin/bash | |
## Update fail2ban iptables with globally known attackers. | |
## Actually, runs 100% independently now, without needing fail2ban installed. | |
## | |
## /etc/cron.daily/sync-fail2ban | |
## | |
## Author: Marcos Kobylecki <fail2ban.globalBlackList@askmarcos.com> | |
## http://www.reddit.com/r/linux/comments/2nvzur/shared_blacklists_from_fail2ban/ |