Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

incusd/firewall/xtables: Fix iptablesClear on nft shim #376

Merged
merged 1 commit into from
Jan 8, 2024

Conversation

stgraber
Copy link
Member

@stgraber stgraber commented Jan 8, 2024

When xtables uses the nft shim, the actual xtables kernel modules never get loaded, therefore the files containing the list of valid tables never get populated.

This then leads to iptablesClear always skipping all tables despite rules having been added previously.

Closes #305

When xtables uses the nft shim, the actual xtables kernel modules never
get loaded, therefore the files containing the list of valid tables
never get populated.

This then leads to iptablesClear always skipping all tables despite
rules having been added previously.

Closes lxc#305

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
@tych0 tych0 merged commit 0611c2f into lxc:main Jan 8, 2024
25 checks passed
@stgraber stgraber deleted the devices branch March 20, 2024 10:18
tomponline added a commit to canonical/lxd that referenced this pull request Aug 8, 2024
cherry-picked from lxc/incus#376

When xtables uses the nft shim, the actual xtables kernel modules never
get loaded, therefore the files containing the list of valid tables
never get populated.

This then leads to iptablesClear always skipping all tables despite
rules having been added previously.


(cherry picked from commit 3c6a60d844a7fccfb207f53e01fbb111958d42be)

License: Apache-2.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

When I delete a port forward, the iptables rules are not deleted.
2 participants