ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: "Kharitonov A. Dmitry" <kharpost@rambler.ru>
To: shaba@altlinux.ru,
	 ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] iptables и ftp --- фича или баг?
Date: Thu, 20 Nov 2008 08:42:06 +0300
Message-ID: <4924F8AE.4060500@rambler.ru> (raw)
In-Reply-To: <b966c1e40811191447w6a26ea5ep417b71ec998f8633@mail.gmail.com>

Alexey Shabalin пишет:
> 2008/11/19 Kharitonov A. Dmitry :
>   
>> [user@SERVER ~]$ sudo lsmod | egrep "ftp|ipt"
>> ipt_MASQUERADE          7808  1
>> ipt_REJECT              9472  705
>> iptable_mangle          7040  0
>> iptable_nat            11652  1
>> iptable_filter          7168  1
>> ip_tables              17604  3 iptable_mangle,iptable_nat,iptable_filter
>> ipt_REDIRECT            6272  0
>> ipt_LOG                10496  0
>> x_tables               18180  8
>> xt_state,xt_tcpudp,ipt_MASQUERADE,ipt_REJECT,iptable_nat,ip_tables,ipt_REDIRECT,ipt_LOG
>> ip_nat_ftp              7680  0
>> ip_nat                 22060  4
>> ipt_MASQUERADE,iptable_nat,ipt_REDIRECT,ip_nat_ftp
>> ip_conntrack_ftp       12016  1 ip_nat_ftp
>> ip_conntrack           56800  6
>> xt_state,ipt_MASQUERADE,iptable_nat,ip_nat_ftp,ip_nat,ip_conntrack_ftp
>>
>> делаю
>> -A INPUT -i wan -p tcp -m tcp --sport 20 ! --tcp-flags FIN,SYN,RST,ACK SYN
>> -m state --state RELATED,ESTABLISHED -j ACCEPT
>> -A INPUT -i wan -p tcp -m tcp --sport 21 ! --tcp-flags FIN,SYN,RST,ACK SYN
>> -m state --state RELATED,ESTABLISHED -j ACCEPT
>> -A OUTPUT -o wan -p tcp -m tcp --dport 20 -m state --state
>> NEW,RELATED,ESTABLISHED -j ACCEPT
>> -A OUTPUT -o wan -p tcp -m tcp --dport 21 -m state --state
>> NEW,RELATED,ESTABLISHED -j ACCEPT
>>
>> запускаю firefox
>> ERROR
>> The requested URL could not be retrieved
>>
>> An FTP protocol error occurred while trying to retrieve the URL:
>> ftp://ftp.altlinux.org/pub/distributions/
>> <ftp://ftp.altlinux.org/pub/distributions/OpenMusic/>
>>
>> Squid sent the following FTP command:*
>> *NLST
>> **and then received this reply*
>> *Use PORT or PASV first.
>> Your cache administrator is webmaster <mailto:webmaster>.
>> Generated Wed, 19 Nov 2008 23:35:09 GMT by server.dimahost
>> (squid/2.6.STABLE13)
>>
>> делаю
>> -A INPUT -i wan -p tcp -m tcp --sport 20 ! --tcp-flags FIN,SYN,RST,ACK SYN
>> -m state --state RELATED,ESTABLISHED -j ACCEPT
>> -A INPUT -i wan -p tcp -m tcp --sport 21 ! --tcp-flags FIN,SYN,RST,ACK SYN
>> -m state --state RELATED,ESTABLISHED -j ACCEPT
>> -A INPUT -i wan -p tcp -m tcp --sport 1024:65535 ! --tcp-flags
>> FIN,SYN,RST,ACK SYN -m state --state RELATED,ESTABLISHED -j ACCEPT
>> -A OUTPUT -o wan -p tcp -m tcp --dport 20 -m state --state
>> NEW,RELATED,ESTABLISHED -j ACCEPT
>> -A OUTPUT -o wan -p tcp -m tcp --dport 21 -m state --state
>> NEW,RELATED,ESTABLISHED -j ACCEPT
>> -A OUTPUT -o wan -p tcp -m tcp --dport 1024:65535 -m state --state
>> NEW,RELATED,ESTABLISHED -j ACCEPT
>>
>> запускаю firefox
>> Всё нормально.
>>
>> Я, так понимаю, не работают
>> ip_nat_ftp              7680  0
>> ip_conntrack_ftp       12016  1 ip_nat_ftp
>>
>>
>> Кто мне разъеснит: это фича или баг?
>>     
> это пасивный режим работы ftp.
>   
Это я знаю. Я пока вижу, что не работает модуль ip_conntrack_ftp


  reply	other threads:[~2008-11-20  5:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-19 19:47 Kharitonov A. Dmitry
2008-11-19 22:47 ` Alexey Shabalin
2008-11-20  5:42   ` Kharitonov A. Dmitry [this message]
2008-11-20  5:34   ` Kharitonov A. Dmitry
2008-11-20  6:38     ` "ЗАО \"Уралэнерго-Союз\" / Бережко Иван"
2008-11-21 16:15       ` Kharitonov A. Dmitry
2008-11-22 15:27 ` Kharitonov A. Dmitry

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=4924F8AE.4060500@rambler.ru \
    --to=kharpost@rambler.ru \
    --cc=shaba@altlinux.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