Skip to content

Commit

Permalink
use target also for ipv6
Browse files Browse the repository at this point in the history
  • Loading branch information
umglurf committed Apr 7, 2021
1 parent 310bfbc commit 9b2c457
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions iptables.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9b2c457

Please sign in to comment.