feat: 防火墙查询

This commit is contained in:
TsMask
2023-09-13 14:48:47 +08:00
parent 1da27ba522
commit b9383e2f74
10 changed files with 1075 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
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
APPName string `json:"appName"`
IsUsed bool `json:"isUsed"`
Description string `json:"description"`
}
type Forward struct {
Protocol string `json:"protocol"`
Address string `json:"address"`
Port string `json:"port"`
Target string `json:"target"`
}