Автор Тема: Squid на разных портах  (Прочитано 1605 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн Flyer_SPb

  • Модераторы
  • Ветеран
  • *****
  • Сообщений: 1019
  • Рейтинг: 26
  • Пол: Мужской
  • Ветеран войны с Kilrathi
    • Просмотр профиля
  • Откуда: 2:5030
Squid на разных портах
« : 08 октября 2015, 12:26:27 »
Не знаю, сюда или в никсы лучше.

Есть Squid 3.1.23 (штатный) на CentOS 6.7
Выдержка из конфига:
http_port 3101 connection-auth=off
http_port 3102 connection-auth=off
http_port 3103 connection-auth=off
http_port 3104 connection-auth=off
http_port 3105 connection-auth=off
http_port 3106 connection-auth=off
http_port 3107 connection-auth=off
http_port 3108 connection-auth=off
http_port 3109 connection-auth=off
http_port 3110 connection-auth=off

acl port1 myport 3101
acl port2 myport 3102
acl port3 myport 3103
acl port4 myport 3104
acl port5 myport 3105
acl port6 myport 3106
acl port7 myport 3107
acl port8 myport 3108
acl port9 myport 3109
acl port10 myport 3110

tcp_outgoing_address 10.200.204.1 port1
tcp_outgoing_address 10.200.204.2 port2
tcp_outgoing_address 10.200.204.3 port3
tcp_outgoing_address 10.200.204.4 port4
tcp_outgoing_address 10.200.204.5 port5
tcp_outgoing_address 10.200.204.6 port6
tcp_outgoing_address 10.200.204.7 port7
tcp_outgoing_address 10.200.204.8 port8
tcp_outgoing_address 10.200.204.9 port9
tcp_outgoing_address 10.200.204.10 port10

cache deny all

И при этом, если обращаться к портам подряд, отправляет через один IP (реально, пакеты даже не отправляются, iptables новых исходящих syn-пакетов не видит)
07.10.2015:13:58:30.329   2118 127.0.0.1:/3101/10.200.204.1 TCP_MISS/200/200 4332 GET http://myip.ru/ - DIRECT/77.72.80.9 text/html
07.10.2015:13:58:30.529    194 127.0.0.1:/3102/10.200.204.1 TCP_MISS/200/200 4332 GET http://myip.ru/ - DIRECT/77.72.80.9 text/html
07.10.2015:13:58:30.710    175 127.0.0.1:/3103/10.200.204.1 TCP_MISS/200/200 4332 GET http://myip.ru/ - DIRECT/77.72.80.9 text/html
07.10.2015:13:58:30.900    184 127.0.0.1:/3104/10.200.204.1 TCP_MISS/200/200 4332 GET http://myip.ru/ - DIRECT/77.72.80.9 text/html
07.10.2015:13:58:31.180    275 127.0.0.1:/3105/10.200.204.1 TCP_MISS/200/200 4332 GET http://myip.ru/ - DIRECT/77.72.80.9 text/html
07.10.2015:13:58:31.349    163 127.0.0.1:/3106/10.200.204.1 TCP_MISS/200/200 4332 GET http://myip.ru/ - DIRECT/77.72.80.9 text/html
07.10.2015:13:58:31.519    164 127.0.0.1:/3107/10.200.204.1 TCP_MISS/200/200 4332 GET http://myip.ru/ - DIRECT/77.72.80.9 text/html
07.10.2015:13:58:31.690    165 127.0.0.1:/3108/10.200.204.1 TCP_MISS/200/200 4332 GET http://myip.ru/ - DIRECT/77.72.80.9 text/html
07.10.2015:13:58:31.860    165 127.0.0.1:/3109/10.200.204.1 TCP_MISS/200/200 4332 GET http://myip.ru/ - DIRECT/77.72.80.9 text/html
07.10.2015:13:58:32.030    165 127.0.0.1:/3110/10.200.204.1 TCP_MISS/200/200 4332 GET http://myip.ru/ - DIRECT/77.72.80.9 text/html

А если с интервалом в минуту - через разные:
07.10.2015:15:44:41.033   1606 127.0.0.1:/3101/10.200.204.1 TCP_MISS/200/200 4234 GET http://myip.ru/ - DIRECT/77.72.80.9 text/html
07.10.2015:15:45:42.494   1454 127.0.0.1:/3102/10.200.204.2 TCP_MISS/200/200 4332 GET http://myip.ru/ - DIRECT/77.72.80.9 text/html
07.10.2015:15:46:43.909   1408 127.0.0.1:/3103/10.200.204.3 TCP_MISS/200/200 4234 GET http://myip.ru/ - DIRECT/77.72.80.9 text/html
07.10.2015:15:47:49.415   5500 127.0.0.1:/3104/10.200.204.4 TCP_MISS/200/200 4330 GET http://myip.ru/ - DIRECT/77.72.80.9 text/html
07.10.2015:15:48:51.669   2247 127.0.0.1:/3105/10.200.204.5 TCP_MISS/200/200 4234 GET http://myip.ru/ - DIRECT/77.72.80.9 text/html
07.10.2015:15:49:53.693   2017 127.0.0.1:/3106/10.200.204.6 TCP_MISS/200/200 4330 GET http://myip.ru/ - DIRECT/77.72.80.9 text/html
07.10.2015:15:50:55.421   1722 127.0.0.1:/3107/10.200.204.7 TCP_MISS/200/200 4232 GET http://myip.ru/ - DIRECT/77.72.80.9 text/html
07.10.2015:15:51:57.355   1927 127.0.0.1:/3108/10.200.204.8 TCP_MISS/200/200 4332 GET http://myip.ru/ - DIRECT/77.72.80.9 text/html
07.10.2015:15:52:59.982   2620 127.0.0.1:/3109/10.200.204.9 TCP_MISS/200/200 4233 GET http://myip.ru/ - DIRECT/77.72.80.9 text/html
07.10.2015:15:54:02.652   2664 127.0.0.1:/3110/10.200.204.10 TCP_MISS/200/200 4330 GET http://myip.ru/ - DIRECT/77.72.80.9 text/html
Интервал в 30 секунд - через один, 40 секунд - то один, то разные.

Можно ли от этого интервала избавиться (не поднимая 10 экземпляров сквида на разных портах)?
Или какую другую софтину заюзать?


Updated: 08 October 2015, 13:59:29

Помогло
server_persistent_connections off
« Последнее редактирование: 08 октября 2015, 13:59:29 от Flyer_SPb »
They stole my gun, my beautiful Steltek gun!