[Bug]: The DHCP client broadcast request was intercepted.
Platform
Windows
ProxyBridge Version
3.2.0
OS and Version
Windows 11 24H2 26100.8457
Documentation
- [x] I have read the Windows documentation
- [ ] I have read the macOS documentation
- [ ] I have read the Linux documentation
Code Review
- [ ] I have gone through the code page
Describe the Bug
When ProxyBridge is enabled and the following commands are executed, Windows fails to re-acquire an address via DHCP. Packet capture suggests that ProxyBridge is intercepting DHCP request broadcast packets; Wireshark does not capture the corresponding request packets. However, if an address has already been acquired and only the renew command is executed, the request—sent as a unicast packet—passes through successfully, and Wireshark captures the corresponding request packets. The full set of commands is as follows: netsh interface ipv4 show config name="WLAN" ipconfig /release "WLAN" ipconfig /renew "WLAN"
Additional Context
No response
Can you check with beta 4.x version? Dhcp fix is added
Can you check with beta 4.x version? Dhcp fix is added
This issue still persists in version 4.0.2-beta.
https://github.com/user-attachments/assets/a36f5308-1120-4e41-bdd1-de94944f0426
Can you confirm what the proxy config and rule are?
I have verified it's working with no issues. The code already has DHCP passthrough, and I have double-checked. It's working with no issues. Same IP renewal is also working for me.
Can you also confirm if it's IPv6 or V4?
It involves IPv4. After I executed the ipconfig /renew "WLAN" command, I saw the following entry in the software logs; it appears the software captured the DHCP request but failed to forward it correctly. The software rules only match specific applications, with no other special configurations.
Packet are never captured:)
Its just network logs dhcp is always directly handled not maanged by ProxyBridge directly.
I have tested the same 3 different window with different network wired and wireless and its working with no issues.
Can you try on different system to verify if issues is from your system.
No issues identified in ProxyBridge since dhcp is not processed by the application.
I observed the same behavior when testing on a Windows 10 LTSC 21H2 VM in PVE. It is reasonable to suspect that there is something unique about the LTSC edition, isn't it?
I encountered the same problem on Windows.
@eldoradoel @Moordor i am still not able to replicate it for some reason to test this. Can you try with latest beta version check if that fix it for you. ProxyBridge-Setup-4.0.6-Beta.zip
The issue persists, and there doesn't seem to be a better way to troubleshoot it. Do you have any good ideas for how to investigate this further?
Nope, From the code side i have verified as it doesn't have any issues there. There is a code for dhcp flow that excludes any proxy or routing on dhcp packet.
I have verified with debugger the code is working as expected in my case i tired dhcp for wired and wireless both and it worked. I have tried debugging on 2 3 vms and 1 host machine all worked for dhcp.
Unless if you can provide some more details i cannot figure out the cause. Either there is a specific config , network settings or your network itself is using something i am not aware of. Maybe window itself. If i remember correctly there was another dhcp issue someone reported and it was due to some windows issue not sure.
I’d like to ask: when you tested the ipconfig /release "WLAN" and ipconfig /renew "WLAN" commands, did you see any packets sent by svchost.exe via ports 67 and 68 in the logs?
Yes, as i said in all cases dhcp worked for me with all required process including svchost. Since you mentioned you are using LTSC. That could be an issue i don't think so but just in case can you try with Windows pro or home etc edition?
@Anof-cyber Hi! I did some additional testing on the latest release (v4.0.0) as well as the beta (v4.0.6), and the behavior remains the same: the PC does not receive an IP address from the DHCP server while ProxyBridge is running.
I also verified this on several other PCs running Windows 11 Pro within the same network—the issue is present on those machines as well.
My System Specifications: OS: Windows 11 Pro (Version 25H2) OS Build: 26200.7462 DHCP Server: isc-dhcpd-4.2.5
snprintf(filter, sizeof(filter),
"not impostor and "
"("
"not udp or "
"("
"udp.SrcPort != 67 and udp.DstPort != 67 and "
"udp.SrcPort != 68 and udp.DstPort != 68 and "
"udp.SrcPort != 546 and udp.DstPort != 546 and "
"udp.SrcPort != 547 and udp.DstPort != 547"
")"
") 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 inbound and udp.SrcPort == 53) or "
"(ipv6 and udp and inbound 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))"
")",
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);
I modified the code as shown above and my problem was resolved; I only tested it on Windows. @a-moor @Moordor You could test whether the issue has been resolved in your Windows environment. https://github.com/eldoradoel/ProxyBridge/actions/runs/28437448981/artifacts/7977710644
@eldoradoel Yes, with this build, DHCP has started working correctly, but the core functionality of ProxyBridge is now broken. The software that is supposed to route through the proxy completely stops working.
DHCP is completely excluded in the latest beta. if anyone can try and validate.
https://github.com/InterceptSuite/ProxyBridge/discussions/190
DHCP is completely excluded in the latest beta. if anyone can try and validate.
This issue has been resolved after testing; thank very much.
I switched from v4.0.0-beta to v4.0.13-beta, and the problem was resolved. In my case, the problem occurred when connecting to the esp32s3 in AP mode. The problem did not occur with home Wi‑Fi.