From 7b3125375e211a7b7135ad8b4d6d35b84a69d464 Mon Sep 17 00:00:00 2001 From: ilyvasile Date: Thu, 12 Aug 2021 08:19:24 +0300 Subject: [PATCH] Ipv6 DPI tcp.Rst fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit На ртк с недавних пор стал проходить ipv6 TCP Reset на rutracker.org, сделал небольшой фикс. Но пока не до конца, какая замена ip.Id на ipv6. --- src/goodbyedpi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/goodbyedpi.c b/src/goodbyedpi.c index 3c501d6..f6a26e7 100644 --- a/src/goodbyedpi.c +++ b/src/goodbyedpi.c @@ -76,11 +76,11 @@ WINSOCK_API_LINKAGE INT WSAAPI inet_pton(INT Family, LPCSTR pStringBuf, PVOID pA "(tcp.DstPort == 80 or tcp.DstPort == 443) and tcp.Ack and " \ "(" DIVERT_NO_LOCALNETSv4_DST " or " DIVERT_NO_LOCALNETSv6_DST "))" \ "))" -#define FILTER_PASSIVE_STRING_TEMPLATE "inbound and ip and tcp and " \ +#define FILTER_PASSIVE_STRING_TEMPLATE "inbound and tcp and " \ "!impostor and !loopback and " \ - "((ip.Id <= 0xF and ip.Id >= 0x0) " IPID_TEMPLATE ") and " \ + "(ipv6 or (ip.Id <= 0xF and ip.Id >= 0x0) " IPID_TEMPLATE ") and " \ "(tcp.SrcPort == 443 or tcp.SrcPort == 80) and tcp.Rst and " \ - DIVERT_NO_LOCALNETSv4_SRC + "(" DIVERT_NO_LOCALNETSv4_DST " or " DIVERT_NO_LOCALNETSv6_DST ")" #define SET_HTTP_FRAGMENT_SIZE_OPTION(fragment_size) do { \ if (!http_fragment_size) { \