ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: "Павел Исопенко" <admin@pauli.ru>
To: ALT Linux sysadmins' discussion <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] клиент-банк
Date: Tue, 10 Apr 2012 12:39:19 +0400
Message-ID: <1334047159.8662.23.camel@localhost.localdomain> (raw)
In-Reply-To: <4F82F877.9000504@iop.kiev.ua>

> > Насколько я помню, можно строить иерархию парентов-чайлдов для
> > проксей. #  TAG: cache_peer #<----->cache_peer parent.foo.net
> > parent    3128  3130 proxy-only default
> > 
> > 
> Да. Можно. И я уже строил даже. Но граблей тогда лезло из всех
> щелей...
> Думал, может у кого есть опыт именно этой ситуации.
Грабли, да, лезут. Точно.
Но можно объехать мимо сквида. NAT сквиду никак не мешает, не влияет на
собственно трафик и его можно выстроить в том числе и цепочкой. 
Самый простой способ - через Альтератор. Секция Брандмауэр, Ручной режим
управления. Чек Включить режим ручной настойки - установить.
И в таблицу nat/POSTROUTING вставить примерно так:
-o breth0 -p tcp --dport 12345 -j MASQUERADE
... 
-o breth0 -p tcp --dport 54321 -j MASQUERADE

Где: breth0 имя интерфейса, смотрящего в сторону интернета,
а 12345-54321 заменить на номер порта(портов), с которым(и) необходимо
соединяться.
Как то же самое сделать с командной строки через iptables это все знают.
А я сделал так, и - УМВР.
-- 
С уважением,  Павел Исопенко



  reply	other threads:[~2012-04-10  8:39 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-09 14:22 Andrii Dobrovol`s`kii
2012-04-09 14:20 ` Сунцов Дмитрий
2012-04-09 14:55   ` Andrii Dobrovol`s`kii
2012-04-10  8:39     ` Павел Исопенко [this message]
2012-04-09 15:03 ` Dubrovskiy Viacheslav
2012-04-09 15:47   ` 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=1334047159.8662.23.camel@localhost.localdomain \
    --to=admin@pauli.ru \
    --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