Force Proxy to any Windows/MacOS/Linux Application TCP and UDP traffic
C ccybersecurityhttp3httpproxylinuxlinux-proxymacosmacos-appmacos-proxyproxifierproxifier-alternativeproxyclienttcpthick-clientudpwindivertwindows
#161 - ALL DHCP excluded from userspace exclude and kernel space
AnoF-Cyber8905e423f331
diff --git a/Windows/cli/main.c b/Windows/cli/main.cindex 7c4e789..03d4191 100644--- a/Windows/cli/main.c+++ b/Windows/cli/main.c@@ -16,7 +16,7 @@#pragma comment(lib, "advapi32.lib")-#define VERSION "4.0.8-Beta"+#define VERSION "4.0.9-Beta"#define MAX_PROXY_CONFIGS 16#define MAX_RULES 256diff --git a/Windows/gui/ProxyBridge.GUI.csproj b/Windows/gui/ProxyBridge.GUI.csprojindex 036b588..ec23792 100644--- a/Windows/gui/ProxyBridge.GUI.csproj+++ b/Windows/gui/ProxyBridge.GUI.csproj@@ -7,9 +7,9 @@<ApplicationManifest>app.manifest</ApplicationManifest><AssemblyName>ProxyBridge</AssemblyName><RootNamespace>ProxyBridge.GUI</RootNamespace>- <Version>4.0.8-Beta</Version>- <AssemblyVersion>4.0.8</AssemblyVersion>- <FileVersion>4.0.8</FileVersion>+ <Version>4.0.9-Beta</Version>+ <AssemblyVersion>4.0.9</AssemblyVersion>+ <FileVersion>4.0.9</FileVersion><ApplicationIcon>Assets\logo.ico</ApplicationIcon><Company>InterceptSuite</Company><Product>ProxyBridge</Product>diff --git a/Windows/installer/ProxyBridge.nsi b/Windows/installer/ProxyBridge.nsiindex 3e68692..46c23e7 100644--- a/Windows/installer/ProxyBridge.nsi+++ b/Windows/installer/ProxyBridge.nsi@@ -1,5 +1,5 @@!define PRODUCT_NAME "ProxyBridge"-!define PRODUCT_VERSION "4.0.8-Beta"+!define PRODUCT_VERSION "4.0.9-Beta"!define PRODUCT_PUBLISHER "InterceptSuite"!define PRODUCT_WEB_SITE "https://github.com/InterceptSuite/ProxyBridge"!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"@@ -8,7 +8,7 @@Unicode True; Version Information-VIProductVersion "4.0.8.0"+VIProductVersion "4.0.9.0"VIAddVersionKey "ProductName" "${PRODUCT_NAME}"VIAddVersionKey "ProductVersion" "${PRODUCT_VERSION}"VIAddVersionKey "CompanyName" "${PRODUCT_PUBLISHER}"diff --git a/Windows/src/ProxyBridge.c b/Windows/src/ProxyBridge.cindex 0209bc4..2635376 100644--- a/Windows/src/ProxyBridge.c+++ b/Windows/src/ProxyBridge.c@@ -17,7 +17,7 @@#define LOCAL_PROXY_PORT 34010#define LOCAL_UDP_RELAY_PORT 34011 // its running UDP port still make sure to not run on same port as TCP, opening same port and tcp and udp cause issue and handling port at relay server response injection#define MAX_PROCESS_NAME 1024-#define VERSION "4.0.8-Beta"+#define VERSION "4.0.9-Beta"#define PID_CACHE_SIZE 1024#define PID_CACHE_TTL_MS 30000// Single packet-processor thread eliminates TCP packet reordering.@@ -4891,14 +4891,19 @@ PROXYBRIDGE_API BOOL ProxyBridge_Start(void)// re-injection loops that delay delivery by seconds and cause DTLS handshake// failures. With "not impostor", injected packets bypass the driver entirely// and flow directly to the OS — zero extra hops, no loops.+ // DHCP is deliberately excluded at the filter level so those packets never enter+ // ProxyBridge at all. DHCP is link-local broadcast (0.0.0.0 -> 255.255.255.255) and+ // #161 DHCPv4: client 68 / server 67 DHCPv6: client 546 / server 547snprintf(filter, sizeof(filter),"not impostor and (""(tcp and (outbound or loopback or (tcp.DstPort == %d or tcp.SrcPort == %d))) or "- "(udp and (outbound or loopback or (udp.DstPort == %d or udp.SrcPort == %d))) or "+ "(udp and (outbound or loopback or (udp.DstPort == %d or udp.SrcPort == %d)) and "+ "udp.SrcPort != 67 and udp.DstPort != 67 and udp.SrcPort != 68 and udp.DstPort != 68) or ""(udp and not outbound and udp.SrcPort == 53) or ""(ipv6 and udp and not outbound and udp.SrcPort == 53) or ""(ipv6 and tcp and (outbound or loopback or (tcp.DstPort == %d or tcp.SrcPort == %d))) or "- "(ipv6 and udp and (outbound or loopback or (udp.DstPort == %d or udp.SrcPort == %d))))",+ "(ipv6 and udp and (outbound or loopback or (udp.DstPort == %d or udp.SrcPort == %d)) and "+ "udp.SrcPort != 546 and udp.DstPort != 546 and udp.SrcPort != 547 and udp.DstPort != 547))",g_local_relay_port, g_local_relay_port, LOCAL_UDP_RELAY_PORT, LOCAL_UDP_RELAY_PORT,g_local_relay_port, g_local_relay_port, LOCAL_UDP_RELAY_PORT, LOCAL_UDP_RELAY_PORT);