I
I
Igor2014-07-01 18:02:24
Network administration
Igor, 2014-07-01 18:02:24

Lunex. Many proxy servers for 1 VPS?

Good afternoon,
There is 1 VPS server, 3 IP addresses are connected to it.
All of them must be used.
How to raise a proxy server on all ip addresses?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Petrikov, 2014-07-01
@GoldCode

Example for squid

#Пример, каждый порт пускаем через свой адрес 
#Всех кто ломится через порт 53189 заворачиваем на выход через 91.XX.53.189
http_port 91.XX.53.189:53189
acl p53189 myport 53189
tcp_outgoing_address 91.XX.53.189 p53189

#Всех кто ломится через порт 53190 заворачиваем на выход через 91.XX.53.190
http_port 91.XX.53.131:53190
acl p53190 myport 53190
tcp_outgoing_address 91.XX.53.190 p53190
#Всех остальных сюда
tcp_outgoing_address 91.XX.53.231

connect_timeout 20 second
shutdown_lifetime 1 seconds
cache deny all
cache_mem 256 MB
cache_access_log /dev/null
cache_store_log none
cache_log /dev/null

acl CONNECT method CONNECT

#anonime proxy
via off
forwarded_for delete

#Приоритет для IPv4
dns_v4_first on

#Кому разрешен доступ. 
http_access allow all

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question