Added additional service files for multiple device management (beginning of)

master
RightToPrivacy 2022-09-10 17:41:36 +00:00
parent 6ef231616f
commit 475d4e2e34
4 changed files with 79 additions and 15 deletions

View File

@ -14,17 +14,19 @@ Just run the install.sh and answer the simple questions to let wipri take care o
* NEW * wipri-list (option) allows you to create random yet valid OUI lists (or single quasi-perm mac file!), flags to select at random a mac from list, set it, remove, generate new ones to list, etc.
* NEW * wipri-eth0.service, wipri-eth0-usb.service are additional example service files helping you manage multiple devices. Instructions provided within .service files
---
#### wipri-list Command:
TIP: Want a single 'quasi-permanent' mac address option for ethernet access control list (or wifi)?
Easy!
Easy:
Set up wipri service automatically by running install.sh and choosing: wipri-list -s eth0 (replace eth0 with your device, be it wifi or ethernet) command as your answer on initial install.sh 'boot' question.
Above is easy. Running install.sh automatically creates the first wipri-list valid mac address, adding it to wipri-list's list (during install).
Running install.sh automatically creates the first wipri-list valid mac address, adding it to wipri-list's list (during install).
Since it automatically creates that first mac in your wipri-list 'list', you could leave it to create a single quasi-perm mac address service.
@ -46,7 +48,7 @@ The example wipri-eth0.service file can be edited to use commands to your liking
Once you are happy with the wipri related command flags and device name (eth0 in example for ethernet), you can then run following commands to activate the wipri-eth0.service file (to maintain quasi-perm mac address, or changing list at each boot for ethernet example)
Activating Example wipri-eth0.service File (after running install.sh installs wipri):
Activating Example wipri-eth0.service / wipri-eth0-usb.service File (after running install.sh installs wipri):
sudo cp wipri-eth0.service /etc/systemd/system
@ -232,4 +234,4 @@ BRANDNEWTUBE: https://brandnewtube.com/@RightToPrivacy (NEW)
#### CONTACT / INQURE
<righttoprivacy[at]tutanota.com>
---
---

44
wipri-eth0-usb.service Normal file
View File

@ -0,0 +1,44 @@
# Contents of /etc/systemd/system/wipri-eth0-usb.service
# This is an example file used for adding additional wipri usb ethernet service
#
# Instructions to use this file for added wipri ethernet usb device service:
#
# 1.) Run install.sh (as root) to automatically install wipri either as command or for single device boot (for wifi for example)
# 2.) Edit this file to change flag (-i is all brands) and match eth0 to your ethernet device (eth0 most common - substitute for your ethernet dev)
# 3.) Copy this wipri-eth0-usb.service file using command below:
# sudo cp wipri-eth0-usb.service /etc/systemd/system/wipri-eth0-usb.service
# 4.) Run the following commands to load and enable eth0 randomization at boot:
# sudo systemctl daemon-reload
# sudo systemctl enable wipri-eth0-usb.service
# 5.) Now, next time you boot, your eth0 device should be using wipri.
#
# STOPPING WIPRI BOOT SERVICE / DISABLING FUTURE BOOT SERVICE FROM STARTING:
#
# STOP WIPRI ETHERNET SERVICE: sudo systemctl stop wipri-eth0-usb
# DISABLE WIPRI ETHERNET SERVICE: sudo systemctl disable wipri-eth0-usb
#
# DISABLING wipri-eth0-usb will prevent it from starting next boot.
# If you have problems, follow above command to STOP wipri-eth0 to end process
#
# Have fun!
# righttoprivacy[at]tutanota.com
# Tutorials / Support: https://buymeacoffee.com/politictech
#
[Unit]
Description=WiPri eth0 (USB) Privacy Enhancement
# Change mac
Before=boot.mount
DefaultDependencies=no
# Feel free to change wipri commands below to meet your needs/wants
[Service]
Type=simple
ExecStart=wipri -d eth0 -p
ExecReload=killall -9 wipri;wipri -d eth0 -p
ExecStop=killall -9 wipri
Restart=on-failure
RemainAfterExit=no
[Install]
WantedBy=basic.target

View File

@ -1,16 +1,18 @@
# Contents of /etc/systemd/system/wipri.service
# This is an example file used for adding 2nd service for wipri for ethernet
#
# Instructions to use this file:
# Instructions to use this file for added wipri ethernet device service:
#
# 1.) Install wipri either as command or boot (for wifi for example)
# 2.) Edit this file to change flag (-i is all brands) and eth0 to your ethernet device (eth0 most common)
# 1.) Run install.sh (as root) to automatically install wipri either as command or for single device boot (for wifi for example)
# 2.) Edit this file to change flag (-i is all brands) and eth0 to your ethernet device (eth0 most common - substitute for your ethernet dev)
# 3.) Copy this wipri-eth0.service file using command below:
# sudo cp wipri-eth0.service /etc/systemd/system/wipri-eth0.service
# 4.) Run the following commands to load and enable eth0 randomization at boot:
# sudo systemctl daemon-reload
# sudo systemctl enable wipri-eth0.service
# 5.) Now next time you boot, your eth0 device should be using wipri!
# 5.) Now, next time you boot, your eth0 device should be using wipri.
#
# STOPPING WIPRI BOOT SERVICE / DISABLING FUTURE BOOT SERVICE FROM STARTING:
#
# STOP WIPRI ETHERNET SERVICE: sudo systemctl stop wipri-eth0
# DISABLE WIPRI ETHERNET SERVICE: sudo systemctl disable wipri-eth0

View File

@ -1,21 +1,37 @@
# Contents of /etc/systemd/system/wipri.service
# This is an example file used for adding 2nd service for wipri for ethernet
#
# Instructions to use this file:
#
# Run install.sh to automatically install wipri either as command, or command + boot (for wifi dev as example)
#
# STOPPING OR DISABLING WIPRI AS A SERVICE (ie: BOOT):
#
# STOP WIPRI SERVICE: sudo systemctl stop wipri
# DISABLE WIPRI SERVICE: sudo systemctl disable wipri
#
# DISABLING wipri will prevent it from starting on boot.
# If you have problems, follow above command to STOP wipri to end process
#
# Have fun!
# righttoprivacy[at]tutanota.com
# Tutorials / Support: https://buymeacoffee.com/politictech
#
[Unit]
Description=WiPri Meta/MAC/Privacy Enhancement
Description=WiPri Privacy Enhancement
# Change mac
Before=basic.target
After=boot.mount
Before=boot.mount
DefaultDependencies=no
# Feel free to change wipri commands below to meet your needs/wants
# install *WILL* use the commands below, edit as needed before running install.sh!
[Service]
Type=simple
ExecStart=/usr/bin/wipri -d wlan0 -i
ExecReload=killall -9 wipri;/usr/bin/wipri -d wlan0 -i
ExecStart=wipri -d wlan0 -p
ExecReload=killall -9 wipri;wipri -d wlan0 -p
ExecStop=killall -9 wipri
Restart=on-failure
RemainAfterExit=no
[Install]
WantedBy=basic.target