]> git.ipfire.org Git - people/mfischer/ipfire-2.x.git/commit
strongswan: Create firewall rules for outgoing IPsec traffic as well
authorPeter Müller <peter.mueller@ipfire.org>
Sun, 16 Jun 2024 15:36:00 +0000 (15:36 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 2 Jul 2024 09:11:36 +0000 (09:11 +0000)
commit893a6ff865e08413e136c81ebc4cbf9d51dee0d6
tree8399b11ccc672bdc1991a9b11d91fd6f1cce0563
parent2c40c9a91b33fe25937a2f7605c81eb6c1fc02cf
strongswan: Create firewall rules for outgoing IPsec traffic as well

This will avoid outgoing IPsec traffic being dropped by IPFire itself,
if the default firewall behavior for outgoing traffic is set to
"blocked", and no appropriate rules have been manually configured in the
web interface.

To ensure configured IPsec tunnels will always work flawlessly,
regardless of the firewall default policy and any manually created
firewall rules, create and delete outgoing iptables rules accordingly
when bringing an IPsec connection up or down.

Tested-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/patches/strongswan-ipfire.patch