We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The machines running Docker have this configuration in before.rules:
before.rules
*nat :POSTROUTING ACCEPT [0:0] # Masquerade outgoing traffic coming from the docker subnet -A POSTROUTING -o eth0 -s 172.17.0.0/16 -j MASQUERADE -A POSTROUTING -o zt0 -s 172.17.0.0/16 -j MASQUERADE -A POSTROUTING -o zt1 -s 172.17.0.0/16 -j MASQUERADE COMMIT
The problem is that when UFW is reloaded those rules will be duplicated in iptables:
groot@docker1 /tmp/ansible_siren_testdbs # ufw reload Firewall reloaded groot@docker1 /tmp/ansible_siren_testdbs # iptables -t nat -L Chain PREROUTING (policy ACCEPT) target prot opt source destination Chain INPUT (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination Chain POSTROUTING (policy ACCEPT) target prot opt source destination MASQUERADE all -- 172.17.0.0/16 anywhere MASQUERADE all -- 172.17.0.0/16 anywhere MASQUERADE all -- 172.17.0.0/16 anywhere MASQUERADE all -- 172.17.0.0/16 anywhere <--- MASQUERADE all -- 172.17.0.0/16 anywhere <--- MASQUERADE all -- 172.17.0.0/16 anywhere <---
Could be fixed by flushing postrouting if there are no additional nat rules outside of ufw.
The text was updated successfully, but these errors were encountered:
andrewgdotcom
No branches or pull requests
The machines running Docker have this configuration in
before.rules
:The problem is that when UFW is reloaded those rules will be duplicated in iptables:
Could be fixed by flushing postrouting if there are no additional nat rules outside of ufw.
The text was updated successfully, but these errors were encountered: