ludi wrote:
I had settled the problem last time,with help.:)
First of all, you must insmod ftp_conntrack(nat_ftp_conntrack....etc).
The module work for processing the ftp connection.
And then, you should bind ftp on 21port.The module only can track the
21port by default.If you want to set other port,you must edit the
source.
You may setup your rule to allow the ftp pass.
Did your ftp work?
:)
ip_conntrack_ftp takes an array of ports.
# modinfo ip_conntrack_ftp
filename:
/lib/modules/2.6.13-15.8-default/kernel/net/ipv4/netfilter/ip_conntrack_ftp.ko
license: GPL
author: Rusty Russell <rusty@xxxxxxxxxxxxxxx>
description: ftp connection tracking helper
vermagic: 2.6.13-15.8-default 586 REGPARM gcc-4.0
supported: yes
depends: ip_conntrack
srcversion: 4461DB3F80F52AA3EF2374F
parm: loose:int
parm: ports:array of int
So you can, for example:
modprobe ip_conntrack_ftp ports=21,33,454