From: Grigory Fateyev <greg@anastasia.ru>
To: sysadmins@lists.altlinux.org
Subject: Re: [Sysadmins] iptables rules DNAT ftp passive
Date: Fri, 16 May 2008 19:27:20 +0400
Message-ID: <20080516192720.50891aa7@greg.dobroe.net> (raw)
In-Reply-To: <200805162121.37996.ripper.mail@gmail.com>
Hello Starodumoff Ilya!
On Fri, 16 May 2008 21:21:37 +0600 you wrote:
> В сообщении от 16 мая 2008 Grigory Fateyev написал(a):
> > Здравствуйте!
> >
> > Подскажите как в iptables разрешить подключение пассивного ftp при
> > условии что ftp сервер находиться в VE и подключение на 21 порт
> > днатиться?
>
> банально выставить диапазон "верхних" портов и днатить их наряду с 21
> портом
>
> еще есть ip_nat_ftp, ip_conntrack_ftp (можете modinfo к нему
> посмотреть, если надо "днатить" на разные порты)
Типа такого?
$IPTABLES -t nat -A PREROUTING -p tcp -d $INET_1IP -m multiport --dport
1024: -j DNAT --to-destination $WEB1_VE
А в FORWARD ничего не надо?
--
Всего наилучшего! Григорий
greg [at] anastasia [dot] ru
Письмо отправлено: 2008/05/16 19:25
next prev parent reply other threads:[~2008-05-16 15:27 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-16 15:15 Grigory Fateyev
2008-05-16 15:21 ` Starodumoff Ilya
2008-05-16 15:27 ` Grigory Fateyev [this message]
2008-05-16 15:41 ` Starodumoff Ilya
2008-05-16 15:54 ` Grigory Fateyev
2008-05-16 16:07 ` Starodumoff Ilya
2008-05-16 17:22 ` Grigory Fateyev
2008-05-16 17:32 ` Starodumoff Ilya
2008-05-16 17:48 ` Grigory Fateyev
2008-05-16 18:03 ` Starodumoff Ilya
2008-05-16 18:25 ` Grigory Fateyev
2008-05-17 3:57 ` Starodumoff Ilya
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=20080516192720.50891aa7@greg.dobroe.net \
--to=greg@anastasia.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