From: Alex <abmagic@mail.ru> To: Igor Moskalev <community@altlinux.ru> Subject: Re: [Comm] vopros pro iptables and FTP Date: Tue, 24 Sep 2002 10:08:39 +0400 Message-ID: <673670599.20020924100839@mail.ru> (raw) In-Reply-To: <Pine.LNX.4.44L.0209232045100.16169-100000@localhost.localdomain> Tuesday, September 24, 2002, 6:11:52 AM, Igor Moskalev пишет: IM> Конфигурил я тут iptables по умной книжке а там для разрешения работы IM> FTP приводятся нижеследующие правила: [...] IM> Так вот, при такой конфигурации соединение с ftp сайтами устанавливается IM> и они пускают по паролю или без него, НО на любую команду (например ls), IM> после довольно долгого ожидания приходит такой вот ответ: IM> Faled to establish connection. [...] IM> Насколько я понимаю, получается, что для нормальной работы FTP IM> нужно разрешить связь на какой-то (какие-то) непривилегированный(е) IM> порт(ы). IM> Вопрос: какие именно порты и зачем??? В продвинутых протоколах используется одиночное сетевое соединение для обмена данными (например HTTP по 80 порту). FTP использует отдельный канал для КОМАНД (на 21 порту сервера) и отдельный для ДАННЫХ (динамический). Кроме того существуют еще и два режима организации канала данных - пассивный (сервер и клиент соединяются по непривелигированным портам) и активный (20 порт сервера --> непривелигированный порт клиента) ... Короче говоря, для iptables есть спец модуль ip_conntrack_ftp, для корректной работы с ftp Alex
next prev parent reply other threads:[~2002-09-24 6:08 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-09-24 2:11 Igor Moskalev 2002-09-24 4:52 ` Igor Homyakov 2002-09-24 15:45 ` Igor Moskalev 2002-09-25 10:29 ` Igor Homyakov 2002-09-26 4:47 ` Igor Moskalev 2002-09-24 6:08 ` Alex [this message] 2002-09-24 16:06 ` Igor Moskalev 2002-09-25 11:59 ` Dmitry Lebkov
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=673670599.20020924100839@mail.ru \ --to=abmagic@mail.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