fix(firewall): delete chain rules by line number (#2411)

- Fix #2334
- Parsing of iptables chains, contributing to progress for #1856
This commit is contained in:
Quentin McGaw
2024-08-17 20:12:22 +02:00
parent 09c47c740c
commit c33158c13c
14 changed files with 1229 additions and 62 deletions

View File

@@ -0,0 +1,13 @@
package firewall
import "github.com/qdm12/golibs/command"
type Runner interface {
Run(cmd command.ExecCmd) (output string, err error)
}
type Logger interface {
Debug(s string)
Info(s string)
Error(s string)
}