]> git.ipfire.org Git - ipfire-2.x.git/commit
ipsec: Add block rules to avoid conntrack entries
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 3 Oct 2015 21:31:53 +0000 (22:31 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 15 Oct 2015 21:44:47 +0000 (22:44 +0100)
commit80fbd8994934af3ac99d91a45ab1130e41a26ece
tree544c94effec9431df310def8b205900e60a926eb
parent2158e11ba983abbc747907d35d9fe36ca4295276
ipsec: Add block rules to avoid conntrack entries

If an IPsec VPN connections is not established, there are
rare cases when packets are supposed to be sent through
that said tunnel and incorrectly handled.

Those packets are sent to the default gateway an entry
for this connection is created in the connection tracking
table (usually only happens to UDP). All following packets
are sent the same route even after the tunnel has been
brought up. That leads to SIP phones not being able to
register among other things.

This patch adds firewall rules that these packets are
rejected. That will sent a notification to the client
that the tunnel is not up and avoid the connection to
be added to the connection tracking table.

Apart from a small performance penalty there should
be no other side-effects.

Fixes: #10908
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Cc: tomvend@rymes.com
Cc: daniel.weismueller@ipfire.org
Cc: morlix@morlix.de
Reviewed-by: Timo Eissler <timo.eissler@ipfire.org>
config/firewall/ipsec-block [new file with mode: 0644]
config/rootfiles/common/stage2
config/rootfiles/common/x86_64/stage2
lfs/stage2
src/initscripts/init.d/firewall
src/misc-progs/ipsecctrl.c