autoloading iptables modules

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In the good ol' days of modules.conf, I used to be able to do:

add above ip_conntrack ip_conntrack_ftp ip_conntrack_irc
add above iptable_nat ip_nat_ftp ip_conntrack_ftp ip_nat_irc ip_conntrack_irc

in order to automatically add the ip_conntrack_ftp/irc and
ip_nat_ftp/irc modules.  My question is, whats the best way to do this
using modprobe.conf?  It seems like this would work:

install ip_conntrack /sbin/modprobe ip_conntrack_ftp; \
/sbin/modprobe ip_conntrack_irc; /sbin/modprobe --ignore-install ip_conntrack

install iptable_nat /sbin/modprobe ip_nat_ftp; /sbin/modprobe \
ip_conntrack_ftp; /sbin/modprobe ip_nat_irc; /sbin/modprobe \
ip_conntrack_irc; /sbin/modprobe --ignore-install iptable_nat

but it seems a bit messy, and probably wrong given my limited
understanding of how modprobe.conf syntax works...

Thanks for any help,
Tim

-- 
Morals?  I eat communism and $h!t America, brother.  --Seanbaby


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux