Skip to content

Instantly share code, notes, and snippets.

Marco Rodrigues gothicx

Block or report user

Report or block gothicx

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@gothicx
gothicx / gist:2b9742329304610a9437
Created Jul 7, 2015
fail2ban mod_antiloris failregex
View gist:2b9742329304610a9437
jail.conf:
[apache-antiloris]
enabled = true
filter = antiloris
action = iptables-multiport[name=apache-antiloris,port="80,443"]
logpath = /var/log/httpd/error_log
filter.d/antiloris.conf:
[Definition]
# Option: failregex
View selinux_httpd_zabbix
# Start httpd from zabbix with httpd_t domain
policy_module(myfix, 1.0.0)
optional_policy(`
gen_require(` type httpd_initrc_exec_t, zabbix_agent_t; ')
init_labeled_script_domtrans(zabbix_agent_t, httpd_initrc_exec_t)
')
You can’t perform that action at this time.