Browse Source

More ephemeral ports

Bob Mottram 10 years ago
parent
commit
bdfa7c6909
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      install-freedombone.sh

+ 2
- 2
install-freedombone.sh View File

455
   if grep -Fxq "configure_firewall_for_web" $COMPLETION_FILE; then
455
   if grep -Fxq "configure_firewall_for_web" $COMPLETION_FILE; then
456
 	  return
456
 	  return
457
   fi
457
   fi
458
-  iptables -A INPUT -i eth0 -p tcp --dport 80 -j ACCEPT
459
-  iptables -A INPUT -i eth0 -p tcp --dport 443 -j ACCEPT
458
+  iptables -A INPUT -i eth0 -p tcp --dport 80 --sport 32768:61000 -j ACCEPT
459
+  iptables -A INPUT -i eth0 -p tcp --dport 443 --sport 32768:61000 -j ACCEPT
460
   save_firewall_settings
460
   save_firewall_settings
461
   echo 'configure_firewall_for_web' >> $COMPLETION_FILE
461
   echo 'configure_firewall_for_web' >> $COMPLETION_FILE
462
 }
462
 }