diff options
-rwxr-xr-x | bin/algo-config | 8 | ||||
-rw-r--r-- | bin/helpers/algo-config.diff | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/bin/algo-config b/bin/algo-config index 9f02a8c..6304e06 100755 --- a/bin/algo-config +++ b/bin/algo-config @@ -25,6 +25,14 @@ sed 's|^AllowedIPs.*|AllowedIPs = 10.19.49.0/24, fd9d:bc11:4021::/48, 172.16.0.1 scp "$config_path/tozt-not-captive.conf" root@tozt.net:/etc/wireguard/algo.conf cp "$config_path/tozt-not-captive.conf" /mnt/puppet/tozt/wireguard +# bishamon +sed 's|^AllowedIPs.*|AllowedIPs = 10.19.49.0/24, fd9d:bc11:4021::/48, 172.16.0.1/32|' "$config_path/bishamon.conf" > "$config_path/bishamon-not-captive.conf" +scp "$config_path/bishamon-not-captive.conf" root@bishamon:/etc/wireguard/algo.conf + +# mail +sed 's|^AllowedIPs.*|AllowedIPs = 10.19.49.0/24, fd9d:bc11:4021::/48, 172.16.0.1/32|' "$config_path/mail.conf" > "$config_path/mail-not-captive.conf" +scp "$config_path/mail-not-captive.conf" root@mail.tozt.net:/etc/wireguard/algo.conf + # phone echo "algo-captive" sxiv "$config_path/phone.png" diff --git a/bin/helpers/algo-config.diff b/bin/helpers/algo-config.diff index 46cd2ee..d6300e0 100644 --- a/bin/helpers/algo-config.diff +++ b/bin/helpers/algo-config.diff @@ -8,8 +8,8 @@ index 03f439e..ff29497 100644 users: - - dan - - jack ++ - bishamon + - hush -+ - partofme + - phone + - tozt + - mail |