Bug 213365 - An error in Handbook IPFW example for NTP
Summary: An error in Handbook IPFW example for NTP
Status: Closed FIXED
Alias: None
Product: Documentation
Classification: Unclassified
Component: Books & Articles (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-doc (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-10 20:31 UTC by Petri
Modified: 2016-10-28 15:33 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petri 2016-10-10 20:31:19 UTC
About half way through https://www.freebsd.org/doc/handbook/firewalls-ipfw.html it says:

# Allow outbound NTP
$cmd 00260 allow tcp from any to any 37 out via $pif setup keep-state

But that doesn’t allow NTP. NTP uses UDP 123. TCP 37 is the obsolete TIME protocol. (Unless I am completely at a loss, of course.)
Comment 1 commit-hook freebsd_committer freebsd_triage 2016-10-28 15:32:07 UTC
A commit references this bug:

Author: wblock
Date: Fri Oct 28 15:31:21 UTC 2016
New revision: 49600
URL: https://svnweb.freebsd.org/changeset/doc/49600

Log:
  NTP is UDP port 123.

  PR:		213365
  Submitted by:	Tim Moore <tmoore@iXsystems.com>
  Reported by:	petri.riihikallio@metis.fi
  Sponsored by:	iXsystems
  Differential Revision:	https://reviews.freebsd.org/D8375

Changes:
  head/en_US.ISO8859-1/books/handbook/firewalls/chapter.xml
Comment 2 Warren Block freebsd_committer freebsd_triage 2016-10-28 15:33:08 UTC
Committed, thanks!