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:
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.
Still not fixed in Phoebe-3. Please re-open. Sites listed as peers are not being punched through the firewall.
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.
*** Bug 85894 has been marked as a duplicate of this bug. ***
*** Bug 85090 has been marked as a duplicate of this bug. ***
*** Bug 82714 has been marked as a duplicate of this bug. ***