瀏覽代碼

Merge branch 'master' of https://github.com/bashrc/freedombone

Bob Mottram 9 年之前
父節點
當前提交
282594eb09
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5
    1
      src/freedombone

+ 5
- 1
src/freedombone 查看文件

@@ -4091,6 +4091,10 @@ function time_synchronisation {
4091 4091
 }
4092 4092
 
4093 4093
 function configure_firewall {
4094
+	if grep -q "RELATED" /etc/firewall.conf; then
4095
+		# recreate the firewall to remove RELATED
4096
+		sed -i "/firewall/d" $COMPLETION_FILE
4097
+	fi
4094 4098
 	if grep -Fxq "configure_firewall" $COMPLETION_FILE; then
4095 4099
 		return
4096 4100
 	fi
@@ -4109,7 +4113,7 @@ function configure_firewall {
4109 4113
 	iptables -P INPUT DROP
4110 4114
 	ip6tables -P INPUT DROP
4111 4115
 	iptables -A INPUT -i lo -j ACCEPT
4112
-	iptables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
4116
+	iptables -A INPUT -m conntrack --ctstate ESTABLISHED -j ACCEPT
4113 4117
 
4114 4118
 	# Make sure incoming tcp connections are SYN packets
4115 4119
 	iptables -A INPUT -p tcp ! --syn -m state --state NEW -j DROP