SCIENTIFIC-LINUX-USERS Archives

July 2011

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Todd And Margo Chester <[log in to unmask]>
Reply To:
Todd And Margo Chester <[log in to unmask]>
Date:
Fri, 15 Jul 2011 23:34:25 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (64 lines)
On 07/15/2011 10:13 PM, Tom H wrote:
> On Sat, Jul 16, 2011 at 12:05 AM, Todd And Margo Chester
> <[log in to unmask]>  wrote:
>> On 07/15/2011 08:14 PM, Katherine Lim wrote:
>> On Sat, Jul 16, 2011 at 1:09 PM, Todd And Margo Chester
>> <[log in to unmask]>  wrote:
>>> On 07/15/2011 07:31 PM, William Scott wrote:
>>>> On 16 July 2011 11:50, Todd And Margo Chester<[log in to unmask]>
>>>>   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.
>> Hmm.  Maybe I am going at this wrong.  In Slack12, they
>> use a /etc/rc.d/rc.modules file and just put the module to
>> load into it.
> > From a colleague working on our RHEL 6 deployment (similar to F14/F15):
>
> root # vi /etc/sysconfig/modules/ip_nat_ftp.modules
> #!/bin/sh
> exec /sbin/modprobe ip_nat_ftp
> root # chmod +x /etc/sysconfig/modules/ip_nat_ftp.modules
>
> Perhaps you should also start using the new name, nf_nat_ftp (although
> its alias, ip_nat_ftp, the previous name, still works).

Awsome.  Thank you!

I took a look over in my CentOS 5.6 server and found
/etc/sysconfig/modules/udev-stw.modules:

#!/bin/sh
MODULES="nvram floppy parport lp snd-powermac"
[ -f /etc/sysconfig/udev-stw ] && . /etc/sysconfig/udev-stw
for i in $MODULES ; do
         modprobe $i >/dev/null 2>&1
done

Which confirms your recommendation.  I will use the new name
as you suggested.

I will be able to get at the SL6 machine on Tuesday.  I am
very confident your recommendation will work.

-T

ATOM RSS1 RSS2