From: "Andriy Dobrovol's'kii" <dobr@iop.kiev.ua>
To: community@altlinux.ru
Subject: Re: [Comm] NAT
Date: Mon, 09 Jun 2003 12:00:36 +0300
Message-ID: <3EE44CB4.4010101@iop.kiev.ua> (raw)
In-Reply-To: <7919437062.20030609131142@toltc.samen.elektra.ru>
Кочетков Владимир wrote:
> Здравствуйте, Andriy.
>
> Вы писали 9 июня 2003 г., 12:35:19:
>
>
>>>Ну, пакетики через первое правило уходят.
>
> ADsk> Я только не пойму, как Вы их назад получить собрались? Или у eth0
> ADsk> настроено два IP? Да, и в цепочке форвардинга хождение пакетов
> ADsk> разрешено?
>
> Вот и я тоже не пойму, задача ставилась так:
>
> Стоит машина с двумя интерфейсами, реальным ххх.ххх.ххх.7 и внутренним
> 192.168.1.1. На ней настроен iptables на преобразование адресов
>
> $IPTABLES -t nat -A POSTROUTING -o eth0 -j SNAT --to-source xxx.xxx.xxx.7
>
> Нужно настроить выход одной машины под своим отдельным ip.
> Например во внутренней сети машинка 192.168.1.12 должна выходить
> наружу как ххх.ххх.ххх.12. Это нужно для раздачи инета, провайдер
> выдает по ip.
>
> На что мне и предложили добавить правило:
> $IPTABLES -t nat -A POSTROUTING -s 192.168.1.12 -o eth0 -j SNAT --to-source xxx.xxx.xxx.12
Ну, попробуйте добавить второй IP внешней карте. И провайдер должен
об этом знать, ес-но. Иначе, ИМХО, пакеты уходить будут, а вот назад
дорогу не найдут.
Или вставьте ещё одну карту и пускайте этот поток через неё... Но,
как-то это муторно...
--
Rgrds,
Andriy
*********************************************************************
email: dobr at iop dot kiev dot ua Kyiv, Ukraine
Phone: (380-44) 265-7824 Department of Gas Electronics
Fax: (380-44) 265-2329 Institute of Physics of NASU
*********************************************************************
next prev parent reply other threads:[~2003-06-09 9:00 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-05 8:05 Кочетков Владимир
2003-06-05 11:32 ` Mike Lykov
2003-06-05 11:45 ` Andriy Dobrovol's'kii
2003-06-06 7:02 ` Re[2]: " Кочетков Владимир
2003-06-06 7:11 ` Владимир
2003-06-06 7:42 ` Konstantin V. Gaidukov
2003-06-06 8:26 ` Andriy Dobrovol's'kii
2003-06-06 8:31 ` [Comm] squid & wb_ntlmauth troubles Konstantin V. Gaidukov
2003-06-06 9:37 ` Re[2]: [Comm] NAT Кочетков Владимир
2003-06-06 10:34 ` Alexander Simernin
2003-06-06 11:04 ` Владимир
2003-06-09 6:18 ` Re[2]: " Кочетков Владимир
2003-06-09 7:35 ` Andriy Dobrovol's'kii
2003-06-09 8:11 ` Re[2]: " Кочетков Владимир
2003-06-09 9:00 ` Andriy Dobrovol's'kii [this message]
2003-06-09 9:32 ` Кочетков Владимир
2003-06-09 9:49 ` Andriy Dobrovol's'kii
2003-06-09 10:11 ` Re[2]: " Кочетков Владимир
2003-06-09 10:38 ` Andriy Dobrovol's'kii
2003-06-10 6:01 ` Alexander Vasiliev
2003-06-09 10:14 ` Re[2]: " Yuri Hramov
2003-06-06 11:08 ` Konstantin V. Gaidukov
2003-06-06 11:36 ` Re[2]: " Yuri Hramov
2003-06-06 11:40 ` Yuri Hramov
2003-06-07 11:46 ` Igor Solovyov
2003-06-09 6:19 ` Re[4]: " Кочетков Владимир
2003-06-09 9:45 ` Yuri Hramov
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=3EE44CB4.4010101@iop.kiev.ua \
--to=dobr@iop.kiev.ua \
--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