Bug 82713 - ntp rc.d script fails to open firewall for peers
ntp rc.d script fails to open firewall for peers
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: ntp (Show other bugs)
9
All Linux
medium Severity medium
: ---
: ---
Assigned To: Harald Hoyer
Brian Brock
:
: 82714 85090 85894 (view as bug list)
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-01-25 01:15 EST by John Mellor
Modified: 2007-04-18 12:50 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-10-08 07:59:52 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description John Mellor 2003-01-25 01:15:27 EST
Description of problem:
Only NTP servers are punched through the firewall.  Peers should also punch
through, as specified peers are normally outside the trusted network.

Version-Release number of selected component (if applicable):
ntp-4.1.1b-1.rpm

How reproducible:
every time

Steps to Reproduce:
1.Construct an ntp.conf that has peers
2.restart ntp using the rc script
    
Actual results:
note servers punch through firewall but peers do not

Expected results:
explicit peers also punch through the firewall

Additional info:
Comment 1 John Mellor 2003-02-03 19:33:11 EST
Please alter the code in /etc/rc.d/init.d/ntpd script to determine timeservers
to be:
        timeservers=`/bin/sed \
                 -n -e 's/\#.*$//;/127.*/d' \
                 -e
's/^[[:blank:]]*server[[:blank:]][[:blank:]]*\([[:alnum:].]*\)[[:blank:]]*.*/\1/p' \
                 -e
's/^[[:blank:]]*peer[[:blank:]][[:blank:]]*\([[:alnum:].]*\)[[:blank:]]*.*/\1/p' \
                 $ntpconf`
                                                                                
This should resolve all of the problems.
Comment 2 John Mellor 2003-02-22 17:22:28 EST
Still not fixed in Phoebe-3.  Please re-open.  Sites listed as peers are not
being punched through the firewall.
Comment 3 John Mellor 2003-02-22 23:00:57 EST
Suggested code change:

replace the sed script assignment of timeserver (2 places) with:

timeservers=`/usr/bin/awk '$1=="peer"||$1=="server"{print $2}' $ntpconf`

This change also fixes bug 82714 correctly.
Comment 4 Harald Hoyer 2003-03-10 09:49:11 EST
*** Bug 85894 has been marked as a duplicate of this bug. ***
Comment 5 Harald Hoyer 2003-03-10 09:50:04 EST
*** Bug 85090 has been marked as a duplicate of this bug. ***
Comment 6 Harald Hoyer 2003-03-10 09:50:50 EST
*** Bug 82714 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.