Re: SOLVED - Getting a Dinamic Remote IP

2005-05-20 Thread Romulo Sousa
You won't believe. I don't remember if I deleted the line w/ customer
(I'm typing from my work computer) but I see that in a example of a
ddclient.conf I found at the internet.
Anyway...
I changed my password. It was composed by spaces like the following format:
password: abcd efgh igkl

and I've changed for a simple new one
password: wxyz

and worked!
I'm not sure if it's a bug or not. The fact is w/ the first format
dyndns couldn't authenticate my username. But using the second format,
the debug message changed for "SUCESS", nslook worked nicely and a
friend could ping my box from outside (i mean, from the public
internet) and return my ip address. :)

Thanks community!!! :D

Romulo Sousa



On 5/20/05, Almut Behrens <[EMAIL PROTECTED]> wrote:
> On Fri, May 20, 2005 at 08:49:50AM -0300, Romulo Sousa wrote:
> > Hi there,
> >
> > I installed ddclient using apt-get but there is a error message when I
> > run #ddclient -debug:
> >
> > myhostname:/# ddclient -debug
> >
> > DEBUG:get_ip: using if, eth0 reports 201.6.77.173
> > WARNING:  null password specified for host myhostname.homelinux.net.
> > yoda:/home/rssousa# ddclient -debug
> > DEBUG:get_ip: using if, eth0 reports 201.6.77.173
> > WARNING:  null password specified for host myhostname.homelinux.net.
> > DEBUG:
> > DEBUG: nic_dyndns2_update ---
> > FAILED:   updating d4: authorization failed (HTTP/1.1 401 Authorization 
> > Required
> > FAILED:Date: Fri, 20 May 2005 11:39:49 GMT
> > FAILED:Server: Apache/1.3.31 (Unix) mod_perl/1.29
> > FAILED:WWW-Authenticate: Basic realm="DynDNS Members NIC"
> > FAILED:Content-Type: text/html; charset=iso-8859-1
> > FAILED:Connection: close
> > FAILED:
> > FAILED:badauth)
> >
> > I tried to edit /etc/ddclient.conf at hand but still the errors
> > persist. I tried to run dpkg-reconfigure for default configurations
> > take over my previously and it didn't work.
> > I checked all the information a lot of times including password
> > throughout the file /etc/ddclient:
> >
> > myhostname:/# cat /etc/ddclient.conf
> > # Configuration file for ddclient generated by debconf
> > #
> > # /etc/ddclient.conf
> >
> > pid=/var/run/ddclient.pid
> > protocol=dyndns2
> > use=if, if=eth0
> > custom=yes
> > server=members.dyndns.org
> > login=mylogin
> > password=**
> > myhostname.homelinux.net
> 
> Not sure why your authorization isn't working...  but do you really
> want "custom=yes"?  I think that's if you have a domain other than the
> ones offered by dyndns.org  (in my config, I _don't_ have custom=yes,
> and everything is fine with a *.homelinux.net hostname).
> 
> You could try whether a manual login/update works, pointing your
> browser at (of course, first edit your parameters):
> 
> http://members.dyndns.org/nic/update?system=dyndns&hostname=yourhostname.homelinux.net&myip=1.2.3.4
> 
> That's essentially the URL that ddclient uses (not the regular web
> interface).  The usual HTTP-Basic-Auth popup dialog should appear,
> where you can test the login/password combination you've specified in
> the config file.  Also, the browser should display a single-word error
> message ("nohost", "!yours", "nochg", ...) if anything goes wrong with
> the update...
> 
> Also, you might try to run "ddclient -debug -verbose" to get even more
> verbose debugging messages.
> 
> Almut
> 
> 
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> 
>



Re: Getting a Dinamic Remote IP

