Re: can't transfer files via ftp
> Dear all,
>
> I use debian 3.1(sarge) as a router. I wrote a firewall script
> after I run this script all the pcs in my LAN can't transfer files
> from ftp server but I do allow ftp ports
>
> $IPTABLES -A FORWARD -i $LAN_IFACE -o $INET_IFACE -s
> $LAN_IP_RANGE -d 0/0 -p tcp --dport 20 -j ACCEPT
> $IPTABLES -A FORWARD -i $LAN_IFACE -o $INET_IFACE -s
> $LAN_IP_RANGE -d 0/0 -p tcp --dport 21 -j ACCEPT
>
> I can connect to ftp server but I can't transfer. Do anyone give
> me an advise?
> Thanks.
I had this problem on a Slackware box, and it turned out I needed to load the ip_conntrack_ftp module. That solved the problem. Not sure if this is the same in Debian, but I hope this helps.
- Dave P.
Reply to: