Save the file nic-isolation.service
to /etc/systemd/system/nic-isolation.service
.
Afterwards reload the systemd daemon and enable & start the "service":
sudo systemctl daemon-reload
sudo systemctl enable nic-isolation.service
sudo systemctl start nic-isolation.service
TODO: Improve the security level by enabling some systemd security features: https://www.redhat.com/sysadmin/mastering-systemd