about summary refs log tree commit diff stats
path: root/core/conf/iptables/ipt-firewall.sh
diff options
context:
space:
mode:
authorSilvino <silvino@bk.ru>2019-07-29 18:40:35 +0100
committerSilvino <silvino@bk.ru>2019-07-29 18:41:04 +0100
commite626b5b387df178c6173e5292057bfc958696682 (patch)
tree412ca48a6b08b58c41b62d745ab2ed8d1e52dd10 /core/conf/iptables/ipt-firewall.sh
parent2ec627b85972bfd88724006c09dd742fb5ec3b6d (diff)
parent1e6c3b6fe37b10c0844c10860684f5434c74cf90 (diff)
downloaddoc-e626b5b387df178c6173e5292057bfc958696682.tar.gz
doc release 0.5.7
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
+
 }