From 09418cfaea17d006cce392b6d25d21e8a084e3e4 Mon Sep 17 00:00:00 2001 From: sem Date: Wed, 14 Dec 2022 23:03:08 +0300 Subject: [PATCH] Utils --- Installers/README.md | 4 ++-- Installers/tinyproxy.sh | 12 ++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 Installers/tinyproxy.sh diff --git a/Installers/README.md b/Installers/README.md index bfd195e..2673ac3 100644 --- a/Installers/README.md +++ b/Installers/README.md @@ -21,7 +21,7 @@ rust: . <(wget -qO- http://astrader.net:3006/sem/Utils/raw/branch/main/Installers/rust.sh) ``` -squid: +tinyproxy: ```bash -. <(wget -qO- http://astrader.net:3006/sem/Utils/raw/branch/main/Installers/squid.sh) +. <(wget -qO- http://astrader.net:3006/sem/Utils/raw/branch/main/Installers/tinyproxy.sh) ``` \ No newline at end of file diff --git a/Installers/tinyproxy.sh b/Installers/tinyproxy.sh new file mode 100644 index 0000000..31bac01 --- /dev/null +++ b/Installers/tinyproxy.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +sudo apt update +sudo apt remove squid -y +sudo apt-get install tinyproxy -y + +sudo sed -i 's/Allow 127.0.0.1/Allow 127.0.0.1 \nAllow 0.0.0.0/0/' /etc/tinyproxy/tinyproxy.conf +sudo sed -i 's/Port 8888/Port 3128/0/' /etc/tinyproxy/tinyproxy.conf + +sudo systemctl start tinyproxy + +sudo systemctl status tinyproxy