After follow the fixing method suggested on message #5 by Ramon Garcia,
i.e. Remove the flag -Z from the file
"/usr/lib/python3/dist-packages/firewall/core/ipXtables.py", and then
run the following firewall commands:
firewall-cmd --zone=public --permanent --add-service=ssh
firewall-cmd --zone=public --permanent --add-service=http
firewall-cmd --zone=public --permanent --add-service=https
firewall-cmd --zone=public --permanent --add-icmp-block=echo-request
firewall-cmd --reload
Then error message appears:
Error: COMMAND_FAILED: '/usr/sbin/ip6tables-restore -w -n' failed:
ip6tables-restore v1.8.2 (nf_tables):
line 4: RULE_REPLACE failed (No such file or directory): rule in chain
OUTPUT
If I issue command 'firewall-cmd --list-all', error message 'Error:
INVALID_ZONE' will be displayed.