safing-portmaster/firewall/interception/interception_linux.go
2022-10-10 13:38:56 +02:00

21 lines
520 B
Go

package interception
import (
"github.com/safing/portmaster/firewall/interception/nfq"
"github.com/safing/portmaster/network/packet"
)
// start starts the interception.
func start(ch chan packet.Packet) error {
return StartNfqueueInterception(ch)
}
// stop starts the interception.
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()
}