3proxy, CentOS 7
-
I have two ip v4 (VPS). CentOS 7. Set and set up 3proxy. With one ip address (the number that was issued when buying a server) - proxy works. I can't build a second-ip configuration. Correct me, I'll be happy to advise you. It's all right.
daemon nserver 1.1.1.1 nserver 1.0.0.1
nscache 65536
timeouts 1 5 30 60 180 1800 15 60
users usertest:CL:passtest "test:CR:$1$qwer$CHFTUFGqkjue9HyhcMHEe1"
archiver gz /bin/gzip %F
rotate 20auth iponly
external 000.000.00.01
internal 000.000.00.01auth none
dnspr
auth strong
deny * * 127.0.0.1,192.168.1.1
allow * * * 80-88,8080-8088 HTTP
allow * * * 443,8443 HTTPSauth none
pop3ptcppm 25 mail.my.provider 25
auth strong
flush
allow usertest
maxconn 200
socks -p1080
proxy -p3128 -i000.000.00.01 -e000.000.00.01-a
proxy -p3128 -i000.000.00.02 -e000.000.00.02 -a
-
When I tried to download a page with a "unworking" proxy, I started to suspect that the ip was not added to the interface (eth0) because the browser gave a timeout (60 sec) rather than a mistake: the proxy server didn't answer. I did.
ifconfig -a
And indeed, only 1 ip. I added a second proxy to this interface.ifconfig eth0:1 000.000.00.02 up
♪ After the teamsystemctl restart 3proxy
And it's working. I hope it can help someone.