From: Aleksey Avdeev <solo@solin.spb.ru>
To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] pop3-server внутри ovz контейнера
Date: Fri, 17 Aug 2007 00:27:37 +0400
Message-ID: <46C4B339.5000303@solin.spb.ru> (raw)
In-Reply-To: <f041fbd00708160741m2e23e631wf40614aeb4f9c558@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 596 bytes --]
Maks Re пишет:
> очень ждемсЪ статью...
>
> ибо что-то я не понимать в некоторых местах...
> например использовани HN с двумя интерфейсами...
> у меня,после поднятия второго интерфейса, почему-то стаои соединения
> утанавливаться внутрь контейнера именно с него (а это инет и все аткое..)
Самое весёлое -- что не всегда можно сказать ip какого интерфейса
будет исходящим.
Решаю примерно так:
iptables -t mangle -A OUTPUT -o venet0 -j MARK --set-mark 0x01
iptables -t nat -I POSTROUTING 1 -mmark --mark 0x01 -j SNAT --to-source
<lan_ip>
--
С уважением. Алексей.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 548 bytes --]
next prev parent reply other threads:[~2007-08-16 20:27 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-16 13:05 Vladimir Cherednichenko
2007-08-16 13:27 ` Slava Dubrovskiy
2007-08-16 14:02 ` Vladimir Cherednichenko
2007-08-16 14:34 ` Mikhail A. Pokidko
2007-08-16 16:11 ` Vladimir Cherednichenko
2007-08-16 16:17 ` Michael Shigorin
2007-08-16 20:27 ` Aleksey Avdeev [this message]
2007-08-17 6:33 ` Michael Shigorin
2007-08-17 11:52 ` Aleksey Avdeev
2007-08-17 6:34 ` Michael Shigorin
2007-08-17 7:36 ` Michael Shigorin
2007-08-17 11:10 ` Michael Shigorin
2007-08-17 16:46 ` Eugene Prokopiev
2007-08-17 16:58 ` Michael Shigorin
2007-08-19 11:01 ` Eugene Prokopiev
2007-08-19 16:04 ` Michael Shigorin
2007-08-20 4:27 ` Eugene Prokopiev
2007-08-17 11:40 ` Aleksey Avdeev
2007-08-19 7:40 ` Alexey Borovskoy
2007-08-16 14:57 ` Slava Dubrovskiy
2007-08-16 16:08 ` Vladimir Cherednichenko
2007-08-16 16:16 ` [Sysadmins] openvz action scripts (mount, umount) Michael Shigorin
2007-08-17 5:07 ` Eugene Prokopiev
2007-08-17 6:17 ` Michael Shigorin
2007-08-18 13:20 ` Ivan Fedorov
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=46C4B339.5000303@solin.spb.ru \
--to=solo@solin.spb.ru \
--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