ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
* [Sysadmins] FTP и nat_ftp
@ 2009-05-21  4:03 Igor Golovichev
  2009-05-21  4:21 ` Alexey Sidorov
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Igor Golovichev @ 2009-05-21  4:03 UTC (permalink / raw)
  To: ALT Linux sysadmin discuss

Добрый день.

Не работает ftp из подсети с nat
Причем к ftp серверам подключается, по каталогам переходит, но файлы не 
копирует и большие каталоги не читает.
Как в винде так и с линукса.
На самом серваке ftp работает.
В чем дело не пойму.

# lsmod|egrep "ftp|ipt"
ipt_ttl                 2944  0
ipt_TCPMSS              5248  0
ipt_tos                 2688  0
iptable_mangle          5760  0
ipt_REJECT              6400  2
iptable_filter          5632  1
ipt_MASQUERADE          3712  14
iptable_nat            10884  1
ip_tables              15592  3 iptable_mangle,iptable_filter,iptable_nat
x_tables               17156  9 
xt_state,ipt_ttl,ipt_TCPMSS,ipt_tos,ipt_REJECT,ipt_MASQUERADE,xt_tcpudp,iptable_nat,ip_tables
ip_conntrack_ftp        9840  0
ip_nat_ftp              5120  0
ip_nat                 19856  4 vzrst,ipt_MASQUERADE,iptable_nat,ip_nat_ftp
ip_conntrack           61252  7 
xt_state,vzrst,vzcpt,iptable_nat,ip_conntrack_ftp,ip_nat_ftp,ip_nat


#ftp

*nat
-A POSTROUTING -s 192.168.133.0/255.255.255.0 -o ppp0 -p tcp -m tcp --dport 
20:21 -j SNAT --to-source 62.33.40.123
-A POSTROUTING -s 192.168.133.0/255.255.255.0 -o ppp0 -p udp -m udp --dport 
20:21 -j SNAT --to-source 62.33.40.123

*filter
-A INPUT -i ppp0 -p tcp -m tcp --sport 20 -m state --state 
RELATED,ESTABLISHED -j ACCEPT
-A INPUT -i ppp0 -p tcp -m tcp --sport 21 -m state --state 
RELATED,ESTABLISHED -j ACCEPT
-A INPUT -i ppp0 -p tcp -m tcp --sport 1024:65535 -m state --state 
RELATED,ESTABLISHED -j ACCEPT
-A OUTPUT -o ppp0 -p tcp -m tcp --sport 21 -m state --state 
NEW,RELATED,ESTABLISHED -j ACCEPT
-A OUTPUT -o ppp0 -p tcp -m tcp --sport 1024:65535 -m state --state 
NEW,RELATED,ESTABLISHED -j ACCEPT



-- 
С уважением, Головичев Игорь

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-05-21  7:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-21  4:03 [Sysadmins] FTP и nat_ftp Igor Golovichev
2009-05-21  4:21 ` Alexey Sidorov
2009-05-21  4:59   ` Igor Golovichev
2009-05-21  5:28 ` Владимир Кутявин
2009-05-21  5:39   ` Igor Golovichev
2009-05-21  5:59 ` Dmitry Lebkov
2009-05-21  7:16   ` Игорь Головичев

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