From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2) Gecko/20021203 Description of problem: using the 'prefer' keyword in /etc/ntp.conf like so: server 128.197.27.108 prefer causes errors when the firewall is started: sudo service ntpd restart ntpd: Removing firewall ntpd: Removing firewall opening for prefer port 123iptables v1.2.7a: host/network `prefer' not found Try `iptables -h' or 'iptables --help' for more information. ntpd: Opening firewall for input from prefer port 123iptables v1.2.7a: host/network `prefer' not found Try `iptables -h' or 'iptables --help' for more information. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. edit /etc/ntpd.conf 2. add 'prefer' to any of your ntp servers 3. sudo service ntpd restart Actual Results: ntp shows errors when trying to punch holes through firewall Expected Results: using 'prefer' should not cause the errors. Additional info: here is output from a patch that seems to work for me... @@ -44,7 +44,7 @@ fi timeservers=`/bin/sed \ -n -e 's/\#.*$//;/127.*/d' \ - -e 's/^[[:blank:]]*server[[:blank:]][[:blank:]]*\(.*\)/\1/p' \ + -e 's/^[[:blank:]]*server[[:blank:]][[:blank:]]*\([^[:blank:]]*\).*/\1/p' \ -e 's/^[[:blank:]]*server[[:blank:]]+\([[:alnum:].]+\)[[:blank:]]*.*/\1/p' \ -e 's/^[[:blank:]]*peer[[:blank:]]+\([[:alnum:].]+\)[[:blank:]]*.*/\1/p' \ $ntpconf` @@ -111,7 +111,7 @@ fi timeservers=`/bin/sed \ -n -e 's/\#.*$//;/127.*/d' \ - -e 's/^[[:blank:]]*server[[:blank:]][[:blank:]]*\(.*\)/\1/p' \ + -e 's/^[[:blank:]]*server[[:blank:]][[:blank:]]*\([^[:blank:]]*\).*/\1/p' \ $ntpconf`
*** This bug has been marked as a duplicate of 82713 ***
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.