Module loading support and option
parent
757b19e839
commit
77c3324dca
|
@ -112,6 +112,15 @@ if [ -x $PRERUN ]; then
|
||||||
$PRERUN
|
$PRERUN
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$MODULES_LOAD" ]; then
|
||||||
|
display_c YELLOW "Loading modules: " N
|
||||||
|
for i in $MODULES_LOAD; do
|
||||||
|
display_c BLUE "$i " N
|
||||||
|
${MODPROBE} $i
|
||||||
|
done
|
||||||
|
echo -ne "\n"
|
||||||
|
fi
|
||||||
|
|
||||||
$IPTABLES -A INPUT -i lo -j ACCEPT
|
$IPTABLES -A INPUT -i lo -j ACCEPT
|
||||||
$IPTABLES -A OUTPUT -o lo -j ACCEPT
|
$IPTABLES -A OUTPUT -o lo -j ACCEPT
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
# I'm trying to make this config as simple as possible. Comment out
|
||||||
|
# options you don't want to use, uncomment them to use them.
|
||||||
|
# Don't forget to rename this file to 'options'!
|
||||||
|
|
||||||
# Config file version. Don't change this. Will be used some day to
|
# Config file version. Don't change this. Will be used some day to
|
||||||
# figure out if we need to alert the user that they need to redo their
|
# figure out if we need to alert the user that they need to redo their
|
||||||
# config file.
|
# config file.
|
||||||
|
@ -11,13 +15,11 @@ IP6TABLES=/bin/true
|
||||||
#IPTABLES=/sbin/iptables
|
#IPTABLES=/sbin/iptables
|
||||||
#IP6TABLES=/sbin/ip6tables
|
#IP6TABLES=/sbin/ip6tables
|
||||||
|
|
||||||
#This is important for loading kernel modules
|
# This is important for loading kernel modules
|
||||||
MODPROBE=/sbin/modprobe
|
MODPROBE=/sbin/modprobe
|
||||||
|
|
||||||
# Don't forget to rename this file to 'options'!
|
# Extra modules to load such as ftp connection tracking
|
||||||
|
#MODULES_LOAD="nf_conntrack_ftp nf_conntrack_h323 nf_conntrack_irc nf_conntrack_pptp nf_conntrack_proto_gre nf_conntrack_proto_sctp nf_conntrack_proto_udplite nf_conntrack_proto_sip nf_conntrack_proto_tftp nf_conntrack_proto_sane"
|
||||||
# I'm trying to make this config as simple as possible. Comment out
|
|
||||||
# options you don't want to use, uncomment them to use them.
|
|
||||||
|
|
||||||
# Do we want NAT/Conntrack/Forward features?
|
# Do we want NAT/Conntrack/Forward features?
|
||||||
#NAT=1
|
#NAT=1
|
||||||
|
@ -41,7 +43,6 @@ MODPROBE=/sbin/modprobe
|
||||||
# Port forwardings, requires NAT
|
# Port forwardings, requires NAT
|
||||||
#PORTFW=$BASEDIR/port-forwards
|
#PORTFW=$BASEDIR/port-forwards
|
||||||
|
|
||||||
|
|
||||||
# Multiport support?
|
# Multiport support?
|
||||||
# yes/no/auto (auto will try to detect if we support multiport or not,
|
# yes/no/auto (auto will try to detect if we support multiport or not,
|
||||||
# may not always work but is recommended unless you have a reason otherwise)
|
# may not always work but is recommended unless you have a reason otherwise)
|
||||||
|
|
Loading…
Reference in New Issue