From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-user+bounces-68892-garchives=archives.gentoo.org@gentoo.org>)
	id 1IRo3x-00086V-Jh
	for garchives@archives.gentoo.org; Sun, 02 Sep 2007 11:56:22 +0000
Received: from robin.gentoo.org (localhost [127.0.0.1])
	by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l82BmqZO031791;
	Sun, 2 Sep 2007 11:48:52 GMT
Received: from minas.ics.muni.cz (minas.ics.muni.cz [147.251.4.40])
	by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l82BieYG026827
	for <gentoo-user@lists.gentoo.org>; Sun, 2 Sep 2007 11:44:40 GMT
Received: from anxur.fi.muni.cz (anxur.fi.muni.cz [147.251.48.3])
	by minas.ics.muni.cz (8.13.8/8.13.8/SuSE Linux 0.8) with ESMTP id l82Bid2L002458
	for <gentoo-user@lists.gentoo.org>; Sun, 2 Sep 2007 13:44:40 +0200
Received: from palantir.fi.muni.cz (195.47.34.28.adsl.nextra.cz [195.47.34.28])
	by anxur.fi.muni.cz (Postfix) with ESMTP id 1B0A522AEFE
	for <gentoo-user@lists.gentoo.org>; Sun,  2 Sep 2007 13:44:39 +0200 (CEST)
Date: Sun, 2 Sep 2007 13:44:33 +0200
From: Roman Zilka <rzilka@gvid.cz>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] proper proxy syntax to synchronize time via rdate
Message-Id: <20070902134433.10554091.rzilka@gvid.cz>
In-Reply-To: <68b1e2610709010722l46315975sf2ded6f9c041fb9f@mail.gmail.com>
References: <68b1e2610709010722l46315975sf2ded6f9c041fb9f@mail.gmail.com>
Organization: ITV
X-Mailer: Sylpheed 2.4.2 (GTK+ 2.10.14; i686-pc-linux-gnu)
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Muni-Spam-TestIP: 147.251.48.3
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (minas.ics.muni.cz [147.251.4.35]); Sun, 02 Sep 2007 13:44:40 +0200 (CEST)
X-Archives-Salt: 7711feef-0731-4915-b878-4875f37bfcea
X-Archives-Hash: 4d929b102fae064bf5e9d88011fd333f

Hi Liviu,

it seems you're only allowed to access web, FTP and rsync services on
the Internet through your proxy. Both rsync and NTP use their own ports
and protocols, different from HTTP/FTP/rsync. Firstly, you need a proxy
server (or some other form of tunnel) that will allow for rdate/NTP
traffic between your computer and Internet.

Secondly, you have to configure rdate/NTP to make use of the proxy, but
AFAIK there's nothing like ntp_proxy or rdate_proxy env. variables
these programs would honor. Instead, timeserver proxies are more common
in the form of a local timeserver which sync's with an external
timesource and offers its services to the local network via standard
protocols. You would then sync time using this proxy directly, e.g.
"rdate -s timeproxy.localaddress.dom". Try asking around if there's such
a service available in your local network.

-Roman


> Hello everyone,
> 
> I'm trying to synchronize the system time with the help of rdate
> (openNTPD is on the list in case of failure). I have one problem,
> though: I connect to the Internet through a proxy server. I have set
> up the necessary environment, but I doubt that rdate listens to it:
> 
> localhost init.d # env | grep -i proxy
> http_proxy=proxy.address.dom:port
> ftp_proxy=proxy.address.dom:port
> rsync_proxy=proxy.address.dom:port
> https_proxy=proxy.address.dom:port
> 
> localhost init.d # rdate pool.ntp.org
> rdate: couldn't connect to host pool.ntp.org: Connection refused
> 
> Please advise on how to correctly specify the proxy server in the NTP
> server address. I am wondering if there is a syntax similar to
> proxy.address.dom:port@pool.ntp.org. Alternatively, how can I make
> rdate honour the proxy settings?
> 
> Regards,
> Liviu
-- 
gentoo-user@gentoo.org mailing list