fix: allow established also on fwd table
This commit is contained in:
@@ -49,6 +49,10 @@ class FiregexTables(NFTableManager):
|
|||||||
{ "add":{ "rule": {
|
{ "add":{ "rule": {
|
||||||
"family": "inet", "table": self.table_name, "chain": self.rules_chain_in,
|
"family": "inet", "table": self.table_name, "chain": self.rules_chain_in,
|
||||||
"expr": [{ "match": {"op": "in", "left": { "ct": { "key": "state" }},"right": ["established"]} }, { "accept": None }]
|
"expr": [{ "match": {"op": "in", "left": { "ct": { "key": "state" }},"right": ["established"]} }, { "accept": None }]
|
||||||
|
}}},
|
||||||
|
{ "add":{ "rule": {
|
||||||
|
"family": "inet", "table": self.table_name, "chain": self.rules_chain_fwd,
|
||||||
|
"expr": [{ "match": {"op": "in", "left": { "ct": { "key": "state" }},"right": ["established"]} }, { "accept": None }]
|
||||||
}}}
|
}}}
|
||||||
] if allow_established else []) + ([
|
] if allow_established else []) + ([
|
||||||
{ "add":{ "rule": {
|
{ "add":{ "rule": {
|
||||||
|
|||||||
Reference in New Issue
Block a user