ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Gosha <gosha@anti.su>
To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] перенаправление маркированых пакетов
Date: Wed, 09 Apr 2008 10:50:56 +0600
Message-ID: <47FC4B30.5090308@anti.su> (raw)
In-Reply-To: <200804070921.56925.skompan@kspu.kr.ua>

Serge пишет:

> cat MARK
> if from 192.168.1.2/255.255.255.0  to 172.26.15.0/24 mark 5 (эти пакеты я хочу 
> пересылать через интерфейс, являющийся default gw)
> 
> if from 192.168.1.2/255.255.255.0  to ! 192.168.1.0/24 mark 2 (хочу переслать 
> пакеты не через default gw)
> return
> 
> как сделать что бы после выполнения 1 го правила в MARK дальше проверка не 
> производилась. Так как в зависимости от того в какой последовательности 
> записаны правила по разному перенаправляются пакеты

А зачем Вы маркируете пакеты, которые пойдут через default gw?
Они и без маркировки пойдут куда следует. :-)
Маркируйте только те, которые пойдут другим путем и только для
них и делайте отдельную табличку маршрутизации c помощью iproute2.

--
Gosha



  reply	other threads:[~2008-04-09  4:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-07  6:21 Serge
2008-04-09  4:50 ` Gosha [this message]
2008-04-09  7:25   ` Serge
2008-04-09 17:01     ` Gosha
2008-04-10  4:52       ` Serge

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=47FC4B30.5090308@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