From: Dmitry Vodennikov <vod@elecom.ru>
To: community@altlinux.ru
Subject: Re: [Comm] iproute2 и локальные службы
Date: Wed, 30 Mar 2005 00:18:32 -0800
Message-ID: <424A60D8.6000703@elecom.ru> (raw)
In-Reply-To: <424A5B8B.8040602@13.net.ru>
Маркелов Александр пишет:
> Доброго времени суток!
> Хочу по примеру описанному тут
> http://lists.altlinux.ru/pipermail/community/2001-January/002487.html
> разрулить свою сеть.
> Задача следующая, есть 2 инета быстрый и медленный, и локальная сеть.
> Хочу все запросы на веб трафик пустить через быстрый инет, при этом
> предварительно пропустить через кэш, все остальное по медленному.
> делаю следующие:
>
> route add default gw ШЛЮЗ-МЕДЛЕННОГО-КАНАЛА dev cp0
> echo "10 highspeed" >> /etc/iproute2/rt_tables
> /sbin/ip route add default via ШЛЮЗ-БЫСТРОГО-КАНАЛА dev eth1 table
> highspeed
> /sbin/ip rule add from БЫСТРАЯ-ПОДСЕТЬ/МАСКА preference 100 table highspeed
> /sbin/ip route flush cache
>
> Быстрая-подсеть это только ip адрес на интерфейсе eth1 быстрого канала.
> Squid заставляю слушать на локальном адресе, а ходить в инет с адреса
> быстрого-канала, тем самым все запросы должны пойти согласно таблице
> highspeed через шлюз быстрого канала.
> (Схему пока не опробовал, но выглядит вполне работоспособно)
>
> Но вот вопрос какой, локальные службы на роутере, которым явным образом
> не сказанно с какого source ip ходить, они каким образом пойдут ? С
> какого ip и соответственно по какому каналу ?
Могу ошибаться, но вроде бы если сделать что-то типа такого:
/sbin/ip rule add iif lo table highspeed
то локальные службы будут ходить через highspeed
next prev parent reply other threads:[~2005-03-30 8:18 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-30 7:55 Маркелов Александр
2005-03-30 8:18 ` Dmitry Vodennikov [this message]
2005-03-30 8:32 ` Маркелов Александр
2005-03-30 11:57 ` Grigory Fateyev
2005-03-31 3:35 ` [Comm] " max
2005-03-31 9:57 ` Маркелов Александр
2005-03-31 11:10 ` max
2005-03-31 11:16 ` Маркелов Александр
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=424A60D8.6000703@elecom.ru \
--to=vod@elecom.ru \
--cc=community@altlinux.ru \
/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 Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git