You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ufw steps in the unsafe routes guide add a *nat block to /etc/ufw/before.rules that starts with -F POSTROUTING. That empties the whole NAT POSTROUTING chain every time ufw loads its rules, including rules other software added.
On a host that also runs Docker, ufw reload removes Docker's MASQUERADE rule and containers lose outbound connectivity until Docker is restarted.
With this, Docker's rule survives repeated ufw reloads and a reboot, the jump isn't duplicated, and ufw disable removes it. Putting the jump in before.rules instead doesn't work: a -D for a rule that isn't there yet aborts the block and ufw fails to start.
Activity