Sys-net stopped randomizing

I connected to a network yesterday and checked my sys-net to see if it was randomizing. It now says user@sys-net. Has anyone encountered this issue or know what caused it/how to fix it? It was working fine on the last connection I made. Thanks! Running 4.2.3.

Are you connecting with WiFi or Ethernet?

Give more details about where do you see it and what else did you expect to see.

I was connecting to public WiFi as usual. I looked in my sys-net xfce terminal where the randomized hostname is usually there; ā€œsyn.2600.XXXX etcā€¦ā€. and it just said ā€œuser@sys-netā€.

I went checked /etc/dhcp/dhclient on sys-net as advised on the forums and uncommented ā€œshow hostnameā€, which showed me the usual randomized hostname, but didnā€™t change it, and for some reason even though my sys-net is not disposable, the changes I make to the file arenā€™t persistent. This is very odd and somewhat concerning. Iā€™d really hate to have to reinstall again for such a thing.

Use bind-dirs to edit files outside of /home/user and /usr/local directories in app qubes:
How to make any file persistent (bind-dirs) | Qubes OS
Templates | Qubes OS

1 Like

Perhaps Iā€™m doing something wrong but nothing on that page worked. I tried in the template itā€™s based on but still no persistence, is there something special about the sys-net qube/template? I never mess with the sys-net qube, it just stopped randomizing. Iā€™m considering reinstalling at this point because itā€™s been 3 hours and iā€™m frustrated. But I really want to know what caused it. Thanks for your help!

Post the instructions to enable the hostname randomizing that you used.

first i tried your suggestion and then I tried this, thereā€™s a section on hostname:

This:

Wonā€™t change the hostname, itā€™d just stop DHCP client from sending your hostname.

I reinstalled it and it still says user@sys-net, so it must be some update that caused it. Seems counter productive. Is there anyone who knows how to fix this? Also, another thing Iā€™m going to make a post about is why ā€˜qvm-copy-to-vmā€™ no longer works with appVMs and how I should use ā€˜qvm-copyā€™ to transfer between whonix workstation and whonix gateway.(I wrote a guide on how to use snowflake in Qubes/whonix and now i need to learn how to implement my Snowlake guide with these new qvm-copy commands)

Which guide did you use to randomize the hostname?

none of them did, the one you posted with the dhcp stuff let me see the randomized hostname in the terminal as grey text along some other connections or something, and localhost or something, Iā€™m having trouble finding it, but it didnā€™t change the host name, iā€™m trying to learn this new qvm-copy command so i can copy the snowflake client from whonix workstation template to whonix gateway template as per my guide to fix snowflake. iā€™m editing that right now. I donā€™t know what to do about this hostname thing. Maybe devs will have an answer, it is making me want to roll back to the last update. or even go back to kvm whonix on debian which was annoying to build. Iā€™m not trying to blast that Iā€™m using qubes everywhere I go. Sorry if my response is erratic, i need to have a molar removed from my mouth and itā€™s incredibly painful.

Setting dhcp-send-hostname=false in the NetworkManager config wouldnā€™t change your hostname so you did something else to randomize the hostname.

no it used to just come that way opening sys-net xfce terminal, i even reinstalled the whole system just now to check if it was that. itā€™s not. today was the first day i realized the hostname wasnā€™t randomized by default, and it was after updates.

The hostname in sys-net never was randomized by default, it was your custom change in some config file. I guess youā€™ve changed come config in the template of sys-net qube and this config was overwritten with default config when some package updated.

but i never mess with sys-net, never have. I wouldnā€™t even know what to put in the config to randomize it or where that even goes.

You did change it here:

Try to make this change in the template of sys-net if the bind-dirs are not working. Maybe the bind-dirs are mounted after this config file is read and old config is used by the system.

If you want to avoid leaking your hostname (e.g. ā€œsys-netā€ in a Qubes OS context) to the DHCP server, the solution does not involve randomizing the hostname! Instead, tell the DHCP client to not send any hostname at all. Luckily, not sending any hostname is already the default behavior for the default DHCP client used by NetworkManager (which isnā€™t dhclient, but a built-in internal implementation) - as long as the file /etc/hostname doesnā€™t exist in sys-net.

Thank you for clearing that up. But do you remember the randomized sys-net hostnames that changed on every connection by default before? This coincides with the qvm-copy-to-vm depreciation to ā€˜qvm-copyā€™ etc, i just had to rewrite my qubes-whonix snowflake guide because of it and that was in september that I wrote it and it used 'qvm-copy-to-vm".

As far as i have always known, if ever opened up sys-net terminal it always had this randomized host name that would sometimes include name of the ISP. I did not make it do that(to my knowledge). Sorry if I caused any confusion and Iā€™ll delete this thread if it is completely pointless(i donā€™t think it is though.) Iā€™m sorry if this was a pointless thread. Thank you guys for your help! I think I finished rewriting my Qubes-Whonix snowflake guide for ā€˜qvm-copyā€™

1 Like

Hmm, Iā€™ve never seen that with my Fedora-based sys-net.

Yes, it was a custom script which was propagated via qubes-community doc when it was still a git repo (and probably written by me). It was never upstreamed to Qubes OS. IIRC I removed it ~2 years back and replaced it with the current recommendations as I believe them to be more reasonable (random hostname is relatively obvious, too, imho; and if not sending a hostname becomes standard, itā€™s the most anonymous solution). Btw I even remember some lengthy discussion [1] about my decisionā€¦ Anyway Qubes OS upstreamed many settings for Wifi as Marek had apparently read the guideā€¦ :wink:
I havenā€™t touched anything since.

[1] Anonymizing hostname doesn't work on Debian 11 minimal sys-net Ā· Issue #217 Ā· Qubes-Community/Contents Ā· GitHub

2 Likes