IP wzr hp g300 nh 1.74 r2.06 b1.07

Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC basierende Hardware
Author Message
BL088
DD-WRT Novice


Joined: 19 Jan 2011
Posts: 1

PostPosted: Wed Jan 19, 2011 8:45    Post subject: IP wzr hp g300 nh 1.74 r2.06 b1.07 Reply with quote
Hallo,
ich gehe mit einem UMTS-Modem ins Internet.
Es fehlt eine Router funktion. Ich möchte das der Router meine ISP IP an mein E-Mail Konto sendet.

Sonst bin ich mit dem Router zufrieden. Manche D1,D2 USB-Modems funktionieren nicht.
Mit freundlichen Grüßen
Sponsor
pepe
DD-WRT Guru


Joined: 16 Jun 2006
Posts: 2427
Location: Berlin, Germany

PostPosted: Wed Jan 19, 2011 14:07    Post subject: Reply with quote
Bau dir ein Script z.B. sowas hier (musst du natürlich noch anpassen... das beispiel ist auch nicht getestet).
Binde es mit ein und lasse es per cron alle x Stunden ausführen. (wie das geht steht im WIKI)

Code:
#!/bin/sh

EMAIL_TO="Empfängeradresse"
EMAIL_SUBJECT="Betreff"

# Was soll in der Mail stehen?
EMAIL_content=´nvram get wan_ipaddr´   #z. B. die WAN IP

# HELO oder EHLO benutzen je nach Mailserver.
(echo HELO <Begrüßung am Mail-Server>  #z. B. t-online.de
sleep 3
echo MAIL FROM: Absenderadresse
sleep 1
echo RCPT TO: $EMAIL_TO
sleep 1
echo "DATA
From: Absenderadresse
To: $EMAIL_TO
Subject: $EMAIL_SUBJECT
$EMAIL_content"
sleep 1
echo '.'
sleep 1
echo QUIT) | nc smtp.server 25     # hier den SMTP-Server und Port eintragen

_________________
http://www.dd-wrt.com/phpBB2/search.php?
http://www.dd-wrt.com/wiki/index.php/Main_Page
http://www.dd-wrt.com/wiki/index.php/Category:Deutsche_Dokumentation

http://i-use.ipfire.org/profile/454051a193d29c9019ea3d0ce3c4b801435fd682/0.png
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC basierende Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum