From: Michael Tremer Date: Tue, 12 May 2015 11:25:04 +0000 (+0200) Subject: firewall: Add amanda to the conntrack helpers X-Git-Tag: v2.19-core100~70^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a93bf696170d32a45ccc76b29f68ca9b4df9ddb3;p=ipfire-2.x.git firewall: Add amanda to the conntrack helpers --- diff --git a/lfs/configroot b/lfs/configroot index 26583a4eac..ae9ceec4b4 100644 --- a/lfs/configroot +++ b/lfs/configroot @@ -136,7 +136,7 @@ $(TARGET) : echo "POLICY1=MODE2" >> $(CONFIG_ROOT)/firewall/settings # Add conntrack helper default settings - for proto in FTP PPTP SIP TFTP; do \ + for proto in AMANDA FTP PPTP SIP TFTP; do \ echo "CONNTRACK_$${proto}=on" >> $(CONFIG_ROOT)/optionsfw/settings; \ done diff --git a/src/initscripts/init.d/firewall b/src/initscripts/init.d/firewall index 4e6fd94f17..0c74e02450 100644 --- a/src/initscripts/init.d/firewall +++ b/src/initscripts/init.d/firewall @@ -126,6 +126,13 @@ iptables_init() { iptables -t raw -A CONNTRACK -p udp --dport 69 -j CT --helper tftp fi + # Amanda + if [ "${CONNTRACK_AMANDA}" = "on" ]; then + iptables -A CONNTRACK -m conntrack --ctstate RELATED \ + -m helper --helper amanda -j ACCEPT + iptables -t raw -A CONNTRACK -j CT --helper amanda + fi + # Fix for braindead ISP's iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu