Add userspace routing

This commit is contained in:
Viktor Liu
2024-12-30 01:38:28 +01:00
parent b3c87cb5d1
commit 4199da4a45
21 changed files with 712 additions and 54 deletions
+4
View File
@@ -1,6 +1,8 @@
package firewall
import (
wgdevice "golang.zx2c4.com/wireguard/device"
"github.com/netbirdio/netbird/client/iface/device"
)
@@ -10,4 +12,6 @@ type IFaceMapper interface {
Address() device.WGAddress
IsUserspaceBind() bool
SetFilter(device.PacketFilter) error
GetDevice() *device.FilteredDevice
GetWGDevice() *wgdevice.Device
}