MCPcopy
hub / github.com/evilsocket/opensnitch / DisableInterception

Method DisableInterception

daemon/firewall/iptables/iptables.go:155–159  ·  view source on GitHub ↗

DisableInterception removes firewall rules to intercept outbound connections.

(logErrors bool)

Source from the content-addressed store, hash-verified

153
154// DisableInterception removes firewall rules to intercept outbound connections.
155func (ipt *Iptables) DisableInterception(logErrors bool) {
156 ipt.StopCheckingRules()
157 ipt.QueueDNSResponses(!common.EnableRule, logErrors)
158 ipt.QueueConnections(!common.EnableRule, logErrors)
159}
160
161// CleanRules deletes the rules we added.
162func (ipt *Iptables) CleanRules(logErrors bool) {

Callers 1

CleanRulesMethod · 0.95

Calls 3

QueueDNSResponsesMethod · 0.95
QueueConnectionsMethod · 0.95
StopCheckingRulesMethod · 0.80

Tested by

no test coverage detected