How can I write a rule for firewalld
using rich language which restricts packets from a particular port and particular protocol. For IP tables I wrote a rule like:
firewall-cmd --permanent --direct --add-rule ipv4 filter SCTP 0 -p sctp --dport 2905 -j ACCEPT
How do I convert it into rich language? Also how are we intended to define state in rich language?