Добро пожаловать на AskUbuntu по-русски, где вы можете задать вопросы и получить ответы от других пользователей сервиса.

Популярные теги

ubuntu 04 ubuntu-16 ubuntu-14-04 linux видео

Squid 3.5 не хочет быть прозрачным

0 голосов
Стоит squid, но он не прозрачный. На 2 машинах прописаны настройки в браузере. При http_port *:3128 intercept не пускает в инет.

squid.conf

<spoil>

acl localnet src 172.48.192.254
acl localnet src 172.48.192.161
acl localnet src 172.48.192.95
acl localnet src 172.48.192.5
acl localnet src 172.48.192.3
acl localnet src 172.48.192.204
acl localnet src 172.48.192.57
acl localnet src 172.48.192.7
acl SSL_ports port 443
acl SSL_ports port 9000
acl Safe_ports port 80          # http
acl Safe_ports port 21          # ftp
acl Safe_ports port 443         # https
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         # multiling http
acl CONNECT method CONNECT
http_access deny !Safe_ports
acl blacklist url_regex -i "/etc/squid/blacklist"
http_access deny CONNECT !SSL_ports
http_access allow localhost manager
http_access deny manager
http_access allow localnet
http_access allow localhost
http_access deny all
http_port 172.48.192.86:3128
logfile_rotate 31
coredump_dir /var/spool/squid3
refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern -i (/cgi-bin/|\?) 0     0%      0
refresh_pattern (Release|Packages(.gz)*)$      0       20%     2880
refresh_pattern .               0       20%     4320
via off
forwarded_for delete
</spoil>

iptables:

<spoil>

*mangle
:PREROUTING ACCEPT [620402:255913800]
:INPUT ACCEPT [240478:237553265]
:FORWARD ACCEPT [377920:18156829]
:OUTPUT ACCEPT [181403:435377369]
:POSTROUTING ACCEPT [559421:453550116]
-A FORWARD -o ppp0 -p tcp -m tcp --tcp-flags SYN,RST SYN -m tcpmss --mss 1400:65495 -j TCPMSS --clamp-mss-to-pmtu
-A FORWARD -o ppp1 -p tcp -m tcp --tcp-flags SYN,RST SYN -m tcpmss --mss 1400:65495 -j TCPMSS --clamp-mss-to-pmtu
COMMIT
# Completed on Tue Feb 21 09:37:00 2017
# Generated by iptables-save v1.6.0 on Tue Feb 21 09:37:00 2017
*nat
:PREROUTING ACCEPT [113698:5640162]
:INPUT ACCEPT [4324:318207]
:OUTPUT ACCEPT [3036:209446]
:POSTROUTING ACCEPT [111291:5407838]
-A PREROUTING ! -d 172.48.192.0/24 -i eth1 -p tcp -m multiport --dports 80,8080 -j DNAT --to-destination 172.48.192.86:3128
-A PREROUTING -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 3128
-A POSTROUTING -s 172.48.192.0/24 -o eth0 -j MASQUERADE
COMMIT
# Completed on Tue Feb 21 09:37:00 2017
# Generated by iptables-save v1.6.0 on Tue Feb 21 09:37:00 2017
*filter
:INPUT ACCEPT [8948078:10952790624]
:FORWARD ACCEPT [5946111:285491667]
:OUTPUT ACCEPT [6956283:8344124922]
:f2b-sshd - [0:0]
:monitorix_IN_0 - [0:0]
:monitorix_IN_1 - [0:0]
:monitorix_IN_2 - [0:0]
:monitorix_IN_3 - [0:0]
:monitorix_IN_4 - [0:0]
:monitorix_IN_5 - [0:0]
:monitorix_IN_6 - [0:0]
:monitorix_IN_7 - [0:0]
:monitorix_IN_8 - [0:0]
-A INPUT -p tcp -m multiport --dports 22 -j f2b-sshd
-A INPUT -p tcp -m tcp --sport 1024:65535 --dport 143 -m conntrack --ctstate NEW,RELATED,ESTABLISHED -j monitorix_IN_8
-A INPUT -p udp -m udp --sport 1024:65535 --dport 53 -m conntrack --ctstate NEW,RELATED,ESTABLISHED -j monitorix_IN_7
-A INPUT -p tcp -m tcp --sport 1024:65535 --dport 3306 -m conntrack --ctstate NEW,RELATED,ESTABLISHED -j monitorix_IN_6
-A INPUT -p tcp -m tcp --sport 1024:65535 --dport 139 -m conntrack --ctstate NEW,RELATED,ESTABLISHED -j monitorix_IN_5
-A INPUT -p tcp -m tcp --sport 1024:65535 --dport 110 -m conntrack --ctstate NEW,RELATED,ESTABLISHED -j monitorix_IN_4
-A INPUT -p tcp -m tcp --sport 1024:65535 --dport 22 -m conntrack --ctstate NEW,RELATED,ESTABLISHED -j monitorix_IN_3
-A INPUT -p tcp -m tcp --sport 1024:65535 --dport 80 -m conntrack --ctstate NEW,RELATED,ESTABLISHED -j monitorix_IN_2
-A INPUT -p tcp -m tcp --sport 1024:65535 --dport 21 -m conntrack --ctstate NEW,RELATED,ESTABLISHED -j monitorix_IN_1
-A INPUT -p tcp -m tcp --sport 1024:65535 --dport 25 -m conntrack --ctstate NEW,RELATED,ESTABLISHED -j monitorix_IN_0
-A INPUT -i lo -j ACCEPT
-A FORWARD -i eth0 -o ppp0 -j ACCEPT
-A FORWARD -i eth1 -m state --state RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -i ppp0 -o eth0 -j REJECT --reject-with icmp-port-unreachable
-A OUTPUT -p tcp -m tcp --sport 143 --dport 1024:65535 -m conntrack --ctstate RELATED,ESTABLISHED -j monitorix_IN_8
-A OUTPUT -p udp -m udp --sport 53 --dport 1024:65535 -m conntrack --ctstate RELATED,ESTABLISHED -j monitorix_IN_7
-A OUTPUT -p tcp -m tcp --sport 3306 --dport 1024:65535 -m conntrack --ctstate RELATED,ESTABLISHED -j monitorix_IN_6
-A OUTPUT -p tcp -m tcp --sport 139 --dport 1024:65535 -m conntrack --ctstate RELATED,ESTABLISHED -j monitorix_IN_5
-A OUTPUT -p tcp -m tcp --sport 110 --dport 1024:65535 -m conntrack --ctstate RELATED,ESTABLISHED -j monitorix_IN_4
-A OUTPUT -p tcp -m tcp --sport 22 --dport 1024:65535 -m conntrack --ctstate RELATED,ESTABLISHED -j monitorix_IN_3
-A OUTPUT -p tcp -m tcp --sport 80 --dport 1024:65535 -m conntrack --ctstate RELATED,ESTABLISHED -j monitorix_IN_2
-A OUTPUT -p tcp -m tcp --sport 21 --dport 1024:65535 -m conntrack --ctstate RELATED,ESTABLISHED -j monitorix_IN_1
-A OUTPUT -p tcp -m tcp --sport 25 --dport 1024:65535 -m conntrack --ctstate RELATED,ESTABLISHED -j monitorix_IN_0
-A f2b-sshd -j RETURN
</spoil>
Спросили Feb 21, 2017

Ваш ответ

Конфиденциальность: Ваш электронный адрес будет использоваться только для отправки этих уведомлений.
Анти-спам проверка:
Чтобы не вводить капчу в будущем, войдите или зарегистрируйтесь.