package networking

import "github.com/dotcloud/docker/internal/testutils/networking"

Index

Functions

func SetFilterForwardPolicies

func SetFilterForwardPolicies(t *testing.T, policy string)

SetFilterForwardPolicies sets the default policy for the FORWARD chain in the filter tables for both IPv4 and IPv6. The original policy is restored using t.Cleanup().

There's only one filter-FORWARD policy, so this won't behave well if used by tests running in parallel in a single network namespace that expect different behaviour.

Source Files

iptables.go

Version
v28.0.2+incompatible
Published
Mar 18, 2025
Platform
windows/amd64
Imports
3 packages
Last checked
16 minutes ago

Tools for package owners.