From 23bb6839024fd112c4a394c6f72e7707a110226c Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Wed, 20 Apr 2016 10:19:46 +0200 Subject: [PATCH] firewall: fix nat module load for application layer gateways Signed-off-by: Arne Fitzenreiter --- config/rootfiles/core/101/filelists/files | 1 + src/initscripts/init.d/firewall | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/config/rootfiles/core/101/filelists/files b/config/rootfiles/core/101/filelists/files index 0f75ac841d..32b333e9c3 100644 --- a/config/rootfiles/core/101/filelists/files +++ b/config/rootfiles/core/101/filelists/files @@ -1,5 +1,6 @@ etc/system-release etc/issue +etc/rc.d/init.d/firewall srv/web/ipfire/cgi-bin/chpasswd.cgi srv/web/ipfire/cgi-bin/ipinfo.cgi srv/web/ipfire/cgi-bin/proxy.cgi diff --git a/src/initscripts/init.d/firewall b/src/initscripts/init.d/firewall index cb52670d6a..be69fbe6ad 100644 --- a/src/initscripts/init.d/firewall +++ b/src/initscripts/init.d/firewall @@ -98,6 +98,7 @@ iptables_init() { # SIP if [ "${CONNTRACK_SIP}" = "on" ]; then + modprobe nf_nat_sip iptables -A CONNTRACK -m conntrack --ctstate RELATED \ -m helper --helper sip -j ACCEPT for proto in udp tcp; do @@ -107,6 +108,7 @@ iptables_init() { # H.323 if [ "${CONNTRACK_H323}" = "on" ]; then + modprobe nf_nat_h323 iptables -A CONNTRACK -m conntrack --ctstate RELATED \ -m helper --helper h323 -j ACCEPT @@ -119,6 +121,7 @@ iptables_init() { # FTP if [ "${CONNTRACK_FTP}" = "on" ]; then + modprobe nf_nat_ftp iptables -A CONNTRACK -m conntrack --ctstate RELATED \ -m helper --helper ftp -p tcp --dport 1024: -j ACCEPT iptables -t raw -A CONNTRACK -p tcp --dport 21 -j CT --helper ftp @@ -126,6 +129,7 @@ iptables_init() { # PPTP if [ "${CONNTRACK_PPTP}" = "on" ]; then + modprobe nf_nat_pptp iptables -A CONNTRACK -m conntrack --ctstate RELATED \ -m helper --helper pptp -j ACCEPT iptables -t raw -A CONNTRACK -p udp --dport 1723 -j CT --helper pptp @@ -133,6 +137,7 @@ iptables_init() { # TFTP if [ "${CONNTRACK_TFTP}" = "on" ]; then + modprobe nf_nat_tftp iptables -A CONNTRACK -m conntrack --ctstate RELATED \ -m helper --helper tftp -j ACCEPT iptables -t raw -A CONNTRACK -p udp --dport 69 -j CT --helper tftp @@ -140,6 +145,7 @@ iptables_init() { # IRC if [ "${CONNTRACK_IRC}" = "on" ]; then + modprobe nf_nat_irc iptables -A CONNTRACK -m conntrack --ctstate RELATED \ -m helper --helper irc -j ACCEPT iptables -t raw -A CONNTRACK -p tcp --dport 6667 -j CT --helper irc @@ -147,6 +153,7 @@ iptables_init() { # Amanda if [ "${CONNTRACK_AMANDA}" = "on" ]; then + modprobe nf_nat_amanda iptables -A CONNTRACK -m conntrack --ctstate RELATED \ -m helper --helper amanda -j ACCEPT iptables -t raw -A CONNTRACK -p tcp -j CT --helper amanda -- 2.39.5