Browse Source

Firewall DNS

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

+ 3
- 3
install-freedombone.sh View File

@@ -446,12 +446,12 @@ function save_firewall_settings {
446 446
 }
447 447
 
448 448
 function configure_firewall_for_dns {
449
-  if grep -Fxq "configure_firewall_for_ftp" $COMPLETION_FILE; then
449
+  if grep -Fxq "configure_firewall_for_dns" $COMPLETION_FILE; then
450 450
 	  return
451 451
   fi
452
-  iptables -A INPUT -i eth0 -p tcp --dport 53 -j ACCEPT
452
+  iptables -A INPUT -i eth0 -p udp -m udp --dport 1024:65535 --sport 53 -j ACCEPT
453 453
   save_firewall_settings
454
-  echo 'configure_firewall_for_ftp' >> $COMPLETION_FILE
454
+  echo 'configure_firewall_for_dns' >> $COMPLETION_FILE
455 455
 }
456 456
 
457 457
 function configure_firewall_for_ftp {