|
@@ -442,6 +442,15 @@ function save_firewall_settings {
|
442
|
442
|
chmod +x /etc/network/if-up.d/iptables
|
443
|
443
|
}
|
444
|
444
|
|
|
445
|
+function configure_firewall_for_ftp {
|
|
446
|
+ if grep -Fxq "configure_firewall_for_ftp" $COMPLETION_FILE; then
|
|
447
|
+ return
|
|
448
|
+ fi
|
|
449
|
+ iptables -I INPUT -i eth0 -p tcp --dport 49152:65534 -j ACCEPT
|
|
450
|
+ save_firewall_settings
|
|
451
|
+ echo 'configure_firewall_for_ftp' >> $COMPLETION_FILE
|
|
452
|
+}
|
|
453
|
+
|
445
|
454
|
function configure_firewall_for_web {
|
446
|
455
|
if grep -Fxq "configure_firewall_for_web" $COMPLETION_FILE; then
|
447
|
456
|
return
|
|
@@ -944,6 +953,7 @@ enable_zram
|
944
|
953
|
random_number_generator
|
945
|
954
|
configure_firewall
|
946
|
955
|
configure_firewall_for_web
|
|
956
|
+configure_firewall_for_ftp
|
947
|
957
|
configure_firewall_for_git
|
948
|
958
|
configure_firewall_for_ssh
|
949
|
959
|
configure_firewall_for_email
|