eth0 не безлимитный / стоит по умолчанию
eth1 смотрит в локальную сеть
eth2 Безлимитный канал 1Мб
eth3 Безлимитный канал 1Мб
Настроена маршрутизация по всем каналам все работает как надо.
Сегодня решил опробовать объединить каналы eth2 + eth3 проксей SQUID от конфиги
для eth2
Код:
Код: Выделить всё
http_port 6666
icp_port 7777
visible_hostname test.ru
access_log /var/log/squid/access_s1.log
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563
acl Safe_ports port 80 #http
acl Safe_ports port 21 #ftp
acl Safe_ports port 443 563 #https, snews
acl Safe_ports port 70 #gopher
acl Safe_ports port 210 #wais
acl Safe_ports port 1025-65535 #unregistered ports
acl Safe_ports port 280 #http-mgmt
acl Safe_ports port 488 #gss-http
acl Safe_ports port 591 #filemaker
acl Safe_ports port 777 #multiting http
acl CONNECT method CONNECT
tcp_outgoing_address 212.0.***.***
http_access allow all
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_reply_access allow all
icp_access allow all
pid_filename /var/run/squid_s1.pidдля eth3
Код:
Код: Выделить всё
http_port 4444
icp_port 5555
visible_hostname test.ru
access_log /var/log/squid/access_s2.log
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563
acl Safe_ports port 80 #http
acl Safe_ports port 21 #ftp
acl Safe_ports port 443 563 #https, snews
acl Safe_ports port 70 #gopher
acl Safe_ports port 210 #wais
acl Safe_ports port 1025-65535 #unregistered ports
acl Safe_ports port 280 #http-mgmt
acl Safe_ports port 488 #gss-http
acl Safe_ports port 591 #filemaker
acl Safe_ports port 777 #multiting http
acl CONNECT method CONNECT
tcp_outgoing_address 192.168.42.82
http_access allow all
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_reply_access allow all
icp_access allow all
pid_filename /var/run/squid_s2.pidИ основной конфиг
Код:
Код: Выделить всё
http_port 9999 transparent
visible_hostname test.ru
cache_effective_user proxy
cache_effective_group root
access_log /var/log/squid/access_burnet.log
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563
acl Safe_ports port 80 #http
acl Safe_ports port 21 #ftp
acl Safe_ports port 443 563 #https, snews
acl Safe_ports port 70 #gopher
acl Safe_ports port 210 #wais
acl Safe_ports port 1025-65535 #unregistered ports
acl Safe_ports port 280 #http-mgmt
acl Safe_ports port 488 #gss-http
acl Safe_ports port 591 #filemaker
acl Safe_ports port 777 #multiting http
acl CONNECT method CONNECT
auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/passwd
auth_param basic children 5
auth_param basic realm Mega proxy-cachig CMOK
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off
[b]cache_peer 212.0.***.*** parent 6666 7777 round-robin
cache_peer 192.168.42.82 parent 4444 5555 round-robin[/b]
acl CMOK proxy_auth REQUIRED
acl banusers proxy_auth_regex -i "/etc/squid/traf_limit/list/all.txt"
acl banusers proxy_auth_regex -i "/etc/squid/traf_limit/list/denied_users.txt"
deny_info ERR_QUOTA all
http_access deny banusers all
http_access allow CMOK
http_access deny all
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_reply_access allow all
icp_access allow all
coredump_dir /var/spool/squid
pid_filename /var/run/squid_burnet.pidИ вроде бы все работает 2ip.ru кажет суммарную скорость почти 2,1мб
показывает ip адреса интерфейсов но когда начинаешь что-нибудь качать
почему то трафик идет не с
Код:
eth2+eth3
а c
Код:
eth2+eth0
то-есть проходит через платный канал.