Support local NTP Server.
This commit is contained in:
@ -1685,6 +1685,24 @@ done
|
||||
echo_done
|
||||
|
||||
|
||||
# ---
|
||||
# - NTP local Service"
|
||||
# ---
|
||||
|
||||
echononl "\t\tNTP local Service"
|
||||
if [[ -n $local_ntp_service ]] && $local_ntp_service ; then
|
||||
if [[ -z "$ntp_allowed_net" ]] ; then
|
||||
echo_failed
|
||||
else
|
||||
$ip6t -A OUTPUT -p udp -d $ntp_allowed_net --dport $ntp_port -m conntrack --ctstate NEW -j ACCEPT
|
||||
$ip6t -A INPUT -p udp -s $ntp_allowed_net --dport $ntp_port -m conntrack --ctstate NEW -j ACCEPT
|
||||
echo_done
|
||||
fi
|
||||
else
|
||||
echo_skipped
|
||||
fi
|
||||
|
||||
|
||||
# ---
|
||||
# - Whois out only
|
||||
# ---
|
||||
|
Reference in New Issue
Block a user