2005-05-20 Thread Almut Behrens
On Fri, May 20, 2005 at 08:49:50AM -0300, Romulo Sousa wrote:
> Hi there,
> 
> I installed ddclient using apt-get but there is a error message when I
> run #ddclient -debug:
> 
> myhostname:/# ddclient -debug
> 
> DEBUG:get_ip: using if, eth0 reports 201.6.77.173
> WARNING:  null password specified for host myhostname.homelinux.net.
> yoda:/home/rssousa# ddclient -debug
> DEBUG:get_ip: using if, eth0 reports 201.6.77.173
> WARNING:  null password specified for host myhostname.homelinux.net.
> DEBUG:
> DEBUG: nic_dyndns2_update ---
> FAILED:   updating d4: authorization failed (HTTP/1.1 401 Authorization 
> Required
> FAILED:Date: Fri, 20 May 2005 11:39:49 GMT
> FAILED:Server: Apache/1.3.31 (Unix) mod_perl/1.29
> FAILED:WWW-Authenticate: Basic realm="DynDNS Members NIC"
> FAILED:Content-Type: text/html; charset=iso-8859-1
> FAILED:Connection: close
> FAILED:
> FAILED:badauth)
> 
> I tried to edit /etc/ddclient.conf at hand but still the errors
> persist. I tried to run dpkg-reconfigure for default configurations
> take over my previously and it didn't work.
> I checked all the information a lot of times including password
> throughout the file /etc/ddclient:
> 
> myhostname:/# cat /etc/ddclient.conf
> # Configuration file for ddclient generated by debconf
> #
> # /etc/ddclient.conf
> 
> pid=/var/run/ddclient.pid
> protocol=dyndns2
> use=if, if=eth0
> custom=yes
> server=members.dyndns.org
> login=mylogin
> password=**
> myhostname.homelinux.net 

Not sure why your authorization isn't working...  but do you really
want "custom=yes"?  I think that's if you have a domain other than the
ones offered by dyndns.org  (in my config, I _don't_ have custom=yes,
and everything is fine with a *.homelinux.net hostname).

You could try whether a manual login/update works, pointing your
browser at (of course, first edit your parameters):

http://members.dyndns.org/nic/update?system=dyndns&hostname=yourhostname.homelinux.net&myip=1.2.3.4

That's essentially the URL that ddclient uses (not the regular web
interface).  The usual HTTP-Basic-Auth popup dialog should appear,
where you can test the login/password combination you've specified in
the config file.  Also, the browser should display a single-word error
message ("nohost", "!yours", "nochg", ...) if anything goes wrong with
the update...

Also, you might try to run "ddclient -debug -verbose" to get even more
verbose debugging messages.

Almut


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Getting a Dinamic Remote IP

2005-05-20 Thread Romulo Sousa
Hi there,

I installed ddclient using apt-get but there is a error message when I
run #ddclient -debug:

myhostname:/# ddclient -debug

DEBUG:get_ip: using if, eth0 reports 201.6.77.173
WARNING:  null password specified for host myhostname.homelinux.net.
yoda:/home/rssousa# ddclient -debug
DEBUG:get_ip: using if, eth0 reports 201.6.77.173
WARNING:  null password specified for host myhostname.homelinux.net.
DEBUG:
DEBUG: nic_dyndns2_update ---
FAILED:   updating d4: authorization failed (HTTP/1.1 401 Authorization Required
FAILED:Date: Fri, 20 May 2005 11:39:49 GMT
FAILED:Server: Apache/1.3.31 (Unix) mod_perl/1.29
FAILED:WWW-Authenticate: Basic realm="DynDNS Members NIC"
FAILED:Content-Type: text/html; charset=iso-8859-1
FAILED:Connection: close
FAILED:
FAILED:badauth)

I tried to edit /etc/ddclient.conf at hand but still the errors
persist. I tried to run dpkg-reconfigure for default configurations
take over my previously and it didn't work.
I checked all the information a lot of times including password
throughout the file /etc/ddclient:

myhostname:/# cat /etc/ddclient.conf
# Configuration file for ddclient generated by debconf
#
# /etc/ddclient.conf

pid=/var/run/ddclient.pid
protocol=dyndns2
use=if, if=eth0
custom=yes
server=members.dyndns.org
login=mylogin
password=**
myhostname.homelinux.net 

It might be correct. Moreover, I restart the service throghout the
/etc/init.d/ddclient restart but unfortunatelly I can connect to
dyndns.
Could somebody help me telling me if I missed to configure anything?

Thank you,

Romulo Sousa

