coreos / go-iptables

Go wrapper around iptables utility
Apache License 2.0
1.11k stars 257 forks source link

Feat: Support overriding binaries' path #114

Closed costasd closed 10 months ago

costasd commented 11 months ago

Allow overriding binaries path, via a new function, named Path(string). This works similarily to other options such as Timeout() and configures IPTables's scruct.

This is particularly useful in sudo-confined environments or any wrapping scenarios.

while there, add a set of tests that force iptables into legacy or nft versions and then compare it with the mode parsed through executing the utility.