midafricam
New Member
Install the Lynx software package and insert as scheduled job in your /etc/crontab file ie 0 8 * * 1-5 root adslscript.sh
So every morning Mon to Fri at 8am the new IP address is emailed to you
Script care of Louis Reynecke who hacked it somewhere
#!/bin/bash
# A script file to get my current ip address
lynx -source http://checkip.dyndns.org | awk -F : '{print($2)}'| awk -F \< '{print($1)}'| mail -s "New ADSL Dynamic IP address" [email protected]
Setup your ADSL Router under Basic Config -> PAT
TCP ATM1 SSH port 22 IP address of Linux box Port 22
Now you can SSH into the external IP of your Linux box
if you have installed 2 network cards.
Cheers
Justin Miles
So every morning Mon to Fri at 8am the new IP address is emailed to you
Script care of Louis Reynecke who hacked it somewhere
#!/bin/bash
# A script file to get my current ip address
lynx -source http://checkip.dyndns.org | awk -F : '{print($2)}'| awk -F \< '{print($1)}'| mail -s "New ADSL Dynamic IP address" [email protected]
Setup your ADSL Router under Basic Config -> PAT
TCP ATM1 SSH port 22 IP address of Linux box Port 22
Now you can SSH into the external IP of your Linux box
if you have installed 2 network cards.
Cheers
Justin Miles