Documentation
¶
Index ¶
- Constants
- func AddPortForwardOfBGP(iptableExec iptables.IptablesIface, routerIP, localIP string, gobgpPort int32) error
- func DeletePortForwardOfBGP(iptableExec iptables.IptablesIface, routerIP, localIP string, gobgpPort int32) error
- func GenerateCretiriaAndAction(routerIP, localIP string, gobgpPort int32) []string
Constants ¶
View Source
const BGPPort = "179"
View Source
const BgpNatChain = "PREROUTING-OPENELB"
Variables ¶
This section is empty.
Functions ¶
func AddPortForwardOfBGP ¶
func AddPortForwardOfBGP(iptableExec iptables.IptablesIface, routerIP, localIP string, gobgpPort int32) error
Example: iptables -t nat -A PREROUTING -s 10.10.12.1 -p tcp --dport 179 -j DNAT --to-destination 10.10.12.1:17900
func DeletePortForwardOfBGP ¶
func DeletePortForwardOfBGP(iptableExec iptables.IptablesIface, routerIP, localIP string, gobgpPort int32) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.