From: "Вячеслав Диконов" <sdiconov@mail.ru>
To: ALT Linux Sisyphus discussions <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] etcnet i dva IP na fizicheskii interfeis
Date: Tue, 20 Nov 2007 10:45:42 +0300
Message-ID: <1195544742.7564.13.camel@localhost.localdomain> (raw)
In-Reply-To: <200711200042.41659.a_s_y@sama.ru>
В Втр, 20/11/2007 в 00:42 +0400, Sergey пишет:
> On 20 ноября 2007, Вячеслав Диконов wrote:
>
> > Ура! Заработало!
> >
> > Итак, что получилось:
> > #Маршрут частной подсети
> > /etc/net/ifaces/Corbina/ipv4route
> > 192.168.168.0/29
> Хм. А маршрут куда ?
Чтобы пакеты на адреса 192.168.168.(1-6) уходили с интерфейса Corbina, а
не через вторую сетевую карту, которая смотрит в другую большую сеть,
где есть любые 192.168.ххх.xxx/24. Есть способ лучше?
> > #Чтобы уходящие пакеты имели правильный адрес источника (для фильтрации)
> > /etc/sysconfig/iptables
> > -A POSTROUTING -d 192.168.168.2/29 -j SNAT --to-source 192.168.168.1
> > -A POSTROUTING -d 192.168.168.3/29 -j SNAT --to-source 192.168.168.1
> > -A POSTROUTING -d 192.168.168.4/29 -j SNAT --to-source 192.168.168.1
>
> А что, иначе он неправильный разьве ?
А иначе они имеют адрес источника равный динамическому IP от DHCP.
> в общем, первое - это, вообще, ошибка в понимании, что такое маршрутизация,
Без этого мне изредка приходит ответ на пинги, но от другой машины,
которая сидит в сети по другому физ. интерфейсу.
> а второе, по идее, не нужно.
Оказалось нужно. Экспериментально проверено.
next prev parent reply other threads:[~2007-11-20 7:45 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-18 22:17 [sisyphus] etcnet и два IP на физический интерфейс Вячеслав Диконов
2007-11-18 22:32 ` Pavlov Konstantin
2007-11-19 9:43 ` Sergey
2007-11-19 19:00 ` [sisyphus] etcnet i dva IP na fizicheskii interfeis Denis Medvedev
2007-11-19 19:32 ` Хихин Руслан
2007-11-19 20:04 ` Andrew Kornilov
2007-11-19 20:22 ` Хихин Руслан
2007-11-19 21:08 ` Andrew Kornilov
2007-11-19 20:30 ` Вячеслав Диконов
2007-11-19 20:19 ` Sergey
2007-11-19 20:18 ` Вячеслав Диконов
2007-11-19 20:26 ` Хихин Руслан
2007-11-19 20:42 ` Sergey
2007-11-20 7:45 ` Вячеслав Диконов [this message]
2007-11-20 12:20 ` Sergey
2007-11-20 14:35 ` Вячеслав Диконов
2007-11-20 14:51 ` Sergey
2007-11-20 15:35 ` Вячеслав Диконов
2007-11-20 17:00 ` Sergey
2007-11-20 6:06 ` Denis Ovsienko
2007-11-19 6:35 ` [sisyphus] etcnet и два IP на физический интерфейс Denis Ovsienko
2007-11-19 18:57 ` Вячеслав Диконов
2007-11-20 5:52 ` Denis Ovsienko
2007-11-20 6:06 ` Хихин Руслан
2007-11-20 8:05 ` Вячеслав Диконов
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=1195544742.7564.13.camel@localhost.localdomain \
--to=sdiconov@mail.ru \
--cc=sisyphus@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 Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git