On 07/15/2011 08:14 PM, Katherine Lim wrote:


On Sat, Jul 16, 2011 at 1:09 PM, Todd And Margo Chester <[email protected]> wrote:
On 07/15/2011 07:31 PM, William Scott wrote:
On 16 July 2011 11:50, Todd And Margo Chester<[email protected]>  wrote:
Hi All,

Not having a good time researching this in Google, unless
I want to do it in Ubuntu.

I am trying to make the following command permanent:
      modprobe   ip_nat_ftp

Have a look in /etc/sysconfig/iptables-config

I should have said I am running SL6 x64.

It is there.  But, running /etc/rc.d/init.d/iptables throws an
error on ip_nat_ftp if I do not previously load ip_nat_ftp
with modprobe.

What I am after is to load ip_nat_ftp at boot time with
modprobe.d.

A tape and gum approach would be to load ip_nat_ftp
in /etc/rc.d/init.d/iptables before it did anything with
/etc/sysconfig/iptables-config, but I really would like
to learn the right way to do it in modprobe.d.

-T


Did you get any errors after editing the IPTABLES_MODULES line in /etc/sysconfig/iptables-config to:
IPTABLES_MODULES="ip_nat_ftp"


Actually, I am having trouble communicating that the above line is
what causes the error I am trying to fix.  Comment out the above
and /etc/rc.d/init.d/iptables is quiet.  Uncomment it and ..init.d/iptables
bitches about not being able to find ip_nat_ftp.  Run "modprobe
ip_nat_ftp" and ..init.d/iptables is quiet again.

What I need it the proper syntax for my /etc/modprobe.d/customstuff.conf.
I am trying to clean up this error:

WARNING: /etc/modprobe.d/customstuff.conf line 1: ignoring bad line starting with 'ip_nat_ftp'

I need the proper syntax to put ip_nat_ftp into my /etc/modprobe.d/customstuff.conf.

Many thanks,
-T




Reply via email to