* [mdk-re] two addresses @ 2001-01-21 19:56 Igor Solovyov 2001-01-21 21:02 ` Alexander Bokovoy 0 siblings, 1 reply; 4+ messages in thread From: Igor Solovyov @ 2001-01-21 19:56 UTC (permalink / raw) To: Mandrake-Russian Hi All! Нужно на один интерфейс два адреса назначить. Подскажите где прочитать как это делается. И еще, если не трудно, подскажите чем можно сделать такую вещь: приходит пакет на <адрес>:<порт>, отправить его на <другой адрес>:<другой порт> ipchains умеет только для портов редирект делать, а чем на адреса редирект сделать можно? -- Best regards! Igor Solovyov Zlatoust, Russia ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [mdk-re] two addresses 2001-01-21 19:56 [mdk-re] two addresses Igor Solovyov @ 2001-01-21 21:02 ` Alexander Bokovoy 2001-01-21 22:07 ` Igor Solovyov 0 siblings, 1 reply; 4+ messages in thread From: Alexander Bokovoy @ 2001-01-21 21:02 UTC (permalink / raw) To: mandrake-russian On Sun, Jan 21, 2001 at 09:55:35PM -0500, Igor Solovyov wrote: > Hi All! > > Нужно на один интерфейс два адреса назначить. Если есть /etc/sysconfig/network-scripts/ifcfg-eth0, то второй адрес будет описан в /etc/sysconfig/network-scripts/ifcfg-eth0:0, третий -- в /etc/sysconfig/network-scripts/ifcfg-eth0:1, и так далее, только в них нужно DEVICE соответственно будет eth0:0, eth0:1 и т.д. Главное -- в ядре должна быть поддержка IP address aliases. > > Подскажите где прочитать как это делается. > > И еще, если не трудно, подскажите чем можно сделать такую вещь: > приходит пакет на <адрес>:<порт>, отправить его на <другой адрес>:<другой порт> > > ipchains умеет только для портов редирект делать, а чем на адреса редирект сделать можно? Можно. В зависимости от того, куда перенаправление идет (внутрь сети или наружу) по-разному. В первом случае -- это обыкновенный редирект, который лучше делать через xinetd. Во втором случае -- iproute2/iputils. -- Sincerely yours, Alexander Bokovoy The Midgard Project | www.midgard-project.org | Aurora R&D team Minsk Linux Users Group | www.minsk-lug.net | www.aurora-linux.com IPLabs Linux Team | linux.iplabs.ru | Architecte Open Source -- "Trust me. I know what I'm doing." -- Sledge Hammer ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [mdk-re] two addresses 2001-01-21 21:02 ` Alexander Bokovoy @ 2001-01-21 22:07 ` Igor Solovyov 2001-01-21 23:01 ` Alexander Bokovoy 0 siblings, 1 reply; 4+ messages in thread From: Igor Solovyov @ 2001-01-21 22:07 UTC (permalink / raw) To: mandrake-russian Hi ! On Sun, 21 Jan 2001 19:59:17 +0200 Alexander Bokovoy <ab@avilink.net> wrote: AB> On Sun, Jan 21, 2001 at 09:55:35PM -0500, Igor Solovyov wrote: AB> > Нужно на один интерфейс два адреса назначить. AB> Если есть /etc/sysconfig/network-scripts/ifcfg-eth0, AB> то второй адрес будет описан в AB> /etc/sysconfig/network-scripts/ifcfg-eth0:0, AB> третий -- в /etc/sysconfig/network-scripts/ifcfg-eth0:1, и так далее, AB> только в них нужно DEVICE соответственно будет eth0:0, eth0:1 и т.д. AB> Главное -- в ядре должна быть поддержка IP address aliases. Спасибо! А в /etc/conf.modules для eth0:0 алиас прописывать нужно? AB> > И еще, если не трудно, подскажите чем можно сделать такую вещь: AB> > приходит пакет на <адрес>:<порт>, отправить его на <другой адрес>:<другой порт> AB> Можно. В зависимости от того, куда перенаправление идет (внутрь сети или наружу) по-разному. AB> В первом случае -- это обыкновенный редирект, который лучше делать через xinetd. AB> Во втором случае -- iproute2/iputils. Нужно так: приходит на внешний интерфейс рутера, а перенаправляется на один из хостов в локалке. Т.е. через xinetd делать? А взять его, насколько я понимаю, можно в Sisyphus? -- Best regards! Igor Solovyov Zlatoust, Russia ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [mdk-re] two addresses 2001-01-21 22:07 ` Igor Solovyov @ 2001-01-21 23:01 ` Alexander Bokovoy 0 siblings, 0 replies; 4+ messages in thread From: Alexander Bokovoy @ 2001-01-21 23:01 UTC (permalink / raw) To: mandrake-russian On Mon, Jan 22, 2001 at 12:08:12AM -0500, Igor Solovyov wrote: > Hi ! > On Sun, 21 Jan 2001 19:59:17 +0200 Alexander Bokovoy <ab@avilink.net> wrote: > AB> On Sun, Jan 21, 2001 at 09:55:35PM -0500, Igor Solovyov wrote: > AB> > Нужно на один интерфейс два адреса назначить. > > AB> Если есть /etc/sysconfig/network-scripts/ifcfg-eth0, > AB> то второй адрес будет описан в > AB> /etc/sysconfig/network-scripts/ifcfg-eth0:0, > AB> третий -- в /etc/sysconfig/network-scripts/ifcfg-eth0:1, и так далее, > AB> только в них нужно DEVICE соответственно будет eth0:0, eth0:1 и т.д. > AB> Главное -- в ядре должна быть поддержка IP address aliases. > > Спасибо! А в /etc/conf.modules для eth0:0 алиас прописывать нужно? Не нужно -- это ведь просто обозначение, на самом деле никаких алиасов не существует, есть первичный адрес интерфейса и вторичные адреса, прикрепленные к нему. > AB> > И еще, если не трудно, подскажите чем можно сделать такую вещь: > AB> > приходит пакет на <адрес>:<порт>, отправить его на <другой адрес>:<другой порт> > > AB> Можно. В зависимости от того, куда перенаправление идет (внутрь сети или наружу) по-разному. > AB> В первом случае -- это обыкновенный редирект, который лучше делать через xinetd. > AB> Во втором случае -- iproute2/iputils. > Нужно так: приходит на внешний интерфейс рутера, а перенаправляется на один из хостов в локалке. > Т.е. через xinetd делать? А взять его, насколько я понимаю, можно в Sisyphus? Есть и специализированные программы, но если нагрузка небольшая, то можно и через xinetd. Читайте man xinetd.conf -- Sincerely yours, Alexander Bokovoy The Midgard Project | www.midgard-project.org | Aurora R&D team Minsk Linux Users Group | www.minsk-lug.net | www.aurora-linux.com IPLabs Linux Team | linux.iplabs.ru | Architecte Open Source -- "Trust me. I know what I'm doing." -- Sledge Hammer ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-01-21 23:01 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2001-01-21 19:56 [mdk-re] two addresses Igor Solovyov 2001-01-21 21:02 ` Alexander Bokovoy 2001-01-21 22:07 ` Igor Solovyov 2001-01-21 23:01 ` Alexander Bokovoy
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