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.1+incompatible
Published
Feb 26, 2025
Platform
js/wasm
Imports
3 packages
Last checked
7 seconds ago

Tools for package owners.