add wireguard vpn service and randomize script

This commit is contained in:
lucas committed 2026-10-01 14:07:21 +00:00
1 parent fd77d08ef0
commit 3c7272abe5
2 files changed
+13

No files matched your search

+2
View File
@@ -0,0 +1,2 @@
#!/bin/bash
ln -sf "$(find /etc/wireguard -maxdepth 1 -name '*.conf' ! -name 'wg0.conf' | shuf -n1)" /etc/wireguard/wg0.conf
+11
View File
@@ -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