mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-12-16 18:09:01 +08:00
36 lines
988 B
Go
36 lines
988 B
Go
package client
|
|
|
|
type FireInfo struct {
|
|
Family string `json:"family"` // ipv4 ipv6
|
|
Address string `json:"address"` // Anywhere
|
|
Port string `json:"port"`
|
|
Protocol string `json:"protocol"` // tcp udp tcp/udp
|
|
Strategy string `json:"strategy"` // accept drop
|
|
|
|
Num string `json:"num"`
|
|
TargetIP string `json:"targetIP"`
|
|
TargetPort string `json:"targetPort"`
|
|
|
|
UsedStatus string `json:"usedStatus"`
|
|
Description string `json:"description"`
|
|
}
|
|
|
|
type Forward struct {
|
|
Num string `json:"num"`
|
|
Protocol string `json:"protocol"`
|
|
Port string `json:"port"`
|
|
TargetIP string `json:"targetIP"`
|
|
TargetPort string `json:"targetPort"`
|
|
}
|
|
|
|
type IptablesNatInfo struct {
|
|
Num string `json:"num"`
|
|
Target string `json:"target"`
|
|
Protocol string `json:"protocol"`
|
|
Opt string `json:"opt"`
|
|
Source string `json:"source"`
|
|
Destination string `json:"destination"`
|
|
SrcPort string `json:"srcPort"`
|
|
DestPort string `json:"destPort"`
|
|
}
|