ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Dubrovskiy Viacheslav <slava@tangramltd.com>
To: ALT Linux sysadmins' discussion <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] squid parrent proxy
Date: Wed, 11 Apr 2012 12:42:26 -0400
Message-ID: <4F85B472.9050501@tangramltd.com> (raw)
In-Reply-To: <4F85AEF3.90809@iop.kiev.ua>

11.04.2012 12:18, Andrii Dobrovol`s`kii пишет:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Hi,
> Возникла проблема. Помогите решить.
> Есть локалка. Она на "серых" адресах. В Инет все ходят через
> прокси. Сейчас бухгалтерам надо пользоваться клиент-банком. Клиент
> не работает. Вроде как, при работе через прокси ему надо чтоб наш
> прокси перенацеливался на два их прокси с конкретными портами.
> Т.е. если клиент хочет обратиться к IP:port наш прокси должен
> посылать запрос к их прокси:порт именно как к родительскому прокси.
> Пытаюсь делать
> cache_peer 83.137.88.28       parent    9091  0  proxy-only no-query
> acl bank dst 83.137.88.28/32
> cache_peer_access 83.137.88.28/32 allow bank
>
> И отваливается доступ ко всем сайтам. Чего не хватает?
> сache_peer_access 83.137.88.28/32 deny all
> ?
> или чего-то другого? Или я вообще не туда копаю?
> Почему обрывается доступ к остальным ресурсам?

defaultsite стоит?
cache_peer правильно задан?

Я делал с помощью mysql_acl реверсивный прокси. Но можно юзать обычный 
acl. Вот пример рабочего конфига.

http_port 80 accel defaultsite=mysite vhost
external_acl_type mysql_acl protocol=2.5 cache=10240 children=60 %SRC 
%DST /usr/bin/mysql_acl

acl list1 external mysql_acl site1
acl list2 external mysql_acl site2
acl list3 external mysql_acl site3
http_access allow list1
http_access allow list2
http_access allow list3
cache_peer 111.111.111.111 parent 80 0 no-query originserver name=server1
cache_peer 222.222.222.222 parent 80 0 no-query originserver name=server2
cache_peer 333.333.333.333  parent 80 0 no-query originserver name=server3
cache_peer_access server1 allow list1
cache_peer_access server2 allow list2
cache_peer_access server3 allow list3

-- 
WBR,
Dubrovskiy Viacheslav



  reply	other threads:[~2012-04-11 16:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-11 16:18 Andrii Dobrovol`s`kii
2012-04-11 16:42 ` Dubrovskiy Viacheslav [this message]
2012-04-11 16:55   ` Dubrovskiy Viacheslav
2012-04-12 10:14     ` Andrii Dobrovol`s`kii
2012-04-12 14:47       ` Dubrovskiy Viacheslav
2012-04-12 16:06         ` Andrii Dobrovol`s`kii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F85B472.9050501@tangramltd.com \
    --to=slava@tangramltd.com \
    --cc=sysadmins@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sysadmins


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git