Add MAC address include/exclude filtering for nftables auto-redirect
Support filtering traffic by source MAC address in the prerouting chain, using ether addr payload matching with set lookups for multiple addresses.
This commit is contained in:
parent
30e535973b
commit
f8e7794cc2
2 changed files with 146 additions and 0 deletions
2
tun.go
2
tun.go
|
|
@ -102,6 +102,8 @@ type Options struct {
|
|||
IncludeAndroidUser []int
|
||||
IncludePackage []string
|
||||
ExcludePackage []string
|
||||
IncludeMACAddress []net.HardwareAddr
|
||||
ExcludeMACAddress []net.HardwareAddr
|
||||
InterfaceFinder control.InterfaceFinder
|
||||
InterfaceMonitor DefaultInterfaceMonitor
|
||||
FileDescriptor int
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue