[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ftp masq on non standard ports not working



On Thu, Mar 21, 2002 at 05:26:23PM -0800, Mike Egglestone wrote:
> Is there a new way to fix this with iptables?
> and what if the ftp server is servicing on a port other than
> the standard 21?

You have to give the FTP contrl port to ip_conntrack_ftp and/or ip_nat_ftp:

/sbin/modinfo ip_conntrack_ftp
filename: /lib/modules/2.4.17-xfs/kernel/net/ipv4/netfilter/ip_conntrack_ftp.o
description: <none>
author:      <none>
license:     "GPL"
parm:        ports int array (min = 1, max = 8)
parm:        loose int
3ecki@calista:~> /sbin/modinfo ip_nat_ftp
filename:    /lib/modules/2.4.17-xfs/kernel/net/ipv4/netfilter/ip_nat_ftp.o
description: <none>
author:      <none>
license:     "GPL"
parm:        ports int array (min = 1, max = 8)

Greetings
Bernd
-- 
  (OO)      -- Bernd_Eckenfels@Wendelinusstrasse39.76646Bruchsal.de --
 ( .. )  ecki@{inka.de,linux.de,debian.org} http://home.pages.de/~eckes/
  o--o     *plush*  2048/93600EFD  eckes@irc  +497257930613  BE5-RIPE
(O____O)  When cryptography is outlawed, bayl bhgynjf jvyy unir cevinpl!



Reply to: