Compile conntrack rules into raw-priority chains
This commit is contained in:
@@ -216,12 +216,12 @@ func (c *Compiler) compileConntrack(state *FirewallState) error {
|
||||
for i, ct := range c.cfg.Conntrack {
|
||||
tag := fmt.Sprintf("conntrack:%d", i)
|
||||
|
||||
chains := []string{"prerouting"}
|
||||
chains := []string{"raw_prerouting"}
|
||||
switch ct.Chain {
|
||||
case config.ConntrackOutput:
|
||||
chains = []string{"output"}
|
||||
chains = []string{"raw_output"}
|
||||
case config.ConntrackBoth:
|
||||
chains = []string{"prerouting", "output"}
|
||||
chains = []string{"raw_prerouting", "raw_output"}
|
||||
}
|
||||
|
||||
matches, err := l4Matches(ct.Proto, ct.DPort, nil)
|
||||
|
||||
Reference in New Issue
Block a user