From 7844d18b5e46661c31d97bcda6332ed9be4540ac Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 21 Sep 2014 22:06:32 +0100 Subject: [PATCH] FTP ports --- install-freedombone.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/install-freedombone.sh b/install-freedombone.sh index e068618f..c08dac76 100755 --- a/install-freedombone.sh +++ b/install-freedombone.sh @@ -442,6 +442,15 @@ function save_firewall_settings { chmod +x /etc/network/if-up.d/iptables } +function configure_firewall_for_ftp { + if grep -Fxq "configure_firewall_for_ftp" $COMPLETION_FILE; then + return + fi + iptables -I INPUT -i eth0 -p tcp --dport 20:21 -j ACCEPT + save_firewall_settings + echo 'configure_firewall_for_ftp' >> $COMPLETION_FILE +} + function configure_firewall_ephemeral_ports { if grep -Fxq "configure_firewall_ephemeral_ports" $COMPLETION_FILE; then return @@ -953,6 +962,7 @@ enable_zram random_number_generator configure_firewall configure_firewall_for_web +configure_firewall_for_ftp configure_firewall_ephemeral_ports configure_firewall_for_git configure_firewall_for_ssh