I have the following zones that are relevant for this question.
- SemiTrusted and
- Public
I want to treat IPSEC-encrypted traffic (that is coming from some specific IP addresses) as belonging to SemiTrusted.
In iptables I would use policy matching to use a semitrusted chain.
How can I achieve this with firewalld. I did not see any mention of policy in the firewalld man pages and did not see how to match based on ipsec policy in firewalld.richlanguage(5).
I assume I can use firewalld.direct(5) but I don't know how to integrate it with the other firewalld.zone(5)-based configuration.
edit: To make it clear, I don't want to open ipsec ports in zone SemiTrusted. That is trivial.