From: Dmitry Lebkov <dima@sakhalin.ru>
To: community@altlinux.ru
Subject: Re: [Comm] ftp сквозь iptables
Date: Wed, 19 Feb 2003 22:39:30 +1000
Message-ID: <20030219223930.3f2de1d7.dima@sakhalin.ru> (raw)
In-Reply-To: <18622.030219@taxpol.krasnoyarsk.su>
On Wed, 19 Feb 2003 14:55:59 +0700
aek <aek@taxpol.krasnoyarsk.su> wrote:
> Hello community,
>
> есть правила
> /sbin/iptables -A OUTPUT -o eth0 -p tcp --dport 21 -j ACCEPT
> /sbin/iptables -A INPUT -i eth0 -p tcp ! --syn --sport 21 -j ACCEPT
> /sbin/iptables -A INPUT -i eth0 -p tcp --dport 20 -j ACCEPT
> /sbin/iptables -A OUTPUT -o eth0 -p tcp ! --syn --sport 20 -j ACCEPT
> /sbin/iptables -A INPUT -i eth0 -p tcp --sport 1024:65535 --dport
> 1024:65535 -j ACCEPT/sbin/iptables -A OUTPUT -o eth0 -p tcp --sport
> 1024:65535 --dport 1024:65535 -j ACCEPT
>
> как отключаю iptables, фтпишка работает без проблем.
> как включаю iptables фтпишка соединяется,запрашивает логин, пароль,
> говорит что все Ок, но при попытке сделать ls выпадает по тайм ауту.
>
> Я гдето чегото не понимаю?
Если я ничего не перепутал, твой набор правил не учитывает ситуацию:
server:(20|21) syn -> client:(1024:65535) -- это ответ сервера в случае
passive mode.
А вся возня с модулями нужна только в том случае, если у тебя
используются правила для (S|D)NAT или MASQUERADING.
--
WBR, Dmitry Lebkov
next prev parent reply other threads:[~2003-02-19 12:39 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-19 7:55 aek
2003-02-19 9:50 ` Maxim.Savrilov
2003-02-19 11:40 ` [Comm] Re[2]: " aek
2003-02-19 10:08 ` Sergey Indlin
2003-02-19 11:44 ` [Comm] Re[2]: " aek
2003-02-19 12:02 ` Mike Lykov
2003-02-19 15:12 ` Sergey Indlin
2003-02-19 12:39 ` Dmitry Lebkov [this message]
2003-02-20 3:07 ` aek
2003-02-20 6:06 ` vic ismakaev
2003-02-20 6:39 ` [Comm] Re[2]: " aek
2003-02-20 7:52 ` Alexander Vasiliev
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=20030219223930.3f2de1d7.dima@sakhalin.ru \
--to=dima@sakhalin.ru \
--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