MLUG: Re: [MLUG] strange request
Re: [MLUG] strange request
Email address obfuscation in effect -- please click here to turn it off.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Here it is. I included an installer (bash script) that is based on RH distro. The only requirement is that the mydyn.conf file be in /etc/mydyn directory. The cache file will be created if one does not exist. I also included an init.d file. This program runs as a daemon but if you just want to do a test then you can setup the .conf file and run the program with a -t option. This will only connect to your router, parse out the IP and dump it to the screen. If you run it as a service then it will update your account on dyndns if/when your ip changes. It also has a 28 day force update so your account with dyndns does not expire. The program also will not allow any private or invalid IP to be sent (0., 10., 169.254, 172.17-172.31, 192.168). I wrote this because the client I had been using (ddclient) did not have a logout feature which my router required or no one else could administer the router. After a year of waiting for the feature to be added to ddclient I just researched and rolled my own. The program uses the following modules:

LWP::UserAgent;
URI;
Sys::Syslog qw( :DEFAULT setlogsock);
Net::SMTP;
Time::Local;

Right now I am beta testing it with a live test account and everything has been working fine for about 2 weeks now. Let me know if you have any problems/suggestions but do remember that I just tinker in perl, I by no means have mastered it.

Dan


Ian wrote:
How's about you post your script.

please.

On 3/17/06, *Nowlin, Dan* <EMAIL:PROTECTED <mailto:EMAIL:PROTECTED>> wrote:

    NO thank you.  I would rather get the IP from the router.  If whatever
    website is down or changes formats of the page then the program
    fails.

    Daniel Nowlin
    IATS Datacenter


> -----Original Message----- > From: EMAIL:PROTECTED <mailto:EMAIL:PROTECTED> > [mailto: EMAIL:PROTECTED <mailto:EMAIL:PROTECTED>] On Behalf Of Nathan Odle > Sent: Saturday, March 18, 2006 12:01 AM > To: MLUG Members > Subject: Re: [MLUG] strange request > > Use this instead: > > http://www.whatsmyipaddress.com/ > > Nowlin, Dan wrote: > > > OK I have a rather strange request. I have written a perl program > > that will update your IP to dyndns.org <http://dyndns.org>. This program will > get your IP > > via your router. It works great on my netgear but I need > to find out > > if it will work with other routers. Here is what I am asking. Can > > some of the people on the list send me the HTML of there > router status > > page as an attachment? You can change the public IP to a > 10. if you > > like. PLEASE ONLY TO A 10. because I am checking if the IP > I get from > > the router is public of private. > > > > Daniel Nowlin > > IATS Datacenter > > > > > >------------------------------------------------------------- > ----------

Attachment: mydyn.tar.gz
Description: application/gzip

_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members