From: Grigory Fateyev <greg@anastasia.ru>
To: sysadmins@lists.altlinux.org
Subject: Re: [Sysadmins] iptables rules DNAT ftp passive
Date: Fri, 16 May 2008 21:22:59 +0400
Message-ID: <20080516212259.5323e54b@greg.dobroe.net> (raw)
In-Reply-To: <200805162207.28457.ripper.mail@gmail.com>
Hello Starodumoff Ilya!
On Fri, 16 May 2008 22:07:28 +0600 you wrote:
> В сообщении от 16 мая 2008 Grigory Fateyev написал(a):
> > Hello Starodumoff Ilya!
> >
> > On Fri, 16 May 2008 21:41:22 +0600 you wrote:
> > > > А в FORWARD ничего не надо?
> > >
> > > конечно надо, если там полиси не accept стоит... :)
> >
> > Не покажите свои? :) На примерах проще разобраться...
>
> ну например так:
>
> iptables -P FORWARD DROP
> iptables -A FORWARD -m state --state INVALID -j DROP
> iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
> iptables -A FORWARD -d $VE_IP -m state --state NEW -p tcp --dport 21
> -j ACCEPT iptables -A FORWARD -d $VE_IP -m state --state NEW -p tcp
> --dport \ 65000:65535 -j ACCEPT
>
> iptables -t nat -A PREROUTING -d $HN_IP -p tcp --dport 21 \
> -j DNAT --to-destination $VE_IP
> iptables -t nat -A PREROUTING -d $HN_IP -p tcp --dport 65000:65535 \
> -j DNAT --to-destination $VE_IP
>
> ну и соответствующим образом настроенный (диапазон портов для
> пассивного режима) ftp сервер в VE
>
> соль, перец и остальное по вкусу :)
>
Спасибо, но что-то не получается...
--
Всего наилучшего! Григорий
greg [at] anastasia [dot] ru
Письмо отправлено: 2008/05/16 21:22
next prev parent reply other threads:[~2008-05-16 17:22 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
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 [this message]
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=20080516212259.5323e54b@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