Open Mike-the-one opened 3 years ago
Hi, thank you.
The easiest way is to add a bypass rule manually.
sudo iptables -I DOCKER-USER 1 -j RETURN
this command will add a rule to bypass all following rules.
Using sudo iptables -n -L DOCKER-USER
to list rules in the chain, we will find the bypass rule.
sudo iptables -D DOCKER-USER 1
to delete the first rule of this chain.
Happy new year!
First, thanks for the information. It works great in a swarm cluster.
But I have one small issue, how to completely disable firewall after these changes?
I tried
ufw disable
still not able to access container from public network.Removed the new stuff added in
/etc/ufw/after.rules
, followed by aufw reload
andufw disable
did not work.The only thing worked is to remove the new stuff in
after.rules
, andufw disable
andufw disable
then reboot.Any quick way to turn off these rules without a reboot?
thanks