[Midnightbsd-cvs] src [12004] trunk/etc/rc.firewall: also support ntp from mports automatically

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Tue Aug 14 10:40:10 EDT 2018


Revision: 12004
          http://svnweb.midnightbsd.org/src/?rev=12004
Author:   laffer1
Date:     2018-08-14 10:40:10 -0400 (Tue, 14 Aug 2018)
Log Message:
-----------
also support ntp from mports automatically

Modified Paths:
--------------
    trunk/etc/rc.firewall

Modified: trunk/etc/rc.firewall
===================================================================
--- trunk/etc/rc.firewall	2018-08-14 14:37:49 UTC (rev 12003)
+++ trunk/etc/rc.firewall	2018-08-14 14:40:10 UTC (rev 12004)
@@ -224,6 +224,12 @@
         	${fwcmd} add pass udp from me to any 123 keep-state
 		;;
 	esac
+	case ${ntp_enable} in
+	[Yy][[Ee][Ss])
+		# Allow NTP queries out in the world
+        	${fwcmd} add pass udp from me to any 123 keep-state
+		;;
+	esac
 	${fwcmd} add 65000 deny tcp from any to any
 	${fwcmd} add 65100 deny icmp from any to me in icmptypes 8
 	${fwcmd} add 65200 allow all from any to any



More information about the Midnightbsd-cvs mailing list