forked from snoyiatk/3proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path3proxyinstall.sh
More file actions
20 lines (20 loc) · 746 Bytes
/
3proxyinstall.sh
File metadata and controls
20 lines (20 loc) · 746 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
version=0.9.0
apt update && apt -y upgrade
apt install gcc make git -y
wget --no-check-certificate -O 3proxy-${version}.tar.gz https://github.com/z3APA3A/3proxy/archive/${version}.tar.gz
tar xzf 3proxy-${version}.tar.gz
cd 3proxy-${version}
make -f Makefile.Linux
cd src
mkdir /etc/3proxy/
mv 3proxy /etc/3proxy/
cd /etc/3proxy/
wget --no-check-certificate https://github.com/Postpuber/3proxy/raw/master/3proxy.cfg
chmod 600 /etc/3proxy/3proxy.cfg
mkdir /var/log/3proxy/
wget --no-check-certificate https://github.com/Postpuber/3proxy/raw/master/.proxyauth
chmod 600 /etc/3proxy/.proxyauth
cd /etc/init.d/
wget --no-check-certificate https://raw.github.com/Postpuber/3proxy/master/3proxy
chmod +x /etc/init.d/3proxy
update-rc.d 3proxy defaults