]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Windows: enforce 'block-local' with WFP filters
authorHeiko Hund <heiko@ist.eigentlich.net>
Wed, 5 Jun 2024 12:38:56 +0000 (14:38 +0200)
committerGert Doering <gert@greenie.muc.de>
Wed, 5 Jun 2024 17:22:43 +0000 (19:22 +0200)
commitbf887c95e46c6892ac1f68be5559525f8d975530
treefa6856e37ab0b5401aefb1a53c550b1012be7ef4
parent7dfff75659e6c06abe500f5b8716d9712aa41bcc
Windows: enforce 'block-local' with WFP filters

In an attempt to better defend against the TunnelCrack attacks, enforce
that no traffic can pass to anything else than the VPN interface when
the 'block-local' flags is given with either --redirect-gateway or
--redirect-private.

Reuse much of the existing --block-outside-dns code, but make it more
general, so that it can also block any traffic, not just port 53.

Uses the Windows Filtering Platform for enforcement in addition to the
routes redirecting the networks into the tunnel.

Change-Id: Ic9bf797bfc7e2d471998a84cb0f071db3e4832ba
Signed-off-by: Heiko Hund <heiko@ist.eigentlich.net>
Acked-by: Lev Stipakov <lstipakov@gmail.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20240605123856.26267-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg28717.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
15 files changed:
CMakeLists.txt
doc/man-sections/vpn-network-options.rst
include/openvpn-msg.h
src/openvpn/Makefile.am
src/openvpn/init.c
src/openvpn/route.c
src/openvpn/route.h
src/openvpn/tun.c
src/openvpn/wfp_block.c [moved from src/openvpn/block_dns.c with 63% similarity]
src/openvpn/wfp_block.h [moved from src/openvpn/block_dns.h with 83% similarity]
src/openvpn/win32.c
src/openvpn/win32.h
src/openvpnserv/CMakeLists.txt
src/openvpnserv/Makefile.am
src/openvpnserv/interactive.c