On 5/19/05, David Powell <[EMAIL PROTECTED]> wrote:
> Just for a different take on this...
> 
> In cases where you don't want to link a domain name to the dynamic IP,
> you can set up a cron job to send you the IP address via e-mail.
> 
> Incidentally, I can't think of any arguments - security wise - against
> using something like dyndns, but I can't say I've put a great deal of
> thought into it.  I set up a cron-job script mostly out of curiosity
> than anything (the 'there must be a way' motive).  Anyway, my script
> (which borrows the key part from Douglas Ward's - thank you Douglas)
> looks like:
> 
> ---start script---
> #!/bin/bash
> #get the current IP address for this connection off the internet and mail it
> 
> to="[EMAIL PROTECTED]"
> subject="IP Address for x"
> 
> #this next bit is on one line
> curl http://checkip.dyndns.org/ 2>/dev/null | grep "Current" | awk
> '{print $6}' | sed 's/<\/body><\/html>//' | sed 's/\///' | mail -e -s
> "$subject" "$to"
> ---end script---
> 
> It works perfectly for me.  Next thing I'm going to do (out of
> curiosity, best way to learn) is output the result into a file and then
> only send the e-mail when the IP address is different to what's in the
> file - i.e. only send an e-mail when the IP address changes.
> 
> Cheers,
> 
> Romulo Sousa wrote:
> > Hi folks,
> >
> > I would like to get an remote IP. It's about my girlfriend's computer
> > where I share some directories and install some packages. The problem
> > is that all the time I need to connect via ssh into her computer I
> > must call her asking for its IP provided by her ISP throughout
> > ifconfig output.
> > What can I do in order to get the IP from her computer all the time
> > the machine is booted? Is it possible to send a message by email, SMS
> > or whatever way to do that? Further, her computer is connected by a
> > ADSL (dinamic) and my computer uses cable modem (dinamic also).
> >
> > Best regards,
> >
> > Romulo Sousa
> >
> 
> --
> David Powell   _
> Information Systems Developer   ASCII ribbon campaign ( )
> Moondrake Trust   against HTML email   X
> e: moondrake at optusnet dot com dot au   / \
> 
> 
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> 
>



Re: Getting a Dinamic Remote IP

2005-05-19 Thread David Powell
Just for a different take on this...
In cases where you don't want to link a domain name to the dynamic IP, 
you can set up a cron job to send you the IP address via e-mail.

Incidentally, I can't think of any arguments - security wise - against 
using something like dyndns, but I can't say I've put a great deal of 
thought into it.  I set up a cron-job script mostly out of curiosity 
than anything (the 'there must be a way' motive).  Anyway, my script 
(which borrows the key part from Douglas Ward's - thank you Douglas) 
looks like:

---start script---
#!/bin/bash
#get the current IP address for this connection off the internet and mail it
to="[EMAIL PROTECTED]"
subject="IP Address for x"
#this next bit is on one line
curl http://checkip.dyndns.org/ 2>/dev/null | grep "Current" | awk 
'{print $6}' | sed 's/<\/body><\/html>//' | sed 's/\///' | mail -e -s 
"$subject" "$to"
---end script---

It works perfectly for me.  Next thing I'm going to do (out of 
curiosity, best way to learn) is output the result into a file and then 
only send the e-mail when the IP address is different to what's in the 
file - i.e. only send an e-mail when the IP address changes.

Cheers,
Romulo Sousa wrote:
Hi folks,
I would like to get an remote IP. It's about my girlfriend's computer
where I share some directories and install some packages. The problem
is that all the time I need to connect via ssh into her computer I
must call her asking for its IP provided by her ISP throughout
ifconfig output.
What can I do in order to get the IP from her computer all the time
the machine is booted? Is it possible to send a message by email, SMS
or whatever way to do that? Further, her computer is connected by a
ADSL (dinamic) and my computer uses cable modem (dinamic also).
Best regards,
Romulo Sousa
--
David Powell   _
Information Systems Developer   ASCII ribbon campaign ( )
Moondrake Trust   against HTML email   X
e: moondrake at optusnet dot com dot au   / \
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Getting a Dinamic Remote IP

2005-05-18 Thread Roberto C. Sanchez
Rick Macdonald wrote:
> Charles Hallenbeck wrote:
> 
>> Hi,
>>
>> You need to obtain a program called "ddclient" from the dyndns.org
>> site, which you run on your system. It will check to see if dyndns.org
>> has the correct IP address every few minutes, and tell dyndns.org
>> about it when it changes.
> 
> 
> It's also a debian package:
> 
> apt-get install ddclient
> 
> However, the deb version is 3.6.2 but the latest is actually 3.6.6.
> 

True.  But up until I switched my server from Woody to Sarge a couple
of weeks ago, I was running the *Woody* version of ddclient!  There
are no issues of which I am aware that prevent an older client from
speaking the correct protocol.

-Roberto

-- 
Roberto C. Sanchez
http://familiasanchez.net/~sanchezr


signature.asc
Description: OpenPGP digital signature


Re: Getting a Dinamic Remote IP

2005-05-18 Thread Rick Macdonald
Charles Hallenbeck wrote:
Hi,
You need to obtain a program called "ddclient" from the dyndns.org site, 
which you run on your system. It will check to see if dyndns.org has the 
correct IP address every few minutes, and tell dyndns.org about it when 
it changes.
It's also a debian package:
apt-get install ddclient
However, the deb version is 3.6.2 but the latest is actually 3.6.6.
Changelog
3.6.6
- support for olitec-SX200
- added sample-etc_rc.d_init.d_ddclient.lsb as a sample script for 
lsb-compliant systems.
- support for linksys wrt854g (thanks to Nick Triantos)
- support for linksys ver 3
- support for Thomson (Alcatel) SpeedTouch 510 (thanks to Aldoir)
- Cosmetic fixes submitted by John Owens

