Skip to content

Instantly share code, notes, and snippets.

@aptalca
Created June 1, 2017 21:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aptalca/ac9c3f931de460c9a2c12176e26df7d8 to your computer and use it in GitHub Desktop.
Save aptalca/ac9c3f931de460c9a2c12176e26df7d8 to your computer and use it in GitHub Desktop.
Add this to the /config/fail2ban/action.d folder to disable ipv6 on unraid (which causes errors) until there is a new fail2ban update (issue fixed in their master branch, but they haven't released a new version yet)
[Init?family=inet6]
# Option: blocktype (ipv6) Note: This is what the action does with rules. This can be any jump target
# as per the iptables man page (section 8). Common values are DROP REJECT, REJECT --reject-with icmp6-port-unreachable Values: STRING
blocktype = REJECT --reject-with icmp6-port-unreachable
# Option: iptables (ipv6) Notes.: Actual command to be executed, including common to all calls options Values: STRING
iptables = iptables <lockingopt>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment