Windows implementation

This commit is contained in:
Vladimir Stoilov
2022-09-08 15:21:17 +02:00
committed by Daniel
parent b8bfbf14e4
commit 4bd8412f71
4 changed files with 40 additions and 5 deletions

View File

@@ -1,6 +1,7 @@
package interception
import (
"github.com/safing/portmaster/firewall/interception/nfq"
"github.com/safing/portmaster/network/packet"
)
@@ -13,3 +14,8 @@ func start(ch chan packet.Packet) error {
func stop() error {
return StopNfqueueInterception()
}
// ResetAllConnections resets all connections so they are forced to go thought the firewall again
func ResetAllConnections() error {
return nfq.DeleteAllMarkedConnection()
}