My shell portfolio begins

This commit is contained in:
2024-12-11 13:01:29 -06:00
parent aaca49937f
commit c2b1b821f7
41 changed files with 1567 additions and 0 deletions

9
VPNCheck.sh Normal file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
VPN_DNS="usvpn.turnsys.com"
CURRENT_WAN_IP="$(curl -s http://checkip.dyndns.org | sed -E 's/<[^>]*>//g'|awk -F ':' '{print $2}' )"
CURRENT_VPNDNS_IP="$(dig +short $VPN_DNS)"
echo Current WAN IP is: $CURRENT_WAN_IP
echo Current VPN IP is: $CURRENT_VPNDNS_IP