scripts for connecting/disconnecting to my VPN

This commit is contained in:
colin 2022-06-22 16:08:58 -07:00
parent 44f63c31da
commit 1d7dc6761f
2 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
echo vpn: $(curl https://ipinfo.io/ip)
sudo systemctl stop wg-quick-ovpnd
echo plain: $(curl https://ipinfo.io/ip)

View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
echo plain: $(curl https://ipinfo.io/ip)
sudo systemctl start wg-quick-ovpnd
echo vpn: $(curl https://ipinfo.io/ip)