acl

package
v2.4.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EntryChain = "lain-ENTRY" //allow anywaher enter explored port
	InputChain = "lain-INPUT" //allow white list ip and port enter lain
)
View Source
const CMD_IPTABLES = "iptables"
View Source
const CalicoProfileNotExist = "not found."
View Source
const CalicoRuleExist = "Rule already present, skipping."
View Source
const EtcdPrefixKey = "/lain/config"
View Source
const EtcdWLPortsExKeyPrefix = "whitelist_ex_ports"
View Source
const EtcdWLPortsInKeyPrefix = "whitelist_in_ports"
View Source
const EtcdWhiteListIpsKeyPrefix = "whitelist_ips"
View Source
const IptablesChainFound = "iptables: Chain already exists.\n"
View Source
const IptablesChainRulesFound = "iptables: Bad rule (does a matching rule exist in that chain?).\n"
View Source
const IptablesLocked = "Another app is currently holding the xtables lock.\n"
View Source
const IptablesNotFound = "iptables: No chain/target/match by that name.\n"
View Source
const IptablesRuleFound = "iptables: Rule already exists.\n"

Variables

This section is empty.

Functions

This section is empty.

Types

type Acl

type Acl struct {
	// contains filtered or unexported fields
}

*

  • white ips can be singe ip like 127.0.0.1
  • can be range ips like 127.0.0.1-127.0.0.3
  • can be ip segment like 192.168.0.0/16

func New

func New(log *logrus.Logger, lainlet *lainlet.Client) *Acl

func (*Acl) RunAcl

func (self *Acl) RunAcl()

func (*Acl) StopAcl

func (self *Acl) StopAcl()

Jump to

Keyboard shortcuts

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