In this case, use “rich rule” as below:
# firewall-cmd --permanent --zone=public --add-rich-rule='rule family="ipv4" source address="xxx.xxx.xxx.xxx" port port="xxxx" protocol="xxx" accept'
# firewall-cmd --reload
In this case, use “rich rule” as below:
# firewall-cmd --permanent --zone=public --add-rich-rule='rule family="ipv4" source address="xxx.xxx.xxx.xxx" port port="xxxx" protocol="xxx" accept'
# firewall-cmd --reload
Simply run:
# hostnamectl set-hostname <HOSTNAME>
And then logout and login again.
Server name should be changed without reboot.