ldx / python-iptables

Python bindings for iptables
730 stars 182 forks source link

is nftable not supported? #342

Open Yorklandian opened 8 months ago

Yorklandian commented 8 months ago

My iptables has the following version iptables v1.8.7 (nf_tables) After running code in the example, no changes can be observed via "iptables -t XXX -nvL". Instead ,rules are added to iptable-legacy which can be seen via "iptables-legacy -t XXX -nvL". Does this mean I can NOT AT ALL modify iptables with nf_tables backend with this package?

Cyanat commented 2 months ago

According to ldx response in #319 indeed, python-iptables works only with iptables-legacy. As nf_tables is now widely included by default in recents linux version, it would be great to have a python-iptables nf_tables compatible.