Pascal Hambourg wrote:
> Hello,
>
> ToddAndMargo a écrit :
>>
>> I am getting some real heat from a customer over not being able
>> to use their software vendor's active mode ftp utilities. (Passive
>> mode works fine, NAT and all. Vendor WILL NOT BUDGE.) I
>> presume all I need to load is ip_conntrack_ftp" to get this to work.
>>
>> Questions:
>>
>> 1) I am sitting on a CentOS 5.2 machine (customer is 4.6). Locate
>> give me:
>>
>> # locate ip_conntrack_ftp
>> /lib/modules/2.6.18-92.1.13.el5/kernel/net/ipv4/netfilter/ip_conntrack_ftp.ko
>>
>> usr/src/kernels/2.6.18-92.1.13.el5-i686/include/linux/netfilter_ipv4/ip_conntrack_ftp.h
>>
>> Is this the official "ip_conntrack_ftp" module?
>
> It is the FTP conntrack helper module of the installed kernel. I don't
> know what you mean by "official". Note that if the box performs some NAT
> the FTP NAT helper module ip_nat_ftp may also be required for proper
> operation.
>
>> And, should I see the
>> same thing on my customer's 4.6 machine?
>
> This one may have a different kernel version, so the location and name
> may differ slightly. In more recent kernels, the ip_conntrack_* and
> ip_nat_* modules have been renamed into nf_conntrack_* and nf_nat_*.
>
>> 2) how do I load the ip_conntrack_ftp module into Cent OS 4.6? Is this
>> the correct command?
>>
>> modprobe ip_conntrack_ftp
>
> Yes. You can use "insmod /path/to/ip_conntrack_ftp.ko" too, but it is
> less convenient.
>
>> (Do I need to add any path to this command?)
>
> Not when you use modprobe. You need to write the full path and file name
> when you use insmod.
>
>> 3) do I have to load modprobe ip_conntrack_ftp every time I reboot
>> and should I need to stick whatever instruction you give me into
>> my rc.local?
>
> Yes, although there may be a more adequate location to list modules that
> must be loaded at boot time. This is usually distribution-specific, and
> I don't know about CentOS/RedHat.
>
>> 4) is there a sequence where ip_conntrack_ftp should be loaded before
>> or after iptables starts?
>
> No, it does not matter.
Follow up question: is it essentially the same
1) to load the module with modprobe, or
2) to place it in /etc/sysconfig/iptables-config,
IPTABLES_MODULES="... ip_conntrack_ftp"?
Many thanks,
-T
|