Pre-install The package for Centos 7
$ sudo yum update
$ sudo yum -y install wget nano epel-release net-tools
$ sudo yum -y groupinstall "Development Tools"
$ sudo systemctl stop firewalld && systemctl disable firewalld # For example, My LAB turn off firewalld.
Installing 3proxy on Centos 7
$ wget https://github.com/z3APA3A/3proxy/archive/0.8.12.tar.gz
$ tar zxfv 3proxy.gz
$ cd 3proxy-0.8.12/
$ sudo make -f Makefile.Linux
$ sudo mkdir /usr/local/3proxy
$ sudo cp src/3proxy /usr/local/3proxy/
$ sudo chmod +x /usr/local/3proxy/3proxy
Creating the main configurator 3proxy.cfg file.
$ sudo nano /usr/local/3proxy/3proxy.cfg
And paste the following content:
#!/bin/bash
IPv4=`ip addr list enp0s3 | grep " inet " | head -n 1 | cut -d " " -f 6 | cut -d / -f 1`
IP=`ip addr list ppp0 | grep " inet " | head -n 1 | cut -d " " -f 6 | cut -d / -f 1`
echo "" > /etc/3proxy.cfg
cat > /etc/3proxy.cfg << END
daemon
timeouts 1 5 30 60 180 1800 15 60
maxconn 5000
nscache 65535
log /dev/null
proxy -n -a -p8000 -i$IPv4 -e$IP
END
/usr/bin/3proxy /etc/3proxy.cfg
Running 3proxy
$ sudo /usr/local/3proxy/3proxy /usr/local/3proxy/3proxy.cfg
To check proxy, You can use the browser to configure IP and port of 3proxy as picture below:
Conclusion
Thought the article, "How to install 3proxy on centos 7" as above . You want to become Devops :) . I hope will this your helpful.Thanks for reading How to install 3proxy on centos 7 My blog Zimbra Mail Server,linux,bash script,centos,linux command I hope this is useful.
5 Comments
HI!
RelayThanks for sharing this, i was looking for this guide!
Can you share more details on how to access this from outside your local network and how to protect it with user and password?
Do you think it's possible to add more 3G dongles?
Thanks you again and keep it up!
Hi,
Relay"how to access this from outside your local network"
--> You using port forwarding
"Do you think it's possible to add more 3G dongles?"
--> yes, you can add more 3G dongles.
"how to protect it with user and password?"
--> you can using VPN or configure authen for 3proxy
Thank you reading My blog!
Thanks for the fast reply! i will try to do that, will come back to report and give future details for all the newcomers!
RelayThanks!
Thank you for your tut.If I want to use this proxy remotely,then I have to port forward.right?Where I will port forward ?in my home router or in 3g dongle?
RelayHi LUTFUL,
RelayYou configure port forward on your router:
for example, server 3proxy: port 8000 on router: ip:8000:portforward
Thanks