-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
Following instructions from https://www.qubes-os.org/doc/anonymizing-your-mac-address/ and https://www.qubes-os.org/doc/bind-dirs/
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# -*- coding: utf-8 -*- | ||
# vim: set syntax=yaml ts=2 sw=2 sts=2 et : | ||
|
||
## | ||
# qvm.ramdomize-mac | ||
# ================= | ||
# | ||
# Sets sys-net to randomize MAC address as per | ||
# https://www.qubes-os.org/doc/anonymizing-your-mac-address/ | ||
# | ||
# Execute: | ||
# qubesctl state.sls qvm.randomize-mac sys-net | ||
## | ||
|
||
NetworkManager bind-dir config: | ||
file: | ||
- managed | ||
- name: /rw/config/qubes-bind-dirs.d/68_networkmanager.conf | ||
- makedirs: True | ||
- user: root | ||
- group: root | ||
- mode: 0644 | ||
- contents: | ||
- binds+=( '/etc/NetworkManager/conf.d/' ) | ||
|
||
NetworkManager persistent directory: | ||
file: | ||
- directory | ||
- name: /rw/bind-dirs/etc/NetworkManager/conf.d/ | ||
- makedirs: True | ||
|
||
NetworkManager MAC config: | ||
file: | ||
- managed | ||
- name: /rw/bind-dirs/etc/NetworkManager/conf.d/mac.conf | ||
- contents: | | ||
[device] | ||
wifi.scan-rand-mac-address=yes | ||
[connection] | ||
wifi.cloned-mac-address=stable | ||
This comment has been minimized.
Sorry, something went wrong. |
||
ethernet.cloned-mac-address=stable | ||
This comment has been minimized.
Sorry, something went wrong. |
||
connection.stable-id=${CONNECTION}/${BOOT} | ||
- require: | ||
- file: NetworkManager persistent directory |
3 comments
on commit 02738ed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@viq : How would you deploy this for testing?
Trying to wrap my head around QubesOS' salt documentation and whereabouts and official documentation in the goal of merging this and creating new salt recipies
In this case, following your documentation:
under dom0:
sudo cp qvm_randomize-mac.sls /srv/formulas/base/virtual-machines-formula/qvm
sudo qubesctl state.sls qvm.randomize-mac sys-net
Results in:
[ERROR ] Template was specified incorrectly: False
local:
Data failed to compile:
----------
No matching sls found for 'qvm.randomize-mac' in env 'base'
DOM0 configuration failed, not continuing
Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@marmarek? someone?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BTW, this line should be
wifi.cloned-mac-address=random
And stabilized hereafter by user choice, on a per connection base through NetworkManager.