]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commit
ipsec: Add block rules to avoid conntrack entries ipsec-conntrack
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 3 Oct 2015 21:18:52 +0000 (22:18 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 3 Oct 2015 21:29:32 +0000 (22:29 +0100)
commit58f35e7cba56ded43fd56d8033389bc943b86040
treee6b1d80273b421b4e8f17a06812a1543fbc670dc
parentc5a5e4abb043abe1c5cecbdf15b28b03f74f4734
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
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