This commit is contained in:
Quentin McGaw
2026-07-16 21:09:07 +00:00
parent cd9ba54b37
commit 113253b523
5 changed files with 1097 additions and 1 deletions
+12
View File
@@ -48,3 +48,15 @@ func (f *Firewall) SetBaseChainsPolicy(_ context.Context, policy string) error {
return nil
}
// SetIPv4AllPolicies sets the policy of all base chains to ACCEPT or DROP.
// In nftables with inet family, this also affects IPv6 rules.
func (f *Firewall) SetIPv4AllPolicies(ctx context.Context, policy string) error {
return f.SetBaseChainsPolicy(ctx, policy)
}
// SetIPv6AllPolicies sets the policy of all base chains to ACCEPT or DROP.
// In nftables with inet family, this also affects IPv4 rules.
func (f *Firewall) SetIPv6AllPolicies(ctx context.Context, policy string) error {
return f.SetBaseChainsPolicy(ctx, policy)
}