From 89523a57f27ad92d36df5bb1a3de562684c6f4e5 Mon Sep 17 00:00:00 2001 From: Brendan McDevitt Date: Fri, 11 Feb 2022 20:00:33 -0600 Subject: [PATCH] fix some small bugs and make a verify script that you can use to verify external connection --- bin/bootstrap.sh | 6 +++++- bin/verify.sh | 7 +++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100755 bin/verify.sh diff --git a/bin/bootstrap.sh b/bin/bootstrap.sh index 113e912..f614794 100755 --- a/bin/bootstrap.sh +++ b/bin/bootstrap.sh @@ -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 diff --git a/bin/verify.sh b/bin/verify.sh new file mode 100755 index 0000000..421f07c --- /dev/null +++ b/bin/verify.sh @@ -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'