3proxy в centos

Adding repository if not exists:


rpm -Uvh http://mirror.yandex.ru/epel/6/i386/epel-release-6-8.noarch.rpm

Install 3proxy and vim editor:

yum install -y 3proxy vim

Backup original configuration file (just rename it to 3proxy.cfg.orig:

mv /etc/3proxy.cfg{,.orig}

Edit configuration in vim:

vim /etc/3proxy.cfg

Insert this data:

daemon

nserver 8.8.8.8

nscache 65536

timeouts 1 5 30 60 180 1800 15 60

users NEWUSER:CL:NEWPASSWORD

log /var/log/3proxy/3proxy.log D

archiver gz /usr/bin/gzip %F

rotate 20

auth strong

maxconn 32

proxy -p3128 -a -iIP_ADDRESS_1 -eIP_ADDRESS_1

proxy -p3128 -a -iIP_ADDRESS_2 -eIP_ADDRESS_2

flush

Start proxy-server:

service 3proxy start

Replace NEWUSER, NEWPASSWORD to login and password for basic-authorization on proxy.

Replace IP_ADDRESS_1, IP_ADDRESS_2 to additional server ip’s

Duplicate lines with “proxy -p3128 …” for each additional ip address

Now you got 2 http-proxies:

IP_ADDRESS_1:3128

IP_ADDRESS_2:3128

with login:password authorization

=====================================================

debian, from sources

apt-get install –reinstall build-essential

apt-get install vim mc

wget http://3proxy.ru/0.7.1.2/3proxy-0.7.1.2.tgz

tar -xzf 3proxy-0.7.1.2.tgz

cd 3proxy

make -f Makefile.Linux

mkdir /usr/local/3proxy

mkdir /usr/local/3proxy/logs

mkdir /usr/local/3proxy/stat

cp src/3proxy /usr/local/3proxy

cp ./scripts/rc.d/proxy.sh /etc/init.d/3proxy

update-rc.d 3proxy defaults

>/usr/local/3proxy/3proxy.cfg

chown -R nobody:nogroup /usr/local/3proxy

cd /usr/local/3proxy

vim /usr/local/3proxy/3proxy.cfg

==============================================

daemon

nserver 77.88.8.8 # yandex dns

nserver 77.88.8.1 # yandex dns

nscache 65536

timeouts 1 5 30 60 180 1800 15 60

users user:CL:12345

log /usr/local/3proxy/logs/3proxy.log D

archiver gz /usr/bin/gzip %F

rotate 20

auth strong # auth by login:password

flush

proxy -p3128 -a -ix.x.x.x -ex.x.x.x

socks -p1080 -a -ix.x.x.x -ex.x.x.x

maxconn 320

================================================

# start

/usr/local/3proxy/3proxy /usr/local/3proxy/3proxy.cfg


Похожие записи:

Оставить комментарий

Ваш e-mail не будет опубликован. Обязательные поля отмечены *