Operating Systems > Linux and UNIX

modules

<< < (3/4) > >>

Master of Reality:
[root@server root]# lsmod
Module                  Size  Used by    Not tainted
ipt_LOG                 4576   0  (autoclean)
ipt_limit               1824   0  (autoclean)
iptable_filter          2624   0  (autoclean)
ip_tables              13536   3  [ipt_LOG ipt_limit iptable_filter]
nfsd                   74560   0  (autoclean)
lockd                  55584   0  (autoclean) [nfsd]
sunrpc                 73812   0  (autoclean) [nfsd lockd]
ufs                    54464   0  (autoclean)
nls_iso8859-1           3456   0  (autoclean)
nls_cp437               5088   0  (autoclean)
vfat                   11452   0  (autoclean)
fat                    36440   0  (autoclean) [vfat]
autofs                 11940   0  (autoclean) (unused)
pcnet32                16096   1
8139too                16768   1
mii                     2280   0  [pcnet32 8139too]
ide-cd                 29856   0  (autoclean)
cdrom                  33184   0  (autoclean) [ide-cd]
usb-uhci               23492   0  (unused)
usbcore                71168   1  [usb-uhci]
ext3                   64448   1
jbd                    47608   1  [ext3]

voidmain:
You need to unload the modules shown in the brackets [] before you can unload the main modules.

I would suggest this:

# /etc/rc.d/init.d/iptables stop
# rmmod -a
# rmmod ipt_LOG
# rmmod ipt_limit
# rmmod iptable_filter
# rmmod ip_tables
# modprobe ipchains

It "should" work.

Master of Reality:
what (if anything) do i need to change in order to start ipchains at startup and not iptables?

[ September 09, 2002: Message edited by: Master of Reality / Bob ]

voidmain:
If you want to use your own custom script and not do it the RedHat way then I would not use either the "ipchains" or "iptables" service scripts.  However, now might be a good time to convert to the RedHat way.  

The new RedHat way is to put your ipchains rules in "/etc/sysconfig/ipchains" and of course you would want to "chkconfig ipchains on" and if you don't want to reboot "/etc/rc.d/init.d/ipchains start" to load the ipchains modules and load the rules from "/etc/sysconfig/ipchains".  

I would think there should be a document on RedHat's web site describing this file and an example.

Master of Reality:
would that be instead of creating a script and putting it in /etc/rc.d/init.d and then adding it to rc.local?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version