Where should I load iptables modules, for example ip_conntrack and ip_conntrack_ftp.
Places I have found that might be candidates, but are they?
- The IPTABLES_MODULES variable in /etc/init.d/iptables
- In /etc/modprobe.conf
- In /etc/modprobe.d/xxxx.conf
For iptables on CentOS there is an additional location which is where I have those particular modules configured to load and that's the
/etc/sysconfig/iptables-config
file. The start of the file looks like thisWhen I run
service iptables restart
I get this lineIf I play with the contents of the
above it changes the output of the
Loading additional modules
line when I restart the service.None of them.
/etc/rc.d/rc.sysinit
looking for two locations to load modules:So, you should put the loading command into
/etc/sysconfig/modules/*.modules
or/etc/rc.modules
: