-
-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hostname leak prevention #7701
Comments
Following the above comments, it seems that fedora template, not containing any I didn't do anything special here then selecting the defaults at install to create my disp sys-net based on fedora. Not related, but following each new fedora template download or following in place upgrade and cloning actual template to newer version, the disposable fedora template needs to point to the new parent template, otherwise reusing old template. As far as my testing went, Fedora-34 didn't have The question here is if other templates offered by Qubes offer different hostname leaking behavior, which from the traces above shows that Debian template and others based sys-net qubes are probably leaking sys-net as of today. This issue is about smoothing that behavior difference out, and making sure that what is now in documentation is transferred in implementation for all use cases. |
For consistency, community instructions on how to randomize hostname were removed under Qubes-Community/Contents@4ea74ce It would make sense that all templates remove |
The reason the hostname is not being sent on debian-11 is because /etc/hostname (the static hostname) file is missing (it needs to be present when NetworkManager service is started). I can't confirm what is happening on Fedora or debian-11-minimal but I would say the reason hostname is or is not being sent is due to that file. You can run the command nmcli general hostname to see what hostname NetworkManager is using. If the hostname is blank then nothing will be sent. It is a good thing that this file is missing because I don't believe there is any other way to prevent the hostname being sent globally until https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/584 is resolved. The current method of switching to dhclient and commenting out the send host-name line is not a solution. If the /etc/hostname file is present then dhclient will still send a hostname, regardless of how dhclient is configured. There is another suggestion on the forums that removing dhclient.conf should prevent hostname sending, but this doesn't work either. It would be good to alert the Qubes developers about this so that they don't introduce an /etc/hostname (at least not until the NM bug is resolved). |
In light of https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/2029, I’m marking this as
waiting for upstream
|
Qubes 4.1.1
@andrewdavidwong : That question on preventing sys-net to leak hostname pops up really frequently on the forums.
The solution is documented at https://github.com/Qubes-Community/Contents/blob/master/docs/privacy/anonymizing-your-mac-address.md#prevent-hostname-sending, but who needs documentation when the defaults could be implemented at really low cost. Afterall, all this documentation https://github.com/Qubes-Community/Contents/blob/master/docs/privacy/anonymizing-your-mac-address.md#anonymizing-your-mac-address is still existing which is misleading since MAC randomization is now default under Q4.1 and Q4.0 is now EOL, so the same should probably happen under qubes-core-agent-linux as it was done to implement MAC randomization as a safer default for all under QubesOS/qubes-core-agent-linux#297
Or maybe there is a separate issue for hostname leak prevention I was not able to find, in such case, sorry for the noise and I expect others to be able to find such link in following post.
Link to forum posts I crosslinked here to show user's confusions: https://forum.qubes-os.org/t/change-mac-address-and-hostname-by-default/13182/10
debian-11:
Fedora-34(35)(36):
@adw: I'm not sure why WIFI hotspots under my control are not showing any sys-net hostname anymore, but would love to know if some hidden hostname leak prevention were implemented under Qubes/by default under NetworkManager which is not using dhcp local configurations? @marmarek ? From snippets above, it seems that debian should leak, where fedora should not (or implement some default which is not, which would explain why my disp sys-net based on fedora is not).
Originally posted by @tlaurion in #938 (comment)
The text was updated successfully, but these errors were encountered: