├── .proxyauth ├── 3proxy.cfg ├── 3proxyinit ├── 3proxyinstaller.sh ├── 3proxyuninst.sh ├── README.md └── archive └── 3proxy-3proxy-0.8.6.tar.gz /.proxyauth: -------------------------------------------------------------------------------- 1 | ## addusers in this format: 2 | #user:CL:password 3 | ##see for documentation: http://www.3proxy.ru/howtoe.asp#USERS 4 | proxyuser1:CL:StrongPasswordforUser 5 | -------------------------------------------------------------------------------- /3proxy.cfg: -------------------------------------------------------------------------------- 1 | # Specify valid name servers. You can locate them on your VPS in /etc/resolv.conf 2 | # 3 | nserver 8.8.8.8 4 | nserver 8.8.4.4 5 | #Leave default cache size for DNS requests: 6 | # 7 | nscache 65536 8 | #Leave default timeout as well: 9 | # 10 | timeouts 1 5 30 60 180 1800 15 60 11 | #If your server has several IP-addresses, you need to provide an external one 12 | #Alternatively, you may ignore this line 13 | #external YOURSERVERIP 14 | #If you ignore this line, proxy will listen all the server's IP-addresses 15 | #internal YOURSERVERIP 16 | #Create users proxyuser1 and proxyuser2 and specify a password 17 | # 18 | users $/etc/3proxy/.proxyauth 19 | #Specify daemon as a start mode 20 | # 21 | daemon 22 | #Logs path and log format. Creation date will be added to a log name 23 | #log /dev/null 24 | # 25 | log /var/log/3proxy.log 26 | logformat "- +_L%t.%. %N.%p %E %U %C:%c %R:%r %O %I %h %T" 27 | #Compress logs using gzip 28 | # 29 | archiver gz /usr/bin/gzip %F 30 | #store the logs for 30 days 31 | rotate 1 32 | #enable strong authorization. To disable authentication, simply change to 'auth none' 33 | #added authentication cachiing to make life easier 34 | authcache user 60 35 | auth strong cache 36 | #restrict access for ports via http(s)-proxy and deny access to local interfaces 37 | # 38 | deny * * 127.0.0.1,192.168.1.1 39 | allow * * * 80-88,8080-8088 HTTP 40 | allow * * * 443,8443 HTTPS 41 | #allow * * * 1-65535 HTTP 42 | #allow * * * 1-65535 HTTPS 43 | # run http-proxy ... without ntlm-authorization, complete anonymity and port ... 44 | # 45 | proxy -n -p3128 -a 46 | #Enable admin web-ui on specified port 47 | admin -p3200 48 | 49 | 50 | -------------------------------------------------------------------------------- /3proxyinit: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | ### BEGIN INIT INFO 4 | # Provides: 3Proxy 5 | # Required-Start: $remote_fs $syslog 6 | # Required-Stop: $remote_fs $syslog 7 | # Default-Start: 2 3 4 5 8 | # Default-Stop: 0 1 6 9 | # Short-Description: Initialize 3proxy server 10 | # Description: starts 3proxy 11 | ### END INIT INFO 12 | 13 | case "$1" in 14 | start) 15 | echo Starting 3Proxy 16 | 17 | /etc/3proxy/3proxy /etc/3proxy/3proxy.cfg 18 | ;; 19 | 20 | stop) 21 | echo Stopping 3Proxy 22 | /usr/bin/killall 3proxy 23 | ;; 24 | 25 | restart|reload) 26 | echo Reloading 3Proxy 27 | /usr/bin/killall -s USR1 3proxy 28 | ;; 29 | *) 30 | echo Usage: \$0 "{start|stop|restart}" 31 | exit 1 32 | esac 33 | exit 0 34 | -------------------------------------------------------------------------------- /3proxyinstaller.sh: -------------------------------------------------------------------------------- 1 | apt-get update && apt-get -y upgrade 2 | apt-get install -y build-essential nano 3 | wget --no-check-certificate https://github.com/barankilic/3proxy/blob/master/archive/3proxy-3proxy-0.8.6.tar.gz 4 | tar xzf 3proxy-0.8.6.tar.gz 5 | cd 3proxy-3proxy-0.8.6 6 | make -f Makefile.Linux 7 | cd src 8 | mkdir /etc/3proxy/ 9 | mv 3proxy /etc/3proxy/ 10 | cd /etc/3proxy/ 11 | wget --no-check-certificate https://github.com/barankilic/3proxy/raw/master/3proxy.cfg 12 | chmod 600 /etc/3proxy/3proxy.cfg 13 | wget --no-check-certificate https://github.com/barankilic/3proxy/raw/master/.proxyauth 14 | chmod 600 /etc/3proxy/.proxyauth 15 | cd /etc/init.d/ 16 | wget --no-check-certificate https://raw.github.com/barankilic/3proxy/master/3proxyinit 17 | chmod +x /etc/init.d/3proxyinit 18 | update-rc.d 3proxyinit defaults 19 | -------------------------------------------------------------------------------- /3proxyuninst.sh: -------------------------------------------------------------------------------- 1 | /etc/init.d/3proxyinit stop 2 | rm -rf /etc/3proxy 3 | rm /etc/rc0.d/K203proxyinit 4 | rm /etc/rc1.d/K203proxyinit 5 | rm /etc/rc6.d/K203proxyinit 6 | rm /etc/rc2.d/S203proxyinit 7 | rm /etc/rc3.d/S203proxyinit 8 | rm /etc/rc4.d/S203proxyinit 9 | rm /etc/rc5.d/S203proxyinit 10 | rm /etc/init.d/3proxyinit 11 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 3proxy install script for Debian / Ubuntu VPS 2 | ====================================================== 3 | 4 | A simple script (without any russian in it, yeepeeh) to install the lightweight russian proxy: 3proxy (http://3proxy.ru/) as an elite high anonymous HTTP proxy with SSL support with a few command lines. 5 | This script has been created to bypass the fact that Squid3 proxy isn't compiled with SSL support and is an absolute nightmare to compile in Debian right now. 6 | 7 | This setup has been created to quickly install a proxy on small lowendbox VPS mostly for "google rank analysis" / scraping. 8 | 9 | **MANUAL :** 10 | 11 | Download, make executable and run with these lines : 12 | 13 | wget --no-check-certificate https://raw.github.com/barankilic/3proxy/master/3proxyinstaller.sh 14 | chmod +x 3proxyinstaller.sh 15 | ./3proxyinstaller.sh 16 | 17 | After install : CHANGE THE BLOODY DEFAULT USERNAME AND PASSWORD !!! 18 | 19 | nano /etc/3proxy/.proxyauth 20 | 21 | Example change line inside .proxyauth 22 | 23 | johndoe:CL:johndoepassword123 24 | 25 | You can also change the port, default is 3128 26 | 27 | nano /etc/3proxy/3proxy.cfg 28 | 29 | 30 | Once you've change the username / password you can start the proxy 31 | (or reboot the VPS as 3proxy has been added to the init scripts and will autostart) 32 | 33 | /etc/init.d/3proxyinit start 34 | 35 | For Uninstall Download, make executable and run with these lines : 36 | 37 | wget --no-check-certificate https://raw.github.com/barankilic/3proxy/master/3proxyuninst.sh 38 | chmod +x 3proxyuninst.sh 39 | ./3proxyuninst.sh 40 | 41 | **Script tested on 20.05.2016 on the following fresh VPS install distros :** 42 | 43 | - Ubuntu 14.04 64bit (Vmware) 44 | 45 | **Script will run on :** 46 | - Debian 6 32bits 47 | - Debian 7 32bits 48 | - Ubuntu 12.10 32bits 49 | - Ubuntu 12.04 32bits 50 | - Ubuntu 14.04 32bits and 64bits 51 | 52 | <<<<<<< HEAD 53 | ======= 54 | http://barankilic.github.io/3proxy/ 55 | >>>>>>> origin/master 56 | -------------------------------------------------------------------------------- /archive/3proxy-3proxy-0.8.6.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjamin74/3proxy/97242ce2b39a0d08f9783c0df8eeb00d06f68b14/archive/3proxy-3proxy-0.8.6.tar.gz --------------------------------------------------------------------------------