From: Olvin <olvin@rambler.ru>
To: ALT Linux Community <community@lists.altlinux.org>
Subject: Re: [Comm] маскарадинг
Date: Thu, 08 Dec 2005 11:23:40 +0200
Message-ID: <4397FB9C.5040607@rambler.ru> (raw)
In-Reply-To: <4397E93B.2010507@altlinux.ru>
Anton Gorlov wrote:
>>> Тогда ещё нужно сделать dnat (проброситть порт на клиентскую машинку со
>>> шлюза)
>> А сокет-сервер (dante-server) это не делает что ли?
> А должен?
>> -A POSTROUTING -o <inet_dev> -j SNAT --to-source <inet_ip>
>> где вместо <inet_dev> и <inet_ip> реальные значения, взято с
>> faq.altlinux.ru.
> Вроде похоже на правду.
Проброска порта - операция двунаправленная. Т.е. надо не только SNAT, но
и DNAT.
iptables -t nat -A PREROUTING -p tcp --dport 42306 -d inet_addr -j DNAT
--to-destination local_addr
iptables -t nat -A PREROUTING -p udp --dport 42306 -d inet_addr -j DNAT
--to-destination local_addr
iptables -t nat -A POSTROUTING -p tcp --dport 42306 -s local_addr -j
SNAT --to-source inet_addr
iptables -t nat -A POSTROUTING -p udp --dport 42306 -s local_addr -j
SNAT --to-source inet_addr
Это работало.
next prev parent reply other threads:[~2005-12-08 9:23 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-07 15:03 Шенцев Алексей Владимирович
2005-12-07 15:30 ` Slava Dubrovskiy
2005-12-08 7:11 ` Шенцев Алексей Владимирович
2005-12-08 7:28 ` Anton Gorlov
2005-12-08 7:28 ` Шенцев Алексей Владимирович
2005-12-08 7:33 ` Anton Gorlov
2005-12-08 7:39 ` Шенцев Алексей Владимирович
2005-12-08 7:45 ` Anton Gorlov
2005-12-08 7:53 ` Шенцев Алексей Владимирович
2005-12-08 8:05 ` Anton Gorlov
2005-12-08 9:23 ` Olvin [this message]
2005-12-08 11:51 ` Шенцев Алексей Владимирович
2005-12-08 13:33 ` Olvin
2005-12-08 14:59 ` Шенцев Алексей Владимирович
2005-12-08 15:19 ` Olvin
2005-12-08 15:30 ` Шенцев Алексей Владимирович
2005-12-08 16:04 ` [Comm] маскарадинг Michael Shigorin
2005-12-08 16:10 ` Шенцев Алексей Владимирович
2005-12-08 9:04 ` [Comm] маскарадинг Vladimir V. Kamarzin
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=4397FB9C.5040607@rambler.ru \
--to=olvin@rambler.ru \
--cc=community@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 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