add wireguard vpn service and randomize script
This commit is contained in:
1 parent
fd77d08ef0
commit
3c7272abe5
2 files changed
+13
No files matched your search
Executable
+2
@@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
ln -sf "$(find /etc/wireguard -maxdepth 1 -name '*.conf' ! -name 'wg0.conf' | shuf -n1)" /etc/wireguard/wg0.conf
|
||||
@@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=Randomize WireGuard config on shutdown
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
ExecStart=/bin/true
|
||||
ExecStop=/home/lucas/scripts/network/wg-randomize.sh
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in new issue
Block a user