From 9b2c45777a2e074aa4c47e70196048b497cb202c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Moen?= Date: Wed, 7 Apr 2021 15:29:30 +0200 Subject: [PATCH] use target also for ipv6 --- iptables.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/iptables.go b/iptables.go index b3209e7e..4cfa8b01 100644 --- a/iptables.go +++ b/iptables.go @@ -94,11 +94,11 @@ func newIPTables(config *bouncerConfig) (interface{}, error) { []string{"-C", v, "-m", "set", "--match-set", "crowdsec6-blacklists", "src", "--log-prefix", config.DenyLogPrefix, "-j", "LOG"}) } ipv6Ctx.StartupCmds = append(ipv6Ctx.StartupCmds, - []string{"-I", v, "-m", "set", "--match-set", "crowdsec6-blacklists", "src", "-j", "DROP"}) + []string{"-I", v, "-m", "set", "--match-set", "crowdsec6-blacklists", "src", "-j", target}) ipv6Ctx.ShutdownCmds = append(ipv6Ctx.ShutdownCmds, - []string{"-D", v, "-m", "set", "--match-set", "crowdsec6-blacklists", "src", "-j", "DROP"}) + []string{"-D", v, "-m", "set", "--match-set", "crowdsec6-blacklists", "src", "-j", target}) ipv6Ctx.CheckIptableCmds = append(ipv6Ctx.CheckIptableCmds, - []string{"-C", v, "-m", "set", "--match-set", "crowdsec6-blacklists", "src", "-j", "DROP"}) + []string{"-C", v, "-m", "set", "--match-set", "crowdsec6-blacklists", "src", "-j", target}) } } ret.v6 = ipv6Ctx