3.6.5
- there was a bug in the linksys-ver2
- support for postscript (thanks to Larry Hendrickson)
- Changelog out of README
- modified all documentation to use /etc/ddclient/ddclient.conf 
(notified by 	nicolasmartin in bug [1070646])

3.6.4
- added support for NameCheap service (thanks to Dan Boardman)
- added support for linksys ver2 (thanks to Dan Perik)
3.6.3
- renamed sample-etc_dhclient-enter-hooks to sample-etc_dhclient-exit-hooks
- add support for the Allnet 1298 Router
- add -a to ifconfig to query all interfaces (for Solaris and OpenBSD)
- update the process status to reflect what is happening.
- add a To: line when sending e-mail
- add mail-failure to send mail on failures only
- try all addresses for multihomed hosts (like check.dyndns.org)
- add support for dnspark
- add sample for OrgDNS.org
...RickM...
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Getting a Dinamic Remote IP

2005-05-18 Thread Charles Hallenbeck
Hi,
You need to obtain a program called "ddclient" from the dyndns.org site, 
which you run on your system. It will check to see if dyndns.org has the 
correct IP address every few minutes, and tell dyndns.org about it when 
it changes.

Ch;uck
On Wed, 18 May 2005, Romulo Sousa wrote:
Hello again,
Thanks for gimme a way to start everybody. I visited https://www.dyndns.org/
and created my account there. My doubt now is that how my ip will be
updated on dyndns's "database" all the time its changes?
For instance: if I have the following domain:
mydomain.dyndns.org -> 200.x.y.z
-> means "pointing to the public ip"
after the renew from my ISP's dhcp server:
mydomain.dyndns.org -> 200.a.b.c
how my.domain.dyndns.org is gonna "chase" the new ip provided by my
ISP in order to get the new ip from there?
Please, if I was not clear on my doubt, let me know.
By the way, I loved the joke and now I wanna make a little SOHO's
proxy. I'm studying how it works but I haven't found if I'm able to
authenticate user's from my /home/* only to use it as proxy through
mydomain.dyndns.org. In order words, I give my girlfriend
mydomain.dyndns.org as well as the port and she, and only she, can
access the proxy server after an authentication from his job for
instance. Is it possible??
Ok, I went to far. Step by stepbut I would be glad if I have some
clues to start kidding around this subject.
Thank you all,
Romulo Sousa
On 5/18/05, starmoon <[EMAIL PROTECTED]> wrote:

Sven Arvidsson wrote:
Romulo Sousa wrote:

I would like to get an remote IP. It's about my girlfriend's computer
where I share some directories and install some packages. The problem
is that all the time I need to connect via ssh into her computer I
must call her asking for its IP provided by her ISP throughout
ifconfig output.
What can I do in order to get the IP from her computer all the time
the machine is booted? Is it possible to send a message by email, SMS
or whatever way to do that? Further, her computer is connected by a
ADSL (dinamic) and my computer uses cable modem (dinamic also).

The best way to solve the problem is that she have a dynamic dns. There are
many websites supply free dynamic dns. You can find and register one. And
then install the client application on the computer in order to refresh the
ip address when she dial up. So you just only keep the domain in mind.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


--
The Moon is Waxing Gibbous (74% of Full)
There are 10 kinds of people in the world:
Those who count in binary, and those who do not.
You can download some things from http://www.mhcable.com/~chuckh
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Getting a Dinamic Remote IP

2005-05-18 Thread Romulo Sousa
Hello again,

Thanks for gimme a way to start everybody. I visited https://www.dyndns.org/ 
and created my account there. My doubt now is that how my ip will be
updated on dyndns's "database" all the time its changes?
For instance: if I have the following domain:

mydomain.dyndns.org -> 200.x.y.z

-> means "pointing to the public ip"

after the renew from my ISP's dhcp server:

mydomain.dyndns.org -> 200.a.b.c

how my.domain.dyndns.org is gonna "chase" the new ip provided by my
ISP in order to get the new ip from there?

Please, if I was not clear on my doubt, let me know.

By the way, I loved the joke and now I wanna make a little SOHO's
proxy. I'm studying how it works but I haven't found if I'm able to
authenticate user's from my /home/* only to use it as proxy through
mydomain.dyndns.org. In order words, I give my girlfriend
mydomain.dyndns.org as well as the port and she, and only she, can
access the proxy server after an authentication from his job for
instance. Is it possible??
Ok, I went to far. Step by stepbut I would be glad if I have some
clues to start kidding around this subject.

Thank you all,

Romulo Sousa

On 5/18/05, starmoon <[EMAIL PROTECTED]> wrote:
> 
> 
> Sven Arvidsson wrote:
> 
> >Romulo Sousa wrote:
> >
> >
> >>I would like to get an remote IP. It's about my girlfriend's computer
> >>where I share some directories and install some packages. The problem
> >>is that all the time I need to connect via ssh into her computer I
> >>must call her asking for its IP provided by her ISP throughout
> >>ifconfig output.
> >>What can I do in order to get the IP from her computer all the time
> >>the machine is booted? Is it possible to send a message by email, SMS
> >>or whatever way to do that? Further, her computer is connected by a
> >>ADSL (dinamic) and my computer uses cable modem (dinamic also).
> >>
> >
> >
> The best way to solve the problem is that she have a dynamic dns. There are
> many websites supply free dynamic dns. You can find and register one. And
> then install the client application on the computer in order to refresh the
> ip address when she dial up. So you just only keep the domain in mind.
> 
> 
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> 
>



Re: Getting a Dinamic Remote IP

2005-05-18 Thread starmoon

Sven Arvidsson wrote:
Romulo Sousa wrote:
 

I would like to get an remote IP. It's about my girlfriend's computer
where I share some directories and install some packages. The problem
is that all the time I need to connect via ssh into her computer I
must call her asking for its IP provided by her ISP throughout
ifconfig output.
What can I do in order to get the IP from her computer all the time
the machine is booted? Is it possible to send a message by email, SMS
or whatever way to do that? Further, her computer is connected by a
ADSL (dinamic) and my computer uses cable modem (dinamic also).
 

The best way to solve the problem is that she have a dynamic dns. There are
many websites supply free dynamic dns. You can find and register one. And
then install the client application on the computer in order to refresh the
ip address when she dial up. So you just only keep the domain in mind.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Getting a Dinamic Remote IP

2005-05-18 Thread Sven Arvidsson
Romulo Sousa wrote:
> I would like to get an remote IP. It's about my girlfriend's computer
> where I share some directories and install some packages. The problem
> is that all the time I need to connect via ssh into her computer I
> must call her asking for its IP provided by her ISP throughout
> ifconfig output.
> What can I do in order to get the IP from her computer all the time
> the machine is booted? Is it possible to send a message by email, SMS
> or whatever way to do that? Further, her computer is connected by a
> ADSL (dinamic) and my computer uses cable modem (dinamic also).

There was a thread about a similar issue some time ago:
http://lists.debian.org/debian-user/2005/03/msg00901.html

-- 
Cheers,
Sven Arvidsson
http://www.whiz.se
PGP Key ID 760BDD22


signature.asc
Description: Digital signature


Re: Getting a Dinamic Remote IP

2005-05-17 Thread Paul Johnson
Romulo Sousa ([EMAIL PROTECTED]) wrote:
> What can I do in order to get the IP from her computer all the time
> the machine is booted?

Sounds like you want ddclient and an account over at http://www.dyndns.org/

-- 
Paul Johnson
Email and Instant Messenger (Jabber): [EMAIL PROTECTED]
http://ursine.ca/~baloo/




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Getting a Dinamic Remote IP

2005-05-17 Thread Rick Macdonald
Colin Ingram wrote:
I would get a dynamic dns account so you can ssh to foo.domain and never 
have to worry about the ip again.

try
http://www.dyndns.org/ ;the service I use
Which update client do you use?
...RickM...
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Getting a Dinamic Remote IP

2005-05-17 Thread Colin Ingram
Romulo Sousa wrote:
What can I do in order to get the IP from her computer all the time
the machine is booted? 

I would get a dynamic dns account so you can ssh to foo.domain and never 
have to worry about the ip again.

try
http://www.dyndns.org/ ;the service I use
or
http://www.technopagan.org/dynamic/ ;some more info plus some huge lists 
of providers

--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Getting a Dinamic Remote IP

2005-05-17 Thread Romulo Sousa
Hi folks,

I would like to get an remote IP. It's about my girlfriend's computer
where I share some directories and install some packages. The problem
is that all the time I need to connect via ssh into her computer I
must call her asking for its IP provided by her ISP throughout
ifconfig output.
What can I do in order to get the IP from her computer all the time
the machine is booted? Is it possible to send a message by email, SMS
or whatever way to do that? Further, her computer is connected by a
ADSL (dinamic) and my computer uses cable modem (dinamic also).

Best regards,

Romulo Sousa