Closed renukamanavalan closed 3 years ago
print(table.autocommit) True
Just verified. Auto-commit is indeed true.
If your iptables package has been compiled with "nf_tables" support, then you need to use "iptables-legacy" command instead.
$ sudo iptables -V
iptables v1.8.2 (nf_tables)
$ sudo iptables-legacy -t nat -L
Please try again and let me know
Thanks a lot. It did work.
Is there a plan to upgrade this package to use nf_tables ?
As other components are using the nf_tables (new/current default), my component need to be in sync.
A related thread and comment here: https://github.com/ldx/python-iptables/issues/306#issuecomment-652541318
Thank you, Vilmos!
1) Created a rule via iptc.easy.insert_rule 2) Could see it in iptc.easy.dump_table 3) Did table.commit() 3) exit the python interpreter 4) Look in "sudo iptables -t nat -L" and unable to find this entry.
Any tips on, what I am missing please?