2023-03-24 23:19:17 +08:00
|
|
|
package client
|
|
|
|
|
|
|
|
type FireInfo struct {
|
2023-03-27 19:02:36 +08:00
|
|
|
Family string `json:"family"` // ipv4 ipv6
|
|
|
|
Address string `json:"address"` // Anywhere
|
|
|
|
Port string `json:"port"`
|
2023-03-27 23:29:46 +08:00
|
|
|
Protocol string `json:"protocol"` // tcp udp tcp/udp
|
2023-03-27 19:02:36 +08:00
|
|
|
Strategy string `json:"strategy"` // accept drop
|
2023-04-01 00:51:25 +08:00
|
|
|
|
2024-06-15 22:28:03 +08:00
|
|
|
Num string `json:"num"`
|
|
|
|
TargetIP string `json:"targetIP"`
|
|
|
|
TargetPort string `json:"targetPort"`
|
|
|
|
|
2023-09-21 18:02:21 +08:00
|
|
|
UsedStatus string `json:"usedStatus"`
|
2023-08-15 22:48:11 +08:00
|
|
|
Description string `json:"description"`
|
2023-03-24 23:19:17 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type Forward struct {
|
2024-06-15 22:28:03 +08:00
|
|
|
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"`
|
2023-03-24 23:19:17 +08:00
|
|
|
}
|