Bob Mottram 10 lat temu
rodzic
commit
d0661538a1
1 zmienionych plików z 10 dodań i 0 usunięć
  1. 10
    0
      install-freedombone.sh

+ 10
- 0
install-freedombone.sh Wyświetl plik

@@ -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_dns {
446
+  if grep -Fxq "configure_firewall_for_ftp" $COMPLETION_FILE; then
447
+	  return
448
+  fi
449
+  iptables -A INPUT -i eth0 -p tcp --dport 53 -j ACCEPT
450
+  save_firewall_settings
451
+  echo 'configure_firewall_for_ftp' >> $COMPLETION_FILE
452
+}
453
+
445 454
 function configure_firewall_for_ftp {
446 455
   if grep -Fxq "configure_firewall_for_ftp" $COMPLETION_FILE; then
447 456
 	  return
@@ -961,6 +970,7 @@ update_the_kernel
961 970
 enable_zram
962 971
 random_number_generator
963 972
 configure_firewall
973
+configure_firewall_for_dns
964 974
 configure_firewall_for_web
965 975
 configure_firewall_for_ftp
966 976
 configure_firewall_ephemeral_ports