From: Serge <skompan@kspu.kr.ua>
To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] перенаправление маркированых пакетов
Date: Wed, 9 Apr 2008 09:25:48 +0200
Message-ID: <200804091025.48625.skompan@kspu.kr.ua> (raw)
In-Reply-To: <47FC4B30.5090308@anti.su>
В сообщении от Wednesday 09 April 2008 07:50:56 am Gosha написал(а):
> 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.
разве правило
if from 192.168.1.2/255.255.255.0 to ! 192.168.1.0/24 mark 2 (хочу
переслать пакеты не через default gw)
не будет абсолютно ВСЕ пакеты заворачивать на другой интерфейс, не являющийся
default GW?
Можно ли как то дописать в правиле еще и return. Что бы дальше не проверялись
правила, если уже произошло совпадение?
next prev parent reply other threads:[~2008-04-09 7:25 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
2008-04-09 7:25 ` Serge [this message]
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=200804091025.48625.skompan@kspu.kr.ua \
--to=skompan@kspu.kr.ua \
--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