MCPcopy Create free account
hub / github.com/rabbitstack/fibratus / newFirewall

Function newFirewall

pkg/rules/action/isolate_windows.go:55–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53}
54
55func newFirewall() (*firewall, error) {
56 opts := &wf.Options{
57 Dynamic: true, // remove filters when the process terminates
58 }
59
60 sess, err := wf.New(opts)
61 if err != nil {
62 return nil, err
63 }
64
65 return &firewall{s: sess}, nil
66}
67
68func (f *firewall) allow(whitelist []net.IP) error {
69 f.mu.Lock()

Callers 1

IsolateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected