mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-10 10:38:20 +00:00
23 lines
346 B
Go
23 lines
346 B
Go
package definitions
|
|
|
|
type Rule struct {
|
|
Match RuleMatch `json:"match"`
|
|
Comment string `json:"comment"`
|
|
Counter bool `json:"counter"`
|
|
}
|
|
|
|
type RuleMatch struct {
|
|
TCPDestinationPort uint64 `json:"tcp_destination_port"`
|
|
}
|
|
|
|
type ForwardRule struct {
|
|
Rule
|
|
}
|
|
|
|
type DestinationNATRule struct {
|
|
Rule
|
|
}
|
|
|
|
type SourceNATRule struct {
|
|
Rule
|
|
}
|