-
Notifications
You must be signed in to change notification settings - Fork 880
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
Favoring "iptables-legacy" on Debian Sid causes iptables rules inconsistency #2331
Comments
Same thing happened to be. Workaround alleviates the problem. |
+1 |
1 similar comment
+1 |
hwdsl2
added a commit
to hwdsl2/docker-ipsec-vpn-server
that referenced
this issue
May 10, 2020
- Debian 10 has xl2tpd 1.3.12, manual compilation is no longer needed - Workaround added to fix IPTables issues under docker-compose "update-alternatives --set iptables /usr/sbin/iptables-legacy" - References: #186 https://wiki.debian.org/nftables k3s-io/k3s#1114 moby/libnetwork#2331
hwdsl2
added a commit
to hwdsl2/docker-ipsec-vpn-server
that referenced
this issue
May 10, 2020
- Debian 10 has xl2tpd 1.3.12, manual compilation is no longer needed - Workaround added to fix IPTables issues under docker-compose References: #186 https://wiki.debian.org/nftables k3s-io/k3s#1114 moby/libnetwork#2331
hwdsl2
added a commit
to hwdsl2/docker-ipsec-vpn-server
that referenced
this issue
May 10, 2020
- Debian 10 has xl2tpd 1.3.12, manual compilation is no longer needed - Workaround added to fix IPTables issues under docker-compose References: #186 https://wiki.debian.org/nftables k3s-io/k3s#1114 moby/libnetwork#2331
Related firehol/firehol#422 |
usmcfiredog
added a commit
to usmcfiredog/docker-ipsec-vpn-server
that referenced
this issue
Sep 20, 2020
- Debian 10 has xl2tpd 1.3.12, manual compilation is no longer needed - Workaround added to fix IPTables issues under docker-compose References: hwdsl2#186 https://wiki.debian.org/nftables k3s-io/k3s#1114 moby/libnetwork#2331
mbarnes
added a commit
to mbarnes/osmc-ansible
that referenced
this issue
Oct 20, 2020
Per https://docs.docker.com/engine/install/debian/#install-using-the-repository Also, a workaround is necessary to address moby/libnetwork#2331
mbarnes
added a commit
to mbarnes/osmc-ansible
that referenced
this issue
Nov 8, 2020
Per https://docs.docker.com/engine/install/debian/#install-using-the-repository Also, a workaround is necessary to address moby/libnetwork#2331
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description of Issue/Question
Debian Sid (Unstable) uses
iptables-nft
by default now to provide/sbin/iptables
and still provides a/usr/sbin/iptables-legacy
for compatibility.Recent change in docker package that was released into Debian Sid on 1/17/2019 forces docker to favor iptables-legacy binary over the "default" iptables.
This causes "normal" iptables rules to show up under
iptables -S
and docker’s rules only underiptables-legacy -S
Specific impact in my setup was inconsistent iptables configuration and the docker container could not initiate outgoing connections any more.
Setup
I recently upgraded docker package in Debian:
Which on the Debian side has the following change log:
https://tracker.debian.org/news/1021701/accepted-dockerio-18061dfsg1-3-source-all-amd64-into-unstable/
Which seems to introduce the following docker commit:
7da66ee#diff-b90cadcd0928c1e490272f4761a52bac
Checking in the Debian source repo confirms the suspicion:
docker.io 18.06.1+dfsg1-2 https://sources.debian.org/src/docker.io/18.06.1+dfsg1-2/libnetwork/iptables/iptables.go/
docker.io 18.06.1+dfsg1-3 https://sources.debian.org/src/docker.io/18.06.1+dfsg1-3/libnetwork/iptables/iptables.go/
Workaround
When forcing the system to default to iptables-legacy, all rules will show up under iptables-legacy. In my case, the container was then able to initiate outgoing connections again
Logs and other Evidence
18.06.1+dfsg1-2:
18.06.1+dfsg1-3:
The text was updated successfully, but these errors were encountered: