firewalld防火牆

firewall-cmd --add-service={http,https,smtp,imap,smtps,imaps,ssh,wireguard} --permanent --zone=public

vim /etc/firewalld/firewalld.conf
有個InvividualCalls=no 把它改成InvividualCalls=yes
儲存離開
sudo systemctl restart firewalld