qubes-issues
qubes-issues copied to clipboard
After recent update, Windows HVM can no longer network through Whonix gateway
Qubes OS release
4.2.4
Brief summary
A number of users on the Forum report that Windows HVM can no longet network through Whonix. HVM that worked previously have stopped working.
Steps to reproduce
Use Windows HVM with sys-whonix as netvm, networking enabled. Update Whonix
Expected behavior
Networking in the Windwos qube will continue to work.
Actual behavior
Forum user jxadceno reports: however suddenly after updating whonix-gateway all networking to the HVM is broken, showing "Unidentified network".
User dexter05 reports: sys-whonix -> windows HVM (not working after last update, worked fine for years) sys-whonix -> sys-vpn -> windows HVM (works fine, go figure) The Windows error code is 10060. Winsock timeout error.
Additional information
Forum thread is in User Support - "Windows HVM + sys-whonix networking suddenly broken"
This looks to be related to arp_ignore=2 setting (/proc/sys/net/ipv4/all/arp_ignore and similar in per-interface directory). Setting it to 0 in both places fixes the issue.
arp_ignore=2 is set since https://github.com/Kicksecure/security-misc/commit/c37f4efadf8f046168732871172cb66f58eb7c78, but that's 6 months old change, not exactly recent update. Maybe there is some other part of the puzzle.
It still works with arp_ignore=1, it's 2 that is problematic:
- 2 - reply only if the target IP address is local address
configured on the incoming interface and both with the
sender's IP address are part from same subnet on this interface
Since the network is set to /32, the last condition isn't met.
Changing arp_ignore=2 to arp_ignore=1 has now been documented: https://www.whonix.org/wiki/Other_Operating_Systems#Gateway_configuration
@marmarek I assume since you were able to establish that this worked, that you have a Windows qube already? If so, could you test these instructions and make sure they work? I can install Windows in a qube for testing if that's preferable, but would prefer to avoid that since it'll take a lot of time.
Actually no, I used Linux HVM to reproduce the issue, just used QEMU-emulated network (as non-QWT Windows does) by adding xen_emul_unplug=unnecessary option on Linux cmdline. You'll end up with two network interfaces then and the QEMU-emulated one should normally work (but due to arp_ignore doesn't).
Ah, ok. I'll give it a shot then.
could you test these instructions
- Run: sudo /etc/sysctl.d/99_user.conf
Missing editor command, or was it supposed to be sudoedit?
mmm, missing editor command, good catch.
https://forum.qubes-os.org/t/windows-hvm-sys-whonix-networking-suddenly-broken/34017/26
Closable?