about summary refs log tree commit diff stats
path: root/core/conf/iptables/ipt-firewall.sh
diff options
context:
space:
mode:
Diffstat (limited to 'core/conf/iptables/ipt-firewall.sh')
-rw-r--r--core/conf/iptables/ipt-firewall.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/conf/iptables/ipt-firewall.sh b/core/conf/iptables/ipt-firewall.sh
index 12c3834..086b864 100644
--- a/core/conf/iptables/ipt-firewall.sh
+++ b/core/conf/iptables/ipt-firewall.sh
@@ -18,6 +18,7 @@ ipt_clear () {
     iptables -N srv_dhcp
     iptables -N srv_rip
     iptables -N srv_icmp
+    iptables -N srv_ntp
     iptables -N srv_dns_in
     iptables -N srv_dns_out
     iptables -N srv_http_in
@@ -251,6 +252,11 @@ ipt_tables () {
     ####### ICMP Server
     $IPT -A srv_icmp -p icmp -j ACCEPT
     $IPT -A srv_icmp -j RETURN
+
+    ####### NTP Client and Server
+    $IPT -A srv_ntp -p udp --sport 123 --dport 123 -j ACCEPT
+    $IPT -A srv_ntp -j RETURN
+
 }