ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Alexander Vasiliev <vav@tascom.ru>
To: community@altlinux.ru
Subject: Re: [Comm] ftp сквозь iptables
Date: Thu, 20 Feb 2003 10:52:24 +0300
Message-ID: <20030220075224.GB10900@dennis.td.tascom.ru> (raw)
In-Reply-To: <18622.030219@taxpol.krasnoyarsk.su>

Наверное так будет проще:

/sbin/iptables -A OUTPUT -o eth0 -p tcp --dport 21 -m state --state NEW  -j ACCEPT
/sbin/iptables -A OUTPUT -o eth0 -p tcp -m state --state \
ESTABLISHED,RELATED -j ACCEPT

И проследить, чтобы загрузился модуль ip_conntrack_ftp.
On Wed, Feb 19, 2003 at 02:55:59PM +0700, aek 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 выпадает по тайм ауту.
> 
> Я гдето чегото не понимаю?
> 
> зы: просто ftp <host> (не ftp -p) и mc тормозит именно на этапе чтения
> каталога.
> 
> -- 
> Всех благ!
> АнатолийЪЪЪЪЪЪЪЪЪЪЪЪЪЪЪЪЪЪЪЪЪЪЪЪЪЪЪЪЪЪЪЪЪЪЪб╒i╝·+r≥╗╔┼x%┼кB╒i╝·+rЩ╘m√)НгЗН├шiЪЪПц\x0fз√ыb·ЛЪ╝ОФj)fj\x7fЕ┼кb²З?r┴╕╨x╜
Александр Васильев
ЗАО "Таском"
vav@tascom.ru


      parent reply	other threads:[~2003-02-20  7:52 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
2003-02-20  3:07   ` [Comm] Re[2]: " aek
2003-02-20  6:06     ` vic ismakaev
2003-02-20  6:39       ` [Comm] Re[2]: " aek
2003-02-20  7:52 ` Alexander Vasiliev [this message]

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=20030220075224.GB10900@dennis.td.tascom.ru \
    --to=vav@tascom.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