ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Alexander Volkov <vaa@altlinux.org>
To: sysadmins@lists.altlinux.org
Subject: Re: [Sysadmins] LARTC and VE traffic in multihomed server
Date: Wed, 31 Oct 2012 10:35:33 +0400
Message-ID: <20121031063533.GA5698@arch.vladregion.ru> (raw)
In-Reply-To: <20121026131317.GF35306@arch.vladregion.ru>

On 2012-10-26 17:13:17 +0400, Alexander Volkov wrote:
AV> On 2012-10-26 16:11:49 +0400, Pavel wrote:
AV> P> >Как бы их заставить возвращать пакеты 
AV> P> >тем же путем, откуда они пришли?
AV> P> А не
AV> P> man iptables
AV> P> /connmark
AV> P> ли вам нужен?
AV>  
AV> оо, спасибо за направление, похоже на то) 
Итого, для числа линков N добавляются правила:
ip ru ad fwmark n table link_n
$IPTABLES -t mangle -N conn_track
$IPTABLES -t mangle -A conn_track -i $n -j CONNMARK --set-mark n
$IPTABLES -t mangle -A PREROUTING -m state --state ESTABLISHED,RELATED \
-j CONNMARK --restore-mark
$IPTABLES -t mangle -A FORWARD -i $VI_IF -m state --state NEW \
-j conn_track

И всё работает как надо)

--
 Regards, Alexander



      reply	other threads:[~2012-10-31  6:35 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-25 13:14 Alexander Volkov
2012-10-25 13:29 ` Alexander Volkov
2012-10-25 13:43 ` Viacheslav Dubrovskyi
2012-10-25 13:53   ` Viacheslav Dubrovskyi
2012-10-26  6:13     ` Alexander Volkov
2012-10-26  6:18       ` Alexei Takaseev
2012-10-26  7:39         ` Alexander Volkov
2012-10-26 10:19           ` Michael Shigorin
2012-10-26 10:37             ` Alexander Volkov
2012-10-26 12:11 ` Pavel
2012-10-26 13:13   ` Alexander Volkov
2012-10-31  6:35     ` Alexander Volkov [this message]

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=20121031063533.GA5698@arch.vladregion.ru \
    --to=vaa@altlinux.org \
    --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