nftables 0.6.3

Safe abstraction for nftables JSON API. It can be used to create nftables rulesets in Rust and parse existing nftables rulesets from JSON.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/sbin/nft -f

flush ruleset

table inet filter {

	chain tproxy_ipv4 {
	     meta l4proto tcp tproxy ip to 127.0.0.1:12345
	     meta l4proto tcp tproxy ip to :12345
	}

	chain tproxy_ipv6 {
	     meta l4proto tcp tproxy ip6 to [::1]:12345
	     meta l4proto tcp tproxy ip6 to :12345
	}
}