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

iptables listing is empty on debian9 & debian10 #139

Open
vmassol opened this issue Jun 3, 2020 · 3 comments
Open

iptables listing is empty on debian9 & debian10 #139

vmassol opened this issue Jun 3, 2020 · 3 comments

Comments

@vmassol
Copy link

vmassol commented Jun 3, 2020

Hi there,

Thanks a lot for your nice and handy docker images. We're using the iptables one and it works fine on several machines but on some others we get empty iptables listed (which doesn't correspond to the reality and differs from running iptables -S directly on the host):

$ docker run --privileged --cap-add=NET_ADMIN --network=host --rm --entrypoint "/bin/sh" vimagick/iptables -c "/sbin/iptables -S"
-P INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPT

Would you have any idea what could be wrong?

Thanks a lot and thanks again for your work!

@vmassol
Copy link
Author

vmassol commented Jun 3, 2020

FTR seems it works on debian8 but fails on debian9. Not sure why yet.

@vmassol vmassol changed the title iptables listing is empty iptables listing is empty on debian9 Jun 3, 2020
@vmassol
Copy link
Author

vmassol commented Aug 12, 2021

Note that nftables is replacing iptables in debian 10 and thus this image is not working on debian 10 (not sure why it's also not working on debian9 though).

$ sudo docker run --cap-add=NET_ADMIN --network=host --rm --entrypoint "/bin/sh" vimagick/iptables -c "/sbin/iptables --version"
iptables v1.8.7 (legacy)

Whereas on the host:

$ sudo iptables --version
iptables v1.8.2 (nf_tables)

@vmassol vmassol changed the title iptables listing is empty on debian9 iptables listing is empty on debian9 & debian10 Aug 12, 2021
@vmassol
Copy link
Author

vmassol commented Aug 12, 2021

Actually it works on debian10 with:

docker run --cap-add=NET_ADMIN --network=host --rm --entrypoint "/bin/sh" vimagick/iptables -c "/sbin/iptables-nft -S"

:)

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

No branches or pull requests

1 participant