mirror of
https://github.com/luscis/openlan.git
synced 2025-12-24 11:10:54 +08:00
21 lines
497 B
Go
Executable File
21 lines
497 B
Go
Executable File
package config
|
|
|
|
type ACL struct {
|
|
File string `json:"file"`
|
|
Name string `json:"name"`
|
|
Rules []*ACLRule `json:"rules"`
|
|
}
|
|
|
|
type ACLRule struct {
|
|
Name string `json:"name,omitempty"`
|
|
SrcIp string `json:"source,omitempty"`
|
|
DstIp string `json:"destination,omitempty"`
|
|
Proto string `json:"protocol,omitempty"`
|
|
SrcPort string `json:"sourcePort,omitempty"`
|
|
DstPort string `json:"destPort,omitempty"`
|
|
Action string `json:"action,omitempty"`
|
|
}
|
|
|
|
func (ru *ACLRule) Correct() {
|
|
}
|