1Panel/backend/utils/firewall/client/info.go

20 lines
493 B
Go
Raw Normal View History

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
2023-03-31 16:51:25 +00:00
APPName string `json:"appName"`
IsUsed bool `json:"isUsed"`
}
type Forward struct {
Protocol string `json:"protocol"`
Address string `json:"address"`
Port string `json:"port"`
Target string `json:"target"`
}