fix some small bugs and make a verify script that you can use to verify external connection

This commit is contained in:
Brendan McDevitt 2022-02-11 20:00:33 -06:00
parent e5576fc449
commit 89523a57f2
2 changed files with 12 additions and 1 deletions

View file

@ -26,5 +26,9 @@ do
echo "${ip}:${squid_port}:admin:ballsofsteel"
done < "$ip_file"
# restart squid after
# first restart networking
# big money, big money, big money
sudo systemctl restart network
# restart squid after.
sudo systemctl restart squid

7
bin/verify.sh Executable file
View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
# run this on a seprate system after deployment has been completed. its just a wrapper around curl
$IP=$1
$PORT=$2
curl --proxy $IP:$PORT --proxy-basic --proxy-user admin:ballsofsteel 'https://ipinfo.io'