mirror of
https://github.com/luscis/openlan.git
synced 2025-10-05 08:36:59 +08:00
20 lines
720 B
Go
Executable File
20 lines
720 B
Go
Executable File
package config
|
|
|
|
type FlowRule struct {
|
|
Table string `json:"table,omitempty"`
|
|
Chain string `json:"chain,omitempty"`
|
|
Input string `json:"input,omitempty"`
|
|
Source string `json:"source,omitempty"`
|
|
ToSource string `json:"toSource,omitempty"`
|
|
Dest string `json:"destination,omitempty"`
|
|
ToDest string `json:"toDestination"`
|
|
Output string `json:"output,omitempty"`
|
|
Comment string `json:"comment,omitempty"`
|
|
Proto string `json:"protocol,omitempty"`
|
|
Match string `json:"match,omitempty"`
|
|
DstPort string `json:"destPort,omitempty"`
|
|
SrcPort string `json:"sourcePort,omitempty"`
|
|
CtState string `json:"ctState,omitempty"`
|
|
Jump string `json:"jump,omitempty"` // SNAT/RETURN/MASQUERADE
|
|
}
|