Closed SebastianApel closed 6 months ago
iptables ignores "destination=" and "not_destination" arguments when execution the operation.
iptables.rule(chain="FORWARD", jump="ACCEPT", destination="192.168.1.100")
Honor the "destination=" and "not_destination" arguments
The code in pyinfra/operation/iptables.py, line 266+ does not contain any instructions to honor the "destination" / "not_destination" arguments.
pls see https://github.com/Fizzadar/pyinfra/blob/5e87a0e3e71d58a9df906337e096e00681ecc371/pyinfra/operations/iptables.py#L266
Finally fixed this in https://github.com/pyinfra-dev/pyinfra/commit/e5206e4f178acc7d9519a3794ab42211c7308d64, released in v2.9.1 just now.
Describe the bug
iptables ignores "destination=" and "not_destination" arguments when execution the operation.
To Reproduce
iptables.rule(chain="FORWARD", jump="ACCEPT", destination="192.168.1.100")
Expected behavior
Honor the "destination=" and "not_destination" arguments
Meta
The code in pyinfra/operation/iptables.py, line 266+ does not contain any instructions to honor the "destination" / "not_destination" arguments.
pls see https://github.com/Fizzadar/pyinfra/blob/5e87a0e3e71d58a9df906337e096e00681ecc371/pyinfra/operations/iptables.py#L266