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

Dockerfile: support nftables #302

Merged
merged 1 commit into from
Apr 23, 2022
Merged

Dockerfile: support nftables #302

merged 1 commit into from
Apr 23, 2022

Conversation

squat
Copy link
Owner

@squat squat commented Apr 21, 2022

Currently, Kilo only supports adding firewall rules via the legacy
iptables API. This means that on systems using nftables in the host
network namespace, the namespace will be polluted and both firewall
infrastructures will be used, causing unexpected and difficult
to predict interactions. In other words, networking may not work as
expected on nftables-based systems.

This PR fixes this by using the iptables-wrappers project [0] to install
run-time detection of the in-use iptables backend.

[0] https://github.com/kubernetes-sigs/iptables-wrappers

Signed-off-by: Lucas Servén Marín lserven@gmail.com

@squat squat requested a review from leonnicolas April 21, 2022 17:01
@squat
Copy link
Owner Author

squat commented Apr 21, 2022

cc @READ10

@squat squat force-pushed the support_nftables branch 2 times, most recently from 0d5eb7e to a254e7d Compare April 21, 2022 17:12
Currently, Kilo _only_ supports adding firewall rules via the legacy
iptables API. This means that on systems using nftables in the host
network namespace, the namespace will be polluted and both firewall
infrastructures will be used, causing unexpected and difficult
to predict interactions. In other words, networking may not work as
expected on nftables-based systems.

This PR fixes this by using the iptables-wrappers project [0] to install
run-time detection of the in-use iptables backend.

[0] https://github.com/kubernetes-sigs/iptables-wrappers

Signed-off-by: Lucas Servén Marín <lserven@gmail.com>
@squat
Copy link
Owner Author

squat commented Apr 21, 2022

@squat squat merged commit e20d13a into main Apr 23, 2022
@squat squat deleted the support_nftables branch April 23, 2022 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants