Restrict incoming connections to DE via CrowdSec GeoIP
This commit is contained in:
parent
8f44273faf
commit
c3adfa7e25
1 changed files with 14 additions and 0 deletions
|
|
@ -91,6 +91,17 @@ in
|
||||||
|
|
||||||
# Remediation profiles
|
# Remediation profiles
|
||||||
localConfig.profiles = [
|
localConfig.profiles = [
|
||||||
|
{
|
||||||
|
name = "block_non_de";
|
||||||
|
filters = [ "Alert.Remediation == true && Alert.GetScope() == 'Ip' && Alert.Enriched.IsoCode != 'DE' && Alert.Enriched.IsoCode != ''" ];
|
||||||
|
decisions = [
|
||||||
|
{
|
||||||
|
type = "ban";
|
||||||
|
duration = "24h";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
on_success = "break";
|
||||||
|
}
|
||||||
{
|
{
|
||||||
name = "default_ip_remediation";
|
name = "default_ip_remediation";
|
||||||
filters = [ "Alert.Remediation == true && Alert.GetScope() == 'Ip'" ];
|
filters = [ "Alert.Remediation == true && Alert.GetScope() == 'Ip'" ];
|
||||||
|
|
@ -106,6 +117,9 @@ in
|
||||||
|
|
||||||
# Hub collections for common attack patterns
|
# Hub collections for common attack patterns
|
||||||
hub = {
|
hub = {
|
||||||
|
parsers = [
|
||||||
|
"crowdsecurity/geoip-enrich"
|
||||||
|
];
|
||||||
collections = [
|
collections = [
|
||||||
"crowdsecurity/linux"
|
"crowdsecurity/linux"
|
||||||
"crowdsecurity/nginx"
|
"crowdsecurity/nginx"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue