Gentoo Archives: gentoo-user

From: Roman Zilka <rzilka@××××.cz>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] proper proxy syntax to synchronize time via rdate
Date: Sun, 02 Sep 2007 11:56:22
Message-Id: 20070902134433.10554091.rzilka@gvid.cz
In Reply to: [gentoo-user] proper proxy syntax to synchronize time via rdate by Liviu Andronic
1 Hi Liviu,
2
3 it seems you're only allowed to access web, FTP and rsync services on
4 the Internet through your proxy. Both rsync and NTP use their own ports
5 and protocols, different from HTTP/FTP/rsync. Firstly, you need a proxy
6 server (or some other form of tunnel) that will allow for rdate/NTP
7 traffic between your computer and Internet.
8
9 Secondly, you have to configure rdate/NTP to make use of the proxy, but
10 AFAIK there's nothing like ntp_proxy or rdate_proxy env. variables
11 these programs would honor. Instead, timeserver proxies are more common
12 in the form of a local timeserver which sync's with an external
13 timesource and offers its services to the local network via standard
14 protocols. You would then sync time using this proxy directly, e.g.
15 "rdate -s timeproxy.localaddress.dom". Try asking around if there's such
16 a service available in your local network.
17
18 -Roman
19
20
21 > Hello everyone,
22 >
23 > I'm trying to synchronize the system time with the help of rdate
24 > (openNTPD is on the list in case of failure). I have one problem,
25 > though: I connect to the Internet through a proxy server. I have set
26 > up the necessary environment, but I doubt that rdate listens to it:
27 >
28 > localhost init.d # env | grep -i proxy
29 > http_proxy=proxy.address.dom:port
30 > ftp_proxy=proxy.address.dom:port
31 > rsync_proxy=proxy.address.dom:port
32 > https_proxy=proxy.address.dom:port
33 >
34 > localhost init.d # rdate pool.ntp.org
35 > rdate: couldn't connect to host pool.ntp.org: Connection refused
36 >
37 > Please advise on how to correctly specify the proxy server in the NTP
38 > server address. I am wondering if there is a syntax similar to
39 > proxy.address.dom:port@××××××××.org. Alternatively, how can I make
40 > rdate honour the proxy settings?
41 >
42 > Regards,
43 > Liviu
44 --
45 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] proper proxy syntax to synchronize time via rdate Arturo 'Buanzo' Busleiman <buanzo@××××××××××.ar>
Re: [gentoo-user] proper proxy syntax to synchronize time via rdate Arturo 'Buanzo' Busleiman <buanzo@××××××××××.ar>