feat: dns lookup function

This commit is contained in:
Toby
2024-04-03 20:02:57 -07:00
parent d7737e9211
commit ae34b4856a
4 changed files with 115 additions and 60 deletions

View File

@@ -55,7 +55,7 @@ func generateNftRules(local, rst bool) (*nftTableSpec, error) {
c.Rules = append(c.Rules, "ip protocol tcp ct mark $DROP_CTMARK counter reject with tcp reset")
}
c.Rules = append(c.Rules, "ct mark $DROP_CTMARK counter drop")
c.Rules = append(c.Rules, "counter queue num $QUEUE_NUM bypass")
c.Rules = append(c.Rules, "ip protocol tcp counter queue num $QUEUE_NUM bypass")
}
return table, nil
}