From: "Хихин Руслан" <hihin@yandex.ru>
To: sisyphus@lists.altlinux.org
Subject: Re: [sisyphus] etcnet i dva IP na fizicheskii interfeis
Date: Mon, 19 Nov 2007 23:26:02 +0300
Message-ID: <200711192326.03538@ruslandh> (raw)
In-Reply-To: <1195503517.20789.20.camel@localhost.localdomain>
[-- Attachment #1: Type: text/plain, Size: 1570 bytes --]
Здравствуйте Вячеслав Диконов
В сообщении от 19 ноября 2007 Вячеслав Диконов написал(a):
> В Пнд, 19/11/2007 в 22:00 +0300, Denis Medvedev пишет:
> > И я такого же хочу. Чтобы dhcp и static на одном и том же
> > физическом интерфейсе.
>
> Ура! Заработало!
>
>
>
> Итак, что получилось:
>
> Имеется интерфейс Corbina настраиваемый по DHCP.
>
> Имеется второй комп физически подключенный в тот же коммутатор.
>
> Оба компа получают динамические IP, но между собой общаются по
>
> статическому IP из подсети 192.168.168.0/29
>
> iptables сечет попытки залезть в ssh, если пакет пришел не с
> приватного
>
> адреса 192.168.168.x/29 (а еще по mac).
>
>
>
> Как сделал:
>
> #Здесь все обычно
>
> /etc/net/ifaces/Corbina/options
>
> TYPE=eth
>
> BOOTPROTO=dhcp
>
>
>
> #Второй адрес:
>
> /etc/net/ifaces/Corbina/ipv4address
>
> 192.168.168.1/29
>
>
>
> #Маршрут частной подсети
>
> /etc/net/ifaces/Corbina/ipv4route
>
> 192.168.168.0/29
>
> #Чтобы уходящие пакеты имели правильный адрес источника (для
> фильтрации)
>
> /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
>
>
> Положите в HOWTO, пожалуйста, если это устроит гуру.
Я думаю, что стоит положить на freesouce от вашего имени, да и на форуме
Корбины ссылку дать (сам не яляюсь пользователем Корбины, но знакомые
на Корбине есть).
--
С уважением Хихин Руслан
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2007-11-19 20:26 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 ` Хихин Руслан [this message]
2007-11-19 20:42 ` Sergey
2007-11-20 7:45 ` Вячеслав Диконов
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=200711192326.03538@ruslandh \
--to=hihin@yandex.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