]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
kernel-ipsec: Add flags to enable ICMP error forwarding
authorTobias Brunner <tobias@strongswan.org>
Mon, 7 Feb 2022 13:20:39 +0000 (14:20 +0100)
committerTobias Brunner <tobias@strongswan.org>
Thu, 12 Feb 2026 13:23:44 +0000 (14:23 +0100)
For the Linux kernel, this has to be enabled on the inbound SA and the
out and fwd policies.

src/libcharon/kernel/kernel_ipsec.h

index 3ef5811d9d7d83baec691a56ad10cfe2ee4f3bd1..b6de950071ac24d804b4bca63bd7dca32c64a6de 100644 (file)
@@ -115,6 +115,8 @@ struct kernel_ipsec_add_sa_t {
        dscp_copy_t copy_dscp;
        /** TRUE if the peer doesn't support receiving fragments in AGGFRAG pkts */
        bool iptfs_dont_frag;
+       /** Whether to automatically forward certain ICMP error messages */
+       bool forward_icmp;
        /** TRUE if initiator of the exchange creating the SA */
        bool initiator;
        /** TRUE if this is an inbound SA */
@@ -190,6 +192,8 @@ struct kernel_ipsec_manage_policy_t {
        hw_offload_t hw_offload;
        /** Enable per-CPU acquires */
        bool pcpu_acquires;
+       /** Whether to automatically forward certain ICMP error messages */
+       bool forward_icmp;
        /** Source address of the SA(s) tied to this policy */
        host_t *src;
        /** Destination address of the SA(s) tied to this policy */