iptables

package
v0.7.11 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2015 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IPTablesPath = "iptables"

Functions

func CheckIPTables

func CheckIPTables() error

func ConfigureRedirect

func ConfigureRedirect(source, target int, ipAddress string) (func(), error)

Configure one port redirect from `source` to `target` using iptables. Returns an error and a function which undoes the change to the firewall.

Types

type Action

type Action bool
const (
	INSERT Action = true
	DELETE        = false
)

Jump to

Keyboard shortcuts

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