On 2023-04-26 08:45, Per Jessen wrote:
Carlos E. R. wrote:
(Can I write comments in xml file /etc/firewalld/zones/external.xml?)
Yes, use "<!-- comment -->". Can span multiple lines.
We went over this, but it is even worse: Telcontar:/etc/firewalld # firewall-cmd --check-config Error: INVALID_ZONE: 'external.xml': not a valid zone file: mismatched tag: line 176, column 4 Telcontar:/etc/firewalld # <rule family="ipv4"> <source address="192.168.0.0/16"/> <port port="20" protocol="tcp"/> <accept/> </rule> <!-- comment --> <rule family="ipv4"> <source address="192.168.1.57/32"/> <port port="53633" protocol="tcp"/> <accept/> </rule> Can't write comments in the file at all, even renouncing to using the commands. -- Cheers / Saludos, Carlos E. R. (from 15.4 x86_64 at Telcontar)