Question: ufw how to block ipv6?
Answer: Enable/Disable IPv6 Disable IPv6 support if your system is not configured to use IPv6. To do it edit /etc/default/ufw and set IPV6 “yes” or “no”.