Documentation ¶
Index ¶
- Constants
- type Manager
- func (mgr *Manager) RecordLocalPodIP(podIP net.IP)
- func (mgr *Manager) RecordNodeIP(nodeIP net.IP)
- func (mgr *Manager) RecordRemoteNodeIP(nodeIP net.IP)
- func (mgr *Manager) RecordRemoteSubnet(subnetCidr *net.IPNet, isOverlay bool)
- func (mgr *Manager) RecordSubnet(subnetCidr *net.IPNet, isOverlay, isLocalBGP bool)
- func (mgr *Manager) Reset()
- func (mgr *Manager) SetBgpIfName(bgpIfName string)
- func (mgr *Manager) SetOverlayIfName(overlayIfName string)
- func (mgr *Manager) SyncRules() error
- type Protocol
Constants ¶
View Source
const ( ChainRamaPostRouting = "RAMA-POSTROUTING" ChainRamaForward = "RAMA-FORWARD" ChainRamaPreRouting = "RAMA-PREROUTING" )
View Source
const ( TableNAT = "nat" TableFilter = "filter" TableMangle = "mangle" ChainPostRouting = "POSTROUTING" ChainPreRouting = "PREROUTING" ChainForward = "FORWARD" CustomChainPrefix = "HYBRIDNET-" ChainHybridnetPostRouting = CustomChainPrefix + "POSTROUTING" ChainHybridnetForward = CustomChainPrefix + "FORWARD" ChainHybridnetPreRouting = CustomChainPrefix + "PREROUTING" ChainHybridnetFromRuleSkip = CustomChainPrefix + "FROM-RULE-SKIP" HybridnetOverlayNetSetName = "HYBRIDNET-OVERLAY-NET" HybridnetAllIPSetName = "HYBRIDNET-ALL" HybridnetNodeIPSetName = "HYBRIDNET-NODE-IP" HybridnetLocalPodIPSetName = "HYBRIDNET-LOCAL-POD-IP" HybridnetLocalBGPNetSetName = "HYBRIDNET-LOCAL-BGP-NET" PodToNodeBackTrafficMarkString = "0x20" FuleNATedPodTrafficMarkString = "0x40" PodToNodeBackTrafficMark = 0x20 FuleNATedPodTrafficMark = 0x40 KubeProxyMasqueradeMark = 0x4000 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func CreateIPtablesManager ¶
func (*Manager) RecordLocalPodIP ¶ added in v0.4.0
func (*Manager) RecordNodeIP ¶
func (*Manager) RecordRemoteNodeIP ¶ added in v0.3.0
func (*Manager) RecordRemoteSubnet ¶ added in v0.3.0
func (*Manager) RecordSubnet ¶
func (*Manager) SetBgpIfName ¶ added in v0.4.0
func (*Manager) SetOverlayIfName ¶
Click to show internal directories.
Click to hide internal directories.