By preloading some modules we fix two things. 1. Some sysctl settings like ip_conntrack_max are not set during boot because the module is not loaded at that time. 2. Passive ftp does not work through iptables without these modules.

Signed-off-by: Daan Hoogland <daan@onecht.net>
This commit is contained in:
Joris van Lieshout 2014-05-21 15:22:15 +02:00 committed by Daan Hoogland
parent b666a1f3a5
commit bfccf439cf
2 changed files with 22 additions and 0 deletions

View File

@ -195,6 +195,16 @@ fix_vhdutil() {
chmod a+x /bin/vhd-util
}
# Preload these module otherwise the sysctl settings will not be set, and pasive ftp will not work.
fix_modules() {
cat >> /etc/modules << EOF
nf_conntrack_ipv4
nf_conntrack
nf_conntrack_ftp
nf_nat_ftp
EOF
}
do_fixes() {
fix_nameserver
fix_inittab
@ -203,6 +213,7 @@ do_fixes() {
fix_locale
fix_conntrackd
fix_vhdutil
fix_modules
}
configure_apache2() {

View File

@ -185,6 +185,16 @@ fix_vhdutil() {
chmod a+x /bin/vhd-util
}
# Preload these module otherwise the sysctl settings will not be set, and pasive ftp will not work.
fix_modules() {
cat >> /etc/modules << EOF
nf_conntrack_ipv4
nf_conntrack
nf_conntrack_ftp
nf_nat_ftp
EOF
}
do_fixes() {
fix_nameserver
fix_inittab
@ -193,6 +203,7 @@ do_fixes() {
fix_locale
fix_conntrackd
fix_vhdutil
fix_modules
}
configure_apache2() {