A forum for questions and answers about network programming on Linux and all other Unix-like systems

You are not logged in.

#1 2015-04-23 06:26 AM

suneet saini
Registered: 2015-04-23
Posts: 1

Proxy settings for NTP server

As debug check list on - http://doc.ntp.org/4.1.2/debug.htm - my host machine is configured to accept UDP packets on the NTP port 123. As I am working PROXY server and trinying to get connected through NTP, but everytime it was sysnced with only local machine itself in loop.
As to explore communication over HTTP or HTTPS protocol I have to go via metod - <username>:<passwd>@<serverip>:<port>. As after lots of change there was no fruitful result, so currently I am seeking the solution for fresh NTP configuration.
/etc/ntp.conf -
# /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help

driftfile /var/lib/ntp/ntp.drift

# Enable this if you want statistics to be logged.
#statsdir /var/log/ntpstats/

statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable

# Specify one or more NTP servers.

# Use servers from the NTP Pool Project. Approved by Ubuntu Technical Board
# on 2011-02-08 (LP: #104525). See http://www.pool.ntp.org/join.html for
# more information.
server 0.ubuntu.pool.ntp.org
server 1.ubuntu.pool.ntp.org
server 2.ubuntu.pool.ntp.org
server 3.ubuntu.pool.ntp.org

# Use Ubuntu's ntp server as a fallback.
server ntp.ubuntu.com

# Access control configuration; see /usr/share/doc/ntp-doc/html/accopt.html for
# details.  The web page <http://support.ntp.org/bin/view/Support … strictions>
# might also be helpful.
# Note that "restrict" applies to both servers and clients, so a configuration
# that might be intended to block requests from certain clients could also end
# up blocking replies from your own upstream servers.

# By default, exchange time with everybody, but don't allow configuration.
restrict -4 default kod notrap nomodify nopeer noquery
restrict -6 default kod notrap nomodify nopeer noquery

# Local users may interrogate the ntp server more closely.
restrict ::1

# Clients from this (example!) subnet have unlimited access, but only if
# cryptographically authenticated.
#restrict mask notrust

# If you want to provide time to your local subnet, change the next line.
# (Again, the address is an example only.)

# If you want to listen to time broadcasts on your local subnet, de-comment the
# next lines.  Please do this only if you trust everybody on the network!
#disable auth


#2 2015-04-23 12:01 PM

From: Boston, MA
Registered: 2002-06-12
Posts: 3,847

Re: Proxy settings for NTP server

I'm really not clear on what exactly you're asking  here...  It sounds like you're saying you're stuck behind some kind of proxy server and only traffic through that is allowed out onto the Internet, and so your NTP packets are getting dropped by a firewall somewhere?  If it's just an HTTP type proxy server, I don't think there's going to be a way to tunnel NTP through it, since that's UDP-based...  You're going to need to contact whoever is in control of your network and get them to let NTP packets pass through the firewall...  Or maybe they have an internal NTP server you can sync to instead?


Board footer

Powered by FluxBB