iptables

package
v1.7.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2021 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCustomChain

func AddCustomChain(destIP, destPort, targetip, targetport string) error

AddCustomChain adds the rule to the host's nat table custom chain all tcp requests NOT originating from localhost destined to destIp:destPort are routed to targetIP:targetPort

func DeleteCustomChain

func DeleteCustomChain() error

DeleteCustomChain removes the custom chain aad-metadata reference from PREROUTING chain and then removes the chain aad-metadata from nat table

func LogCustomChain

func LogCustomChain() error

LogCustomChain logs added rules to the custom chain

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL