Skip to content

Instantly share code, notes, and snippets.

View jkljajic's full-sized avatar

Jovo Kljajic jkljajic

View GitHub Profile
@jkljajic
jkljajic / mssqld-auth.conf
Created December 17, 2017 13:56
fail2Ban filter for MSSQL LInux
# Fail2Ban filter for unsuccesfull MSSQL authentication attempts
[INCLUDES]
# Read common prefixes. If any customizations available -- read them from
# common.local
before = common.conf
[Definition]
;WITH FKData AS
(
SELECT
fk.parent_object_id,
fkc.parent_column_id,
fk.referenced_object_id,
fkc.referenced_column_id,
FKCount = COUNT(*)
FROM
sys.foreign_keys fk