Hello everybody:
Situation:cisco router which protects little lan; lan with a linux server and a lot of linux/windows client.
Router is accessible via internet but i've no control on it and it automatically changes ip every day. I can only access via ssh but ssh requests are redirect on linux server
I'd want this goal:Admin server linux at home via ssh. It is simple if you know router's ip that redirect you on server but it changes!!
My solution: i thought to send an email to a fake account from the linux server so, when the mail arrives, router's ip is inside it. Make a perl script which connect to pop server of fake account probably with Mail::BOX::Pop3 module (which i've never used), get the message and bring the router's IP and then send it to my personal account...
My question:I thinks it is not good... Is there a module which can do that directly?
- get ip form router
- send it to my personal account
Note that i've no control on router and when i telnet on it from the lan there is a testual menu' which lets me to admin it parameters but i've not enough experience to manage them...
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.