feat: reject packet sent to tproxy port directly for security

This commit is contained in:
mzz2017
2023-02-13 03:41:59 +08:00
parent 0b5263c89b
commit 87511472c4
6 changed files with 151 additions and 121 deletions

View File

@ -23,6 +23,15 @@ import (
"sync"
)
type _bpfTuples struct {
Sip [4]uint32
Dip [4]uint32
Sport uint16
Dport uint16
L4proto uint8
_ [3]byte
}
type _bpfLpmKey struct {
PrefixLen uint32
Data [4]uint32