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