mirror of
https://github.com/SunBK201/UA3F.git
synced 2025-12-16 16:57:08 +00:00
fix: ipid only for tcp
This commit is contained in:
parent
16a08cb5a3
commit
f366aa2ce9
@ -28,6 +28,7 @@ var RuleDelTCPTS = []string{
|
||||
}
|
||||
|
||||
var RuleIP = []string{
|
||||
"-p", "tcp",
|
||||
"-j", "NFQUEUE",
|
||||
"--queue-num", strconv.Itoa(netfilter.HELPER_QUEUE),
|
||||
"--queue-bypass",
|
||||
|
||||
@ -114,6 +114,7 @@ func (s *Server) NftSetIP(tx *knftables.Transaction, table *knftables.Table) {
|
||||
rule := &knftables.Rule{
|
||||
Chain: chain.Name,
|
||||
Rule: knftables.Concat(
|
||||
"meta l4proto tcp",
|
||||
fmt.Sprintf("counter queue num %d bypass", s.nfqServer.QueueNum),
|
||||
),
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user