How to install 3proxy on centos 7

In this tutorial, How to install 3proxy on centos 7 ? How to configure 3proxy for multiple 3G USB modems.

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.

Comments

  1. HI!
    Thanks 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!

    ReplyDelete
  2. Hi,
    "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!

    ReplyDelete
  3. Thanks for the fast reply! i will try to do that, will come back to report and give future details for all the newcomers!
    Thanks!

    ReplyDelete
  4. 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?

    ReplyDelete
  5. Hi LUTFUL,
    You configure port forward on your router:
    for example, server 3proxy: port 8000 on router: ip:8000:portforward
    Thanks

    ReplyDelete

Post a Comment

Popular posts from this blog

Bash script list all IP addresses connected to Server with Country Information

zimbra some services are not running [Solve problem]

Whitelist and Blacklist domain in zimbra 8.6