mirror of
https://github.com/siderolabs/talos.git
synced 2025-10-26 05:51:17 +01:00
Many changes to the nftables backend which will be used in the follow-up PR with #4421. 1. Add support for chain policy: drop/accept. 2. Properly handle match on all IPs in the set (`0.0.0.0/0` like). 3. Implement conntrack state matching. 4. Implement multiple ifname matching in a single rule. 5. Implement anonymous counters. Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
17 lines
496 B
Go
17 lines
496 B
Go
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
package nethelpers
|
|
|
|
//go:generate enumer -type=DefaultAction -linecomment -text
|
|
|
|
// DefaultAction is a default firewall action.
|
|
type DefaultAction int
|
|
|
|
// DefaultAction constants.
|
|
const (
|
|
DefaultActionAccept DefaultAction = iota // accept
|
|
DefaultActionBlock // block
|
|
)
|