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
 }
446
 }
447
 
447
 
448
 function configure_firewall_for_dns {
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
 	  return
450
 	  return
451
   fi
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
   save_firewall_settings
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
 function configure_firewall_for_ftp {
457
 function configure_firewall_for_ftp {