mirror of
https://github.com/luscis/openlan.git
synced 2025-10-07 01:22:51 +08:00
19 lines
1019 B
Go
Executable File
19 lines
1019 B
Go
Executable File
package config
|
|
|
|
type FlowRule struct {
|
|
Table string `json:"table,omitempty" yaml:"table,omitempty"`
|
|
Chain string `json:"chain,omitempty" yaml:"chain,omitempty"`
|
|
Input string `json:"input,omitempty" yaml:"input,omitempty"`
|
|
Source string `json:"source,omitempty" yaml:"source,omitempty"`
|
|
ToSource string `json:"to-source,omitempty" yaml:"toSource,omitempty"`
|
|
Dest string `json:"destination,omitempty" yaml:"destination,omitempty"`
|
|
ToDest string `json:"to-destination" yaml:"toDestination,omitempty"`
|
|
Output string `json:"output,omitempty" yaml:"output,omitempty"`
|
|
Comment string `json:"comment,omitempty" yaml:"comment,omitempty"`
|
|
Proto string `json:"protocol,omitempty" yaml:"protocol,omitempty"`
|
|
Match string `json:"match,omitempty" yaml:"match,omitempty"`
|
|
DstPort string `json:"dport,omitempty" yaml:"dstPort,omitempty"`
|
|
SrcPort string `json:"sport,omitempty" yaml:"srcPort,omitempty"`
|
|
Jump string `json:"jump,omitempty" yaml:"jump,omitempty"` // SNAT/RETURN/MASQUERADE
|
|
}
|