Re: [Ddclient-support] Proxy credentials
Brought to you by:
supersandro2000,
wimpunk
From: Ingo S. <isc...@as...> - 2010-06-14 20:35:18
|
Hi William, William Oquendo schrieb am Thu, Jun 10, 2010 at 06:52:27PM -0500: > Dear all, I have been searching in google and in the forums with no > success about the following: Yes, ddclient is not famous for its documentation. As a general rule, your best bet for understanding what the program does is reading the source code, even though that's rather entangled and not easy to understand due to all those global variables. > I have a computer behind a University proxy, and I need to know the > internal ip all the time. I need to specify the CREDENTIALS for > a proxy in ddclient, since I always get error 407 proxy authentication > error. Judging from the function geturl(), my impression is that ddclient plainly doesn't support proxies that require authentication. In the function geturl(), i see the DynDNS credentials being passed on to the DynDNS server, but i don't see any variables that could hold proxy credentials. > I have already configured the proxy in both the command line and > the ddclient.conf file, but I always got the error 407, proxy > authentication required. In a desperate try, I wrote the full > line for the proxy: > userproxy:pas...@pr...:8080 Oh, you mean into the "proxy" configuration variable? I don't think that will work, here is the parser for that variable, you find it in geturl(): $proxy =~ s%^https?://%%i; $peer = $proxy || $server; $peer =~ s%/.*%%; $port = $peer; $port =~ s%^.*:%%; $port = $default_port unless $port =~ /^\d+$/; $peer =~ s%:.*$%%; So, in a nutshell, everything behind the last colon is taken as the port, everything before the first colon as the proxy host, and everything in between is discarded. Thus, ... > and ddclient quits an error message related to "Error connecting > to proxy userproxy:8080" !! ... small wonder, from the point of view of ddclient, proxy = userproxy:pas...@pr...:8080 is just the same as proxy = userproxy:8080 > Even the http_proxy var is present. $ grep -i http_proxy ddclient $ That won't work, the ddclient program ignores that environment variable. > I really appreciate your help. I just simply want to know how to > configure the proxy credentials in ddclient. You are out of luck, ddclient doesn't seem to have that feature, and i don't feel like coding it right now, i'm too busy elsewhere. But i would estimate that an experienced Perl programmer might add the feature in about one day of work, perhaps even quicker if s/he is familiar with the ddclient code. Sorry that i can't really help you, Ingo -- Ingo Schwarze <isc...@as...> | Software Engineer Astaro GmbH & Co. KG | www.astaro.com | 76227 Karlsruhe | Germany |