feat: 封装防火墙 firewalld 相关操作

This commit is contained in:
ssongliu
2023-03-24 23:19:17 +08:00
committed by ssongliu
parent a434bbbc12
commit a2fcdabb7b
5 changed files with 403 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
package client
type FireInfo struct {
Family string
Address string
Port string
Protocol string
Strategy string
}
type Forward struct {
Protocol string
Address string
Port string
Target string
}