MCPcopy Create free account
hub / github.com/SamNet-dev/snix / runIptables

Function runIptables

platform/linux/nfqueue.go:314–321  ·  view source on GitHub ↗
(args ...string)

Source from the content-addressed store, hash-verified

312}()
313
314func runIptables(args ...string) error {
315 cmd := exec.Command(iptablesPath, args...)
316 out, err := cmd.CombinedOutput()
317 if err != nil {
318 return fmt.Errorf("%s: %w (%s)", cmd.String(), err, string(out))
319 }
320 return nil
321}

Callers 2

installRulesMethod · 0.85
removeRulesLockedMethod · 0.85

Calls 1

StringMethod · 0.80

Tested by

no test coverage detected