Add tcp process detection with ebpf

This commit is contained in:
Vladimir Stoilov
2023-06-07 16:36:44 +03:00
parent efe8cd2fda
commit 0caa3e792c
16 changed files with 127082 additions and 5 deletions

View File

@@ -1,6 +1,7 @@
package interception
import (
"github.com/safing/portmaster/firewall/interception/ebpf"
"github.com/safing/portmaster/firewall/interception/nfq"
"github.com/safing/portmaster/network"
"github.com/safing/portmaster/network/packet"
@@ -8,11 +9,13 @@ import (
// start starts the interception.
func start(ch chan packet.Packet) error {
ebpf.StartEBPFWorker(ch)
return StartNfqueueInterception(ch)
}
// stop starts the interception.
func stop() error {
ebpf.StopEBPFWorker()
return StopNfqueueInterception()
}