From f5122f3e680927ed528ffa62d70a67a01db80f6c Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 22 Sep 2014 09:13:53 +0100 Subject: [PATCH] Firewall DNS --- install-freedombone.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install-freedombone.sh b/install-freedombone.sh index 2eeefc41..1e284f5d 100755 --- a/install-freedombone.sh +++ b/install-freedombone.sh @@ -446,12 +446,12 @@ function save_firewall_settings { } function configure_firewall_for_dns { - if grep -Fxq "configure_firewall_for_ftp" $COMPLETION_FILE; then + if grep -Fxq "configure_firewall_for_dns" $COMPLETION_FILE; then return fi - iptables -A INPUT -i eth0 -p tcp --dport 53 -j ACCEPT + iptables -A INPUT -i eth0 -p udp -m udp --dport 1024:65535 --sport 53 -j ACCEPT save_firewall_settings - echo 'configure_firewall_for_ftp' >> $COMPLETION_FILE + echo 'configure_firewall_for_dns' >> $COMPLETION_FILE } function configure_firewall_for_ftp {