瀏覽代碼

Accept loopback

Bob Mottram 10 年之前
父節點
當前提交
cc936d05f7
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. 2
    0
      install-freedombone.sh

+ 2
- 0
install-freedombone.sh 查看文件

@@ -430,6 +430,8 @@ function configure_firewall {
430 430
   ip6tables -X
431 431
   iptables -P INPUT DROP
432 432
   ip6tables -P INPUT DROP
433
+  iptables -A INPUT -i eth0 -i lo -j ACCEPT
434
+  iptables -A INPUT -i eth0 -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
433 435
   echo 'configure_firewall' >> $COMPLETION_FILE
434 436
 }
435 437