Browse Source

All ephemeral ports

Bob Mottram 10 years ago
parent
commit
6d80ad4edf
1 changed files with 5 additions and 5 deletions
  1. 5
    5
      install-freedombone.sh

+ 5
- 5
install-freedombone.sh View File

442
   chmod +x /etc/network/if-up.d/iptables
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
445
+function configure_firewall_ephemeral_ports {
446
+  if grep -Fxq "configure_firewall_ephemeral_ports" $COMPLETION_FILE; then
447
 	  return
447
 	  return
448
   fi
448
   fi
449
-  iptables -I INPUT -i eth0 -p tcp --dport 49152:65534 -j ACCEPT
449
+  iptables -I INPUT -i eth0 -p tcp --dport 32768:61000 -j ACCEPT
450
   save_firewall_settings
450
   save_firewall_settings
451
-  echo 'configure_firewall_for_ftp' >> $COMPLETION_FILE
451
+  echo 'configure_firewall_ephemeral_ports' >> $COMPLETION_FILE
452
 }
452
 }
453
 
453
 
454
 function configure_firewall_for_web {
454
 function configure_firewall_for_web {
953
 random_number_generator
953
 random_number_generator
954
 configure_firewall
954
 configure_firewall
955
 configure_firewall_for_web
955
 configure_firewall_for_web
956
-configure_firewall_for_ftp
956
+configure_firewall_ephemeral_ports
957
 configure_firewall_for_git
957
 configure_firewall_for_git
958
 configure_firewall_for_ssh
958
 configure_firewall_for_ssh
959
 configure_firewall_for_email
959
 configure_firewall_for_email