-
Notifications
You must be signed in to change notification settings - Fork 13
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
Unable to reject forwarding without rules set by plugins #3
Comments
@ivanov17 , there is a lot to digest here. Will look at it tomorrow. Also, could you please split this into multiple issue? It will be easier to track this. |
@ivanov17 , when I was designing the plugin, I did not want to use |
hi @greenpau. I think currently P.S. Seems the PR in containernetworking/plugins#462 have been silent for a while. I think they might not going to merge it...since the PR even lived during several COVID variants. |
Hello!
I have been trying to use podman on CentOS 8 running on qemu/kvm virtual machine. I removed firewalld and I use nftables directly now.
Thank you for your plugins, they work very well in general, but I have some troubles with my nftables rules and an issue regarding access to localhost ports on the VM.
For testing purposes I use simple ruleset containing
inet filter
table:But when I run pod or container using podman the collision with rules set by plugins appears, because
forward
chains inip filter
andip6 filter
tables are placed afterinet filter
table:If I run the nginx container with
podman run -dt --name nginx-test --rm --publish 80:80 docker.io/library/nginx:stable
, I'm unable to connect to the container's 80 port using ip address of the virtual machine.When I remove the reject rule from the
forward
chain of theinet filter
table, chains inip filter
andip6 filter
tables work as expected. In that case if I run nginx container, I have a connection to the container and I can see nginx default page.But in that case I have to always have a running pod or container, because the ruleset doesn't have any reject rule regarding forwarding if plugin rules are not applied.
I confused a bit that my ruleset needs changes to work with podman and don't work properly if I don't start any container. I think I should to change the priority of my
forward
chain for applying it after the plugins'forward
chains. But maybe there is another solution?It seems that applying of plugins rules without manual rewriting existing rules would be a better solution.
This is my CNI configuration:
Podman version and system info:
The text was updated successfully, but these errors were encountered: