namib-project / nftables-rs

Safe abstraction for nftables JSON API (libnftables-json).
https://crates.io/crates/nftables
Apache License 2.0
32 stars 15 forks source link

Question about flow rule. #65

Closed beckend closed 1 month ago

beckend commented 1 month ago
        flowtable flowed {
                hook ingress priority filter
                devices = { wan0, wg0 }
        }

         chain forward {
                type filter hook forward priority filter; policy accept;
                ct state established flow add @flowed
        }

How can I add ct state established flow add @flowed I could not find any fitting API for it.

jwhb commented 1 month ago

@beckend thanks for reporting. I will have a look.

jwhb commented 1 month ago

FlowTable was already implemented, the Flow statement was not. This will be fixed by #67 and released as v0.5.0.

You'll find guidance on using the API for Flow/FlowTable in the respective tests.

Your feedback is appreciated.