ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Igor Solovyov <gosha@anti.su>
To: sysadmins@lists.altlinux.org
Subject: Re: [Sysadmins] два шлюза и проброс во внутреннюю  сеть
Date: Fri, 2 Nov 2007 22:58:52 +0500
Message-ID: <20071102225852.7bcdda25.gosha@anti.su> (raw)
In-Reply-To: <200711021554.18387.peet@altlinux.ru>

Hi!
On Fri, 2 Nov 2007 15:54:18 +0300
"Peter V. Saveliev" <peet@altlinux.ru> wrote:

Спасибо. Все понял.

> # дальше: раскидываем по портам (всё, что на 80 порт -- через
> # провайдера U)
> iptables -t mangle -I FORWARD -m tcp -p tcp --dport 80 -j MARK
> --set-mark 80 ip rule add pref 200 fwmark 80 table U

А этого не потребуется. Веб-трафик будет идти через squid, который
и слушает на нужном интерфейсе, да и у него есть вроде настройка
с какого интерфейса наружу отправлять.

> ну, или OUTPUT или попробовать POSTROUTING -- но я не помню,
> POSTROUTING в mangle отрабатывает до или после rpdb. Легко выясняется
> эмпирически.
> 
> # итеративно, пока сервисы не кончатся :)

Ага. Понял.

> ...
> 
> В этой же схеме можно использовать l7-filter и ставить марки не по
> портам, а по результатам анализа траффика.

Ладно, интересно. Поковыряюсь.

Большое спасибо!

-- 
Best Regars!
Igor Solovyov


  reply	other threads:[~2007-11-02 17:58 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-31  6:40 altlinux
2007-10-31 11:25 ` Peter V. Saveliev
2007-11-01  7:25   ` altlinux
2007-11-01  7:50     ` Peter V. Saveliev
2007-11-02  5:57       ` altlinux
2007-11-02  7:11         ` Peter V. Saveliev
2007-11-02  7:36           ` altlinux
2007-11-02  8:03             ` Peter V. Saveliev
2007-11-02 10:43               ` altlinux
2007-11-02 11:11                 ` Peter V. Saveliev
2007-11-06 10:26                   ` altlinux
2007-11-02 14:18                 ` Serge
2007-11-02 14:48                   ` Peter V. Saveliev
2007-11-06  7:56                     ` Alexey I. Froloff
2007-11-02 12:28   ` Igor Solovyov
2007-11-02 12:54     ` Peter V. Saveliev
2007-11-02 17:58       ` Igor Solovyov [this message]
2007-11-11 17:21       ` Igor Solovyov

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=20071102225852.7bcdda25.gosha@anti.su \
    --to=gosha@anti.su \
    --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