How to set up 3proxy on Linux. Step-by-step instructions.

Setting Up Your Own Proxy on Linux using 3proxy

In this guide, we will walk you through the process of setting up a proxy server using 3proxy on a Linux server. Follow the step-by-step instructions below:
1. Install the necessary dependencies:
sudo apt-get update
sudo apt-get install build-essential libevent-dev libssl-dev -y

2. Download the 3proxy source code from GitHub:
cd /opt
sudo git clone https://github.com/z3APA3A/3proxy.git

3. Navigate to the source code directory and compile it:
cd 3proxy
sudo make -f Makefile.Linux

4. Create a directory for configuration files and navigate to it:
sudo mkdir /etc/3proxy
cd /etc/3proxy

5. Create a configuration file using a text editor, for example, nano:
sudo nano 3proxy.cfg

6. Paste the following configuration into the file, replacing “username” and “password” with your desired credentials, and “8080” with your chosen port:
nserver 8.8.8.8
nserver 8.8.4.4
nscache 65536
timeouts 1 5 30 60 180 1800 15 60
daemon
log /var/log/3proxy/3proxy.log D
logformat "- +_L%t.%. %N.%p %E %U %C:%c %R:%r %O %I %h %T"
archiver gz /usr/bin/gzip %F
rotate 30
auth strong
users username:CL:password
allow username
proxy -p8080 -n -a
flush

7. Save and close the configuration file.

8. Create a directory for log files:
sudo mkdir /var/log/3proxy

9. Create a startup script in the /etc/init.d/ directory:
sudo nano /etc/init.d/3proxyinit

10. Paste the following script into the file:
#!/bin/sh
case "$1" in
start) echo "Starting 3Proxy"; /opt/3proxy/3proxy /etc/3proxy/3proxy.cfg
;;
stop) echo "Stopping 3Proxy"; killall 3proxy
;;
restart) $0 stop; $0 start
;;
*) echo "Usage: /etc/init.d/3proxyinit {start|stop|restart}"; exit 1
;;
esac
exit 0

11. Save and close the startup script file.

12. Make the startup script executable and add it to the startup:
sudo chmod +x /etc/init.d/3proxyinit
sudo update-rc.d 3proxyinit defaults

13. Start the proxy server using the created startup script:
sudo /etc/init.d/3proxyinit start

Now, you have a configured and running proxy server using 3proxy on your Linux server. Your clients can connect to the proxy using the credentials and port you specified.

If it is too difficult for you, we recommend buying ready-made proxies from us. 🙂  https://buy.fineproxy.org/eng/

1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)
Loading...