Information
Configure the firewall rules for new outbound connections.
Notes:
Changing firewall settings while connected over network can result in being locked out of the system.
Unlike iptables, when a new outbound rule is added, ufw automatically takes care of associated established connections, so no rules for the latter kind are required.
Rationale:
If rules are not in place for new outbound connections all packets will be dropped by the default policy preventing network usage.
Solution
Configure ufw in accordance with site policy. The following commands will implement a policy to allow all outbound connections on all interfaces:
# ufw allow